Multiple Choice
Identify
the letter of the choice that best completes the statement or answers
the question.
|
|
1.
|
The
UCase function ____ to uppercase.
a.
|
temporarily converts an entire string
|
b.
|
permanently
changes an entire string
|
c.
|
temporarily converts the leading character of a
string
|
d.
|
permanently changes the leading character of a
string
|
|
|
|
|
2.
|
The
expression txtNum.Text > 0 And txtNum.Text < 10 will ____.
a.
|
always
evaluate to false
|
b.
|
always evaluate to true
|
c.
|
evaluate
to either true or false depending on the contents of the txtNum
control
|
d.
|
none
of the above
|
|
|
|
|
3.
|
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" Or curSales > 2000
|
d.
|
UCase(strState) = NEW YORK And curSales > 2000
|
|
|
|
|
4.
|
The
<> operator is an example of a ____ operator.
a.
|
logical
|
b.
|
comparison
|
c.
|
mathematical
|
d.
|
relational
|
|
|
|
|
5.
|
The
expression 5 < 7 + 2 - 3 Or False evaluates to ____.
a.
|
false
|
b.
|
true
|
c.
|
all of the above
|
d.
|
none
of the above
|
|
|
|
|
6.
|
You
can use the ____ Case statement to code the Case selection structure
in Visual Basic.
a.
|
Select
|
b.
|
Highlight
|
c.
|
Type
|
d.
|
Focus
|
|
|
|
|
7.
|
All
expressions containing a relational operator will result in ____.
a.
|
a
negative number
|
b.
|
a positive number
|
c.
|
a
true answer
|
d.
|
either a true or false answer only
|
|
|
|
|
8.
|
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
|
|
|
|
|
9.
|
If
a form has four option buttons, how many option button(s) can be selected
at any one time?
a.
|
four
|
b.
|
one
|
c.
|
three
|
d.
|
two
|
|
|
|
|
10.
|
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
|
|
|
|