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