MCQ: Visual Basic Decisions and Conditions

This quiz consists of Visual Basic MCQ related to Decisions and Conditions.

Page 1 of 2

1. In an If statement, when the expression is true, _______.

A.
B.
C.
D.

2. Which of the following is a comparison operator?

A.
B.
C.
D.

3. When comparing strings, which one of the following strings is less than the others, based on the ANSI code?

A.
B.
C.
D.

4. ______________ will be the result of: MessageText .Text =MessageText .Text.ToUpper() when the value of MessageText .Text is "Visual Basic is fun!".

A.
B.
C.
D.

5. Which of the following is NOT a logical operator?

A.
B.
C.
D.

6. With the logical operator _______ , both expressions must be true for the entire expression to evaluate True

A.
B.
C.
D.

7. With the logical operator _______ , if the first expression is True, the second expression will not be evaluated.

A.
B.
C.
D.

8. Which of the following is correct code for determining if a checkbox is checked?

A.
B.
C.
D.

9. An If contained within another If statement is _______.

A.
B.
C.
D.

10. Nested Ifs are allowed, _______.

A.
B.
C.
D.


 

Leave a Reply

avatar
  Subscribe  
Notify of