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. 

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
 

 2. 

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

 3. 

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

 4. 

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

 5. 

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

 6. 

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

 7. 

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

 8. 

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

 9. 

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

 10. 

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



 
Submit          Reset Help