Name:     ID: 
 
Email: 

Visual Basic Quiz 2

True/False
Indicate whether the statement is true or false.
 

 1. 

To verify that the code from a deleted control was removed from the application, open the form's General Declarations section and click the Procedure list arrow.
 

 2. 

The only flowchart symbol that is not coded is the stop oval.
 

 3. 

To translate a flowchart into Visual Basic code, you start at the top of the flowchart and write the code for each symbol as you follow the flowlines down to the bottom of the flowchart.
 

 4. 

Relational operators are evaluated before any mathematical operators in an expression.
 

 5. 

The expression UCase(text1.Text) = "a" will evaluate as false.
 

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

 6. 

When declaring a global constant in the General Declarations section of a code module, you begin the declaration with the keyword ____.
a.
All
b.
Dim
c.
General
d.
Public
 

 7. 

The InputBox function's prompt
a.
should be entered using sentence capitalization and its title should be entered using book title capitalization.
b.
should be entered using book title capitalization and its title should be entered using sentence capitalization.
c.
and title should be entered using book title capitalization.
d.
and title should be entered using sentence capitalization
 

 8. 

Visual Basic’s MSDN Library window is an example of a ____ form.
a.
constant
b.
modal
c.
modeless
d.
static
 

 9. 

The flowline(s) leaving the selection structure symbol should be marked ____.
a.
True and False (T,F)
b.
In and Out (I,O)
c.
Yes and No (Y,N)
d.
either a or c
 

 10. 

In the expression 6 > 5 - 3 + 4 / 2 * 5, which operator will be evaluated first?
a.
>
b.
-
c.
+
d.
/
 

 11. 

If the value of A is false and the value of B is true, then the value of A And B is ____.
a.
can't be determined with the information provided
b.
either true or false
c.
false
d.
true
 

 12. 

The Case diamond has one flowline leading into the symbol and ____ flowline(s) leading out of the symbol.
a.
one
b.
many
c.
two
d.
no
 

 13. 

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

 14. 

When an option button is selected, ____.
a.
a black dot appears inside the button
b.
an X appears inside the button
c.
the button's caption is italicized
d.
the button blinks
 

 15. 

After displaying a predefined dialog box, the ____ function returns a value that indicates which button the user chose.
a.
DialogBox
b.
InputBox
c.
Msg
d.
MsgBox
 

Completion
Complete each statement.
 

 16. 

Memory locations whose value can change as the program is running are called ____________________.
 

 

 17. 

Numbers without any decimal places are called whole numbers or ____________________.
 

 

 18. 

When an equation deals with money and you need accuracy to the penny, you should assign the ____________________ data type.
 

 

 19. 

The ____________________ statement tells Visual Basic to warn you if you use the name of an undeclared variable in your code.
 

 

 20. 

When concatenating strings, you must include a ____________________ before and after the concatenation operator.
 

 

 21. 

To remove a form from memory and from the screen, use the ____________________ statement.
 

 

 22. 

The curSales = curSales * .05 instruction would be placed in the ____________________ symbol in a flowchart.
 

 

 23. 

The ____________________ form of the selection structure is sometimes referred to as an extended selection structure.
 

 

 24. 

Any number of ____________________ boxes on a form can be selected at the same time.
 

 

 25. 

The txtAddress.SelLength = Len(txtAddress.Text) instruction tells Visual Basic to select the number of ____________________ in the txtAddress control.
 

 



 
         Start Over