Multiple Choice
Identify the
letter of the choice that best completes the statement or answers the question.
|
|
|
1.
|
Visual Basic .NET provides ____ to help programmers build Windows-based applications
quickly and easily. a. | data types | c. | controls | b. | code
structures | d. | all of the
above | | | | |
|
|
|
2.
|
The
____ symbol indicates that a number should be raised to a power using an exponent. a. | * | c. | ^ | b. | & | d. | any of the above | | | | |
|
|
|
3.
|
If
you name a GroupBox control, you use the ____ prefix in the name.
|
|
|
4.
|
When
the Checked property of a RadioButton control in a group of RadioButton controls has the value ____,
this indicates that the RadioButton control is selected, or checked. a. | False | c. | Checked | b. | True | d. | Selected | | | | |
|
|
|
5.
|
RadioButton controls have the ____ property, whose value defines on which side of the
control the option button displays. a. | DisplayOption | c. | DisplayButton | b. | Side | d. | CheckAlign | | | | |
|
|
|
6.
|
The
____ toolbar contains tools that allow you to adjust the alignment, spacing, and size of any group of
controls on a form. a. | Display | c. | Alignment and Spacing | b. | Layout | d. | Controls | | | | |
|
|
|
7.
|
The
____ button allows you to make the space between the tops and bottoms of two or more controls the
same. a. | Top and
Bottom | c. | Make Vertical
Spacing Equal | b. | Equal Space | d. | Make Horizontal Spacing Equal | | | | |
|
|
|
8.
|
A
default button on a form is specified by the ____ property, which tells the application that pressing
the enter key on the form is equivalent to clicking the button specified in the
property. a. | DefaultButton | c. | ButtonClick | b. | AcceptButton | d. | ClickEvent | | | | |
|
|
|
9.
|
While
a form and its controls are ____, they cannot be resized or moved. a. | locked | c. | entered | b. | fixed | d. | constant | | | | |
|
|
|
10.
|
To
lock an individual control, select the control and then click the ____ command on the Format
menu. a. | Individual
Lock | c. | Fixed
Controls | b. | Constant Controls | d. | Lock Controls | | | | |
|
|
|
11.
|
Which
of the following is NOT a data type supported by Visual Basic .NET? a. | medium | c. | char | b. | object | d. | none of the above | | | | |
|
|
|
12.
|
The
____ determines the data types that are allowed in Visual Basic .NET.
|
|
|
13.
|
By
default, Option Strict is set to ____, which means that Visual Basic .NET does not require a data
type to be the same on each side of an assignment and that you do not need to declare a data type for
each variable.
|
|
|
14.
|
Which
of the following is a valid Option Strict statement? a. | Option Strict =
True | c. | Option Strict
On | b. | Option Strict =
On | d. | Option
Strict | | | | |
|
|
|
15.
|
A
numeric expression can contain ____. a. | string variables | c. | objects | b. | string
constants | d. | none of the
above | | | | |
|
|
|
16.
|
4 ^ 2
is equal to ____.
|
|
|
17.
|
23
Mod 12 is equal to ____.
|
|
|
18.
|
Given
the statement A = 8 / 4 / 2, the expression will assign a value of ____ to A.
|
|
|
19.
|
Unless parentheses dictate otherwise, reading from left to right in a numeric
expression, which of the following is performed first? a. | modulo
arithmetic | c. | integer
divisions | b. | additions | d. | exponentiations | | | | |
|
|
|
20.
|
Which
of the following can be used to change the order of operations? a. | commas | c. | periods | b. | parentheses | d. | all of the above | | | | |
|
True/False
Indicate whether the sentence or statement is true
or false.
|
|
|
21.
|
If a
user enters a number outside the range of a NumericUpDown control, the control changes the number to
the closest allowable value within the pre-defined range.
|
|
|
22.
|
You
can validate program designs by stepping through the requirements and making sure that the design
addresses each requirement.
|
|
|
23.
|
The
center of a GroupBox control contains a positioning grid, so that other controls can be drawn and
positioned inside the GroupBox control.
|
|
|
24.
|
If a
RadioButton is added inside a GroupBox control that serves as a container, the RadioButton cannot
also be part of a group.
|
|
|
25.
|
A
GroupBox can have only a circular shape.
|
|
|
26.
|
You
must name all GroupBox controls on your form.
|
|
|
27.
|
The
Checked property of a RadioButton control can have the value of True or False.
|
|
|
28.
|
The
Format toolbar simplifies the task of changing the Size and Position property values by allowing you
to adjust two or more controls automatically until they are properly aligned, spaced, or
sized.
|
|
|
29.
|
When
multiple controls used for input or output display in a column, it is good practice to size and align
the controls together.
|
|
|
30.
|
You
can center a control on a form vertically or horizontally by using the Center Vertically or Center
Horizontally buttons on the Layout toolbar.
|
|
|
31.
|
Regardless of how a forms controls are initially added to the form, the steps to
align and size the controls using the Layout toolbar are always the same.
|
|
|
32.
|
Some
user interface design changes are best left until the bulk of the work on the form is complete and
most controls are added and their properties are set.
|
|
|
33.
|
Multiple buttons on a form can be set as the default buttons.
|
|
|
34.
|
Locking prevents the accidental resizing of controls on a form, but they can still be
moved.
|
|
|
35.
|
Variables and constants are used in code statements to store temporary values used by
other code statements.
|
|
|
36.
|
You
do not need to declare a constant before you use it in code.
|
|
|
37.
|
If a
variable or constant will contain a decimal amount, use an integral data type when you define that
variable or constant.
|
|
|
38.
|
Always try to use the data type that takes up the smallest amount of
memory.
|
|
|
39.
|
The
names of constants can be up to 255 characters in length.
|
|
|
40.
|
The
rules for naming variables are significantly different from the rules for naming
constants.
|
|
|
41.
|
Visual Basic .NET includes several functions that allow you to convert the value of a
variable or constant to another data type, and then use the result in a statement.
|
|
|
42.
|
A
numeric expression can contain string constants but not string variables.
|
|
|
43.
|
Visual Basic .NET will reject the statement, A = 2B, because a constant and a variable
within the same expression must be separated by an arithmetic operator.
|
|
|
44.
|
For
complex expressions, Visual Basic .NET allows parentheses to be contained within other
parentheses.
|
|
|
45.
|
Intrinsic functions are accessible to Visual Basic .NET only; they are not available
in other .NET languages.
|
Completion
Complete each sentence or
statement.
|
|
|
46.
|
A(n)
____________________ control serves as a holding area for other controls, indicating that the
controls within it are somehow related.
|
|
|
47.
|
The
____________________ toolbar includes buttons that map to all of the commands available on the Format
menu.
|
|
|
48.
|
Each
time you click the ____________________ button on the Layout toolbar, Visual Basic .NET increases the
horizontal spacing between the buttons.
|
|
|
49.
|
The
____________________ button is used to align the tops of selected controls.
|
|
|
50.
|
When
you want one particular button on a form to execute the central task that the form was designed to
accomplish, you should set that button to be the ____________________ button for the
form.
|
|
|
51.
|
A(n)
____________________ button on a form is specified by the AcceptButton property.
|
|
|
52.
|
____________________ controls prevents them from being moved and prevents the
controls size from being modified on a form during design time.
|
|
|
53.
|
To
declare a constant, you use the ____________________ keyword.
|
|
|
54.
|
The
____________________ operator is used to divide two numbers and then return the remainder of the
division operation as an integer.
|
|
|
55.
|
The
____________________ function returns the payment for a loan based on periodic, constant payments and
a constant interest rate.
|