Site MapHelpFeedbackMultiple Choice Quiz
Multiple Choice Quiz
(See related pages)

1
In an If statement, when the expression is true, _______.
A)Only the Else clause is executed
B)Only the ElseIf clause is executed
C)Only the End If statement is executed
D)Only the Then clause is executed
2
Which of the following is a comparison operator?
A)And
B)>
C)+
D)&
3
When comparing strings, which one of the following strings is less than the others, based on the ANSI code?
A)ONETWOTHREE
B)onetwothree
C)OneTwoThree
D)1Two3
4
______________ will be the result of: MessageText .Text =MessageText .Text.ToUpper() when the value of MessageText .Text is "Visual Basic is fun!".
A)Visual Basic is fun!
B)VISUAL BASIC IS FUN!
C)visual basic is fun!
D)VisualBasicisfun!
5
Which of the following is NOT a logical operator?
A)If
B)Or
C)And
D)Not
6
With the logical operator _______ , both expressions must be true for the entire expression to evaluate True
A)And
B)Or
C)AndAlso
D)OrElse
7
With the logical operator _______ , if the first expression is True, the second expression will not be evaluated.
A)And
B)Or
C)AndAlso
D)OrElse
8
Which of the following is correct code for determining if a checkbox is checked?
A)If Senior.Checkbox = True Then
B)If SeniorCheckBox.Checked = True Then
C)If SeniorCheckBox.Checked Then
D)Both answers B and C are correct
9
An If contained within another If statement is _______.
A)A nested If
B)A compound expression
C)An embedded contradiction
D)Impossible to do in VB
10
Nested Ifs are allowed, _______.
A)But you are limited to only 4 levels of Ifs
B)But each If must have an End If
C)Can be difficult to follow if they are nested too deeply
D)Both answers b and c are correct







Bradley:Programming in VB 2008Online Learning Center

Home > Chapter 4 > Multiple Choice Quiz