Name:     ID: 
 
Email: 

Visual Basic Quiz 1

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

 1. 

TxtName is a good name for a label control.
 

 2. 

ImgLogo is a good name for an image control.
 

 3. 

Command button captions should be entered using sentence capitalization.
 

 4. 

You can print a form with the FormPrint method.
 

 5. 

You can use parentheses to change the order in which the operators in an equation are evaluated.
 

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

 6. 

The Visual Basic main window contains the title bar, the menu bar, and the ____.
a.
Formatting toolbar
b.
Project window
c.
Properties window
d.
Standard tool bar
 

 7. 

You can display the Properties window by pressing the ____ key.
a.
F1
b.
F2
c.
F4
d.
F5
 

 8. 

When you click the list arrow for a property in the Settings box,
a.
a list or a color palette will appear containing the valid predefined settings for the selected property.
b.
a dialog box will appear.
c.
nothing will happen because the selected property does not have any predefined settings.
d.
the selected property's value will change to the next valid setting.
 

 9. 

You can use either the ____ tool or the Picture box to add a picture to a form.
a.
Caption
b.
Graph
c.
Icon
d.
Image
 

 10. 

You can verify the names of controls while you are writing Visual Basic code by using the Code window's ____.
a.
Form box
b.
toolbox
c.
Object box
d.
Project box
 

 11. 

Identifying the objects to which you will assign specific tasks is step ____ in the planning of an OOED application.
a.
one
b.
two
c.
four
d.
three
 

 12. 

The recommended maximum number of command buttons in an interface is ____.
a.
two
b.
four
c.
six
d.
eight
 

 13. 

Information in a user interface should flow ____.
a.
diagonally
b.
horizontally
c.
vertically
d.
b or c
 

 14. 

The dot member selection operator indicates that what appears to the right of the dot is a ____ of what appears to the left of the dot.
a.
class
b.
member
c.
form
d.
control
 

 15. 

A zero-length string is also called a(n) ____ string.
a.
empty
b.
no-length
c.
open
d.
small set
 

Completion
Complete each statement.
 

 16. 

The ____________________ window lists the names of the files included in the current application.
 

 

 17. 

When set to True, the ____________________ property automatically sizes a control to fit its current contents.
 

 

 18. 

A ____________________ is used to measure the location of an object from the edges of a form.
 

 

 19. 

A ____________________ is 1/1440 of an inch.
 

 

 20. 

The OK and Cancel buttons, which perform an immediate action when clicked, are examples of ____________________ buttons.
 

 

 21. 

When you create an executable file for an application, Visual Basic appends the ____________________ extension to the filename.
 

 

 22. 

When a command button has the focus, its border is highlighted and a dotted rectangle appears around its ____________________.
 

 

 23. 

You can assign an access key only to controls that have a(n) ____________________ property.
 

 

 24. 

When the command button's caption has an underlined letter, this is the button's ____________________.
 

 

 25. 

You can use the ____________________ function to tell Visual Basic to treat the contents of a text box as a numeric value instead of a character string.
 

 



 
         Start Over