Multiple Choice
Identify the
letter of the choice that best completes the statement or answers the question.
|
|
1.
|
You can use
the ____ method to set the focus to a form or a control while the application is
running. a. | ControlFocus | b. | SetFocus | c. | Focus | d. | Control | | |
|
|
2.
|
A
zero-length string is also called a(n) ____ string. a. | small
set | b. | open | c. | no-length | d. | empty | | |
|
|
3.
|
To document
a program internally, place a(n) ____ before the statement you want Visual Basic to treat as a
comment. a. | percent sign
(%) | b. | asterisk
(*) | c. | dollar sign
($) | d. | apostrophe
(') | | |
|
|
4.
|
You can use
the ____ function to tell Visual Basic to treat a character string as a number.
|
|
5.
|
To assign an
access key to a control, enter a(n) ____ to the immediate left of the character that you want to
designate as the access key. a. | asterisk (*) | b. | ampersand
(&) | c. | exclamation point (!) | d. | caret
(^) | | |
|
|
6.
|
Which of the
following tells Visual Basic to treat the contents of the txtNum control as a number instead of as a
string? a. | val(txtNum.Caption) | b. | num(txtNum.Caption) | c. | val(txtNum.Text) | d. | num(txtNum.Text) | | |
|
|
7.
|
A string is
a group of characters enclosed in ____. a. | quotation marks (") | b. | apostrophes
(') | c. | dollar signs
($) | d. | asterisks
(*) | | |
|
|
8.
|
To clear the
contents of a text box, assign a zero-length string to its ____ property. a. | Label | b. | Caption | c. | Text | d. | Contents | | |
|
|
9.
|
Which
assignment statement will hide a cmdCalc control? a. | cmdCalc.Visible = False | b. | cmdCalc.Appearance =
False | c. | cmdCalc.Appearance=True | d. | cmdCalc.Visible =
True | | |
|
|
10.
|
____ refers
to the process of locating errors in a Visual Basic program. a. | Debugging | b. | Compiling | c. | Correcting | d. | None of the above | | |
|