# First Quarterly Practice Test (Vb)

14 Questions | Attempts: 83
Share  Settings  • 1.
When comparing these two strings, the expression "Zebra" < "aardvark" is...
• A.

True

• B.

False

• 2.
The comparison that checks if a variable called intAge is at least 18 is:
• A.

If intAge > 18 Then

• B.

If intAge

• C.

If intAge >= 18 Then

• D.

If IntAge < 18 Then

• 3.
Consider the following code Dim intA as Integer = 6 Dim intB as Integer = 0 Dim intC as Integer = -1 Is the following expression true or false? If int A < int B OR intC < int B Then
• A.

True

• B.

False

• 4.
The condition in an If structure must always evaluate to _____.
• A.

0 or 1

• B.

-1 or 0

• C.

Negative or positive

• D.

True or false

• 5.
An If statement always needs an Else statement.
• A.

True

• B.

False

• 6.
String comparisons are always case sensitive
• A.

True

• B.

False

• 7.
What is the result of the following expression?Dim m as Integer = 3Dim p as Integer = 10(p - 5 + 4) + (p \ 3 * 2)  * m
• 8.
It is generally a good idea to use many  fonts on a form
• A.

True

• B.

False

• 9.
If a button is assigned  to the Form's Cancel property, the button can be clicked by typing the Esc key
• A.

True

• B.

False

• 10.
The following statement is a syntax error: sum = sum + 1
• A.

True

• B.

False

• 11.
When keyboard input is directed into a text box, the text box is said to have
• A.

Focus

• B.

Access

• C.

Scope

• D.

Tab

• 12.
Which of the following is not a legal variable name?
• A.

IntAge

• B.

DblPi

• C.

#tag

• D.

Bmi

• 13.
The section of a program where a variable is usable is the variable's
• A.

Focus

• B.

Access

• C.

Scope

• D.

Tab

• 14.
What is the result of the following expression?        60 Mod 7

## Related Topics Back to top
×

Wait!
Here's an interesting quiz for you.