Name:     ID: 
 
    Email: 

CS104 Visual Basic Quiz V

Multiple Choice
Identify the letter of the choice that best completes the statement or answers the question.
 

 1. 

The UCase function ____ to uppercase.
a.
permanently changes the leading character of a string
b.
permanently changes an entire string
c.
temporarily converts an entire string
d.
temporarily converts the leading character of a string
 

 2. 

The expression 5 < 7 + 2 - 3 Or False evaluates to ____.
a.
false
b.
true
c.
all of the above
d.
none of the above
 

 3. 

The expression txtNum.Text > 0 And txtNum.Text < 10 will ____.
a.
evaluate to either true or false depending on the contents of the txtNum control
b.
always evaluate to true
c.
always evaluate to false
d.
none of the above
 

 4. 

All expressions containing a relational operator will result in ____.
a.
a positive number
b.
a true answer
c.
a negative number
d.
either a true or false answer only
 

 5. 

Which of the following will collect a shipping charge on all New York sales that are over $2000?
a.
UCase(strState) = "NEW YORK" And curSales > 2000
b.
UCase(strState) = NEW YORK And curSales > 2000
c.
UCase(strState) = "NEW YORK" And curSales > "2000"
d.
UCase(strState) = "NEW YORK" Or curSales > 2000
 

 6. 

If a form has four option buttons, how many option button(s) can be selected at any one time?
a.
three
b.
two
c.
one
d.
four
 

 7. 

You can use the ____ statement to code the selection structure in Visual Basic.
a.
Select...Else...End Select
b.
Begin...Otherwise...End
c.
If...Then...Else
d.
If...Else...End If
 

 8. 

Which of the following is a valid Case clause when using the keyword To?
a.
Case 1 To 5
b.
Case 4 To 2
c.
Case 5 To 0 step -1
d.
both a and b
 

 9. 

The <> operator is an example of a ____ operator.
a.
comparison
b.
logical
c.
mathematical
d.
relational
 

 10. 

You can use the ____ Case statement to code the Case selection structure in Visual Basic.
a.
Select
b.
Highlight
c.
Focus
d.
Type
 



 
Submit          Reset Help