Multiple Choice
Identify the
letter of the choice that best completes the statement or answers the question.
|
|
|
1.
|
The
first two phases in the program development life cycle are ____. a. | design and
coding | c. | analysis and
design | b. | analysis and testing | d. | coding and testing | | | | |
|
|
|
2.
|
A
given user interface must allow the user to enter any number for a taxpayers income; an input
area with a ____ is best for this sort of input. a. | check box | c. | drop-down menu | b. | radio
button | d. | text
box | | | | |
|
|
|
3.
|
One
way to indicate an output only area is by using a ____ background for the output
area. a. | gray | c. | yellow | b. | red | d. | light blue | | | | |
|
|
|
4.
|
When
the New Project dialog box displays, by default, the Visual Basic Projects project type and the ____
template are selected. a. | Class Library | c. | ASP.NET Web Application | b. | Windows Control
Library | d. | Windows
Application | | | | |
|
|
|
5.
|
A(n)
____ is an attribute of an object or control, such as its background color or the text that displays
with it. a. | method | c. | property | b. | key | d. | icon | | | | |
|
|
|
6.
|
A
forms Width property defines the width of the form in ____. a. | points | c. | units | b. | pixels | d. | indices | | | | |
|
|
|
7.
|
A
typical PC monitor contains approximately ____ pixels per inch.
|
|
|
8.
|
A(n)
____ can be a control or form in the main work area or any item selected in the Solution Explorer
window, including a solution, project, or other file. a. | method | c. | click | b. | object | d. | property | | | | |
|
|
|
9.
|
When
a group of properties is collapsed, a ____ displays next to the group category name in the Properties
list; clicking it expands the group to display all the properties in that group. a. | plus
symbol | c. | green
bullet | b. | minus symbol | d. | key icon | | | | |
|
|
|
10.
|
The
default value for the Text property is ____, a generic name that Visual Basic .NET assigns when
creating the form. a. | 1Form | c. | NewForm | b. | Form | d. | Form1 | | | | |
|
|
|
11.
|
The
____ property determines whether a user can resize an application window at run time and how other
objects on the form, such as the Maximize button, Minimize button, Control Box, Title bar, and Help
button, behave or display. a. | ApplicationWindow | c. | ResizeWindow | b. | Display | d. | FormBorderStyle | | | | |
|
|
|
12.
|
____
a control button on the Windows Form sheet adds a default-sized control to the upper-left corner of
the form. a. | Drawing | c. | Double-clicking | b. | Dragging | d. | all of the above | | | | |
|
|
|
13.
|
Dragging a control on a form changes the property values of the controls ____
properties. a. | Top and
Bottom | c. | Bottom and
Right | b. | Top and Left | d. | Left and Right | | | | |
|
|
|
14.
|
When
a user selects a control, the control is said to have ____ and Visual Basic .NET places the insertion
point in the control or displays a dotted rectangle around the control on the form. a. | clarity | c. | precision | b. | focus | d. | orientation | | | | |
|
|
|
15.
|
A
user can use the ____ key on the keyboard to set the focus on a specific control.
|
|
|
16.
|
The
____ property determines the order in which Visual Basic .NET sets the focus on controls when a user
presses the TAB key. a. | TabIndex | c. | TabFocus | b. | TabOrder | d. | TabControl | | | | |
|
|
|
17.
|
The
Height property, the Width property, and the ____ property define the position and size of a TextBox
control on an application window. a. | Size | c. | Position | b. | Location | d. | Orientation | | | | |
|
|
|
18.
|
The
____ properties determine the range of allowable values for a NumericUpDown control. a. | Minimum and
Maximum | c. | Start Range and
End Range | b. | Top and Bottom | d. | Low and High | | | | |
|
|
|
19.
|
The
____ property of a control reflects its name. a. | Name | c. | Identity | b. | What | d. | Title | | | | |
|
|
|
20.
|
Events trigger event ____, which are groups of code statements, sometimes simply
called code. a. | methods | c. | procedures | b. | properties | d. | assignments | | | | |
|
|
|
21.
|
A(n)
____ statement is a code statement that changes the value of a variable or property of an object or
control. a. | event | c. | assignment | b. | conditional | d. | syntax | | | | |
|
|
|
22.
|
In
Visual Basic .NET, each comment line must begin with an apostrophe or the letters
____.
|
|
|
23.
|
A(n)
____ error is an error caused by code statements that violate one of the structure or syntax rules of
the Visual Basic .NET language. a. | syntax | c. | logical | b. | language | d. | structural | | | | |
|
|
|
24.
|
The
words ____ indicate the beginning and end of a procedure. a. | Method and Stop
Method | c. | Open and
Close | b. | Sub and End Sub | d. | Private and Public | | | | |
|
|
|
25.
|
In
Text boxes, ____ are used around values to tell Visual Basic .NET to treat their numeric contents as
characters, rather than as a numeric value. a. | quotes | c. | brackets | b. | double
quotes | d. | question
marks | | | | |
|
True/False
Indicate whether the sentence or statement is true
or false.
|
|
|
26.
|
An
input area with up and down arrows can limit a users input to specified values in a
range.
|
|
|
27.
|
If a
value entered is out of an allowable range, Visual Basic .NET quits the application.
|
|
|
28.
|
An
output area should provide visual cues to a user to indicate that the area should not be used for
input.
|
|
|
29.
|
Pseudocode is Visual Basic .NET code that describes in great detail how the code for a
given application should behave.
|
|
|
30.
|
When
you choose to start a new project in Visual Basic .NET, you can choose which type of application or
Windows component that you want to create.
|
|
|
31.
|
Clicking the Create directory for Solutions check box in the New Project dialog box
tells Visual Basic .NET to create a subdirectory with the same name as the project, in the project
location.
|
|
|
32.
|
You
cannot adjust a forms size during design time.
|
|
|
33.
|
Once
you have resized a form by dragging its borders, you must then remember to update the Width and
Height properties in the Properties window.
|
|
|
34.
|
The
buttons in the Properties window are always the same, regardless of what tasks you are completing in
the Visual Basic .NET IDE.
|
|
|
35.
|
Clicking the Property Pages button in the Properties window opens a dialog box with
options you can set for a solution or project.
|
|
|
36.
|
The
default value for the FormBorderStyle property is FixedDialog.
|
|
|
37.
|
A
Label control is used to display or allow users to enter numbers on a form.
|
|
|
38.
|
The
Windows Forms tab includes buttons that represent common controls used on a Windows
form.
|
|
|
39.
|
You
can add a control using one of two methods: drawing or dragging.
|
|
|
40.
|
You
can delete a control from a form at any point during design time.
|
|
|
41.
|
The
property values for the Value, Minimum, and Maximum properties of a NumericUpDown control can be
integer or decimal values, depending on the value of the DecimalPlaces property.
|
|
|
42.
|
A
Label control can, for example, instruct an application to calculate or process an output, based on
inputs that have been provided.
|
|
|
43.
|
Each
control has its own unique default name to distinguish it from another instance of the same class of
objects.
|
|
|
44.
|
Users
should rename forms just like they rename controls, even though forms are not a type of
control.
|
|
|
45.
|
The
text in a control and the name of the control are defined by the same properties and property
values.
|
|
|
46.
|
An
assignment statement tells the application to set the control property on the right side of the
statement to the property value on the left side of the statement.
|
|
|
47.
|
Visual Basic .NET automatically numbers all lines of code, as long as Visual Basic
.NET generated the lines automatically; if you entered the lines, you need to number them
manually.
|
|
|
48.
|
The
Options dialog box contains a list of options folders in the Options area, and many of these folders
have subfolders.
|
|
|
49.
|
Visual Basic .NET is not case-sensitive.
|
|
|
50.
|
After
finishing the development tasks on a project, the final step of the PDLC is to document the
application.
|
Completion
Complete each sentence or
statement.
|
|
|
51.
|
A(n)
____________________ is a collection of code and other files that usually encompasses one application
or class.
|
|
|
52.
|
When
the ____________________ button is selected in the Properties window, this indicates that a list of
properties currently displays in the Properties list.
|
|
|
53.
|
The
____________________ property of a form specifies the position where the application window displays
in the Windows desktop when the application is run.
|
|
|
54.
|
Changing the StartPosition property value from WindowsDefault to the value of
____________________ sets the application window to display in the center of the users
screen.
|
|
|
55.
|
Using
the ____________________ property value of the FormBorderStyle property displays the application
window in one size, with the appearance of a standard Windows dialog box.
|
|
|
56.
|
A(n)
____________________ control is used during run time to initiate actions called events.
|
|
|
57.
|
When
you are adding controls to a form, the dots on the background of the form, called the
____________________ grid, serve as anchors for aligning the controls.
|
|
|
58.
|
As
you position or size a control on a form, the top, bottom, left, and right borders of the controls
always align themselves, or ____________________, to the dots that display on a form.
|
|
|
59.
|
If
you want Visual Basic .NET to skip a control during tabbing, you can change the value of its
____________________ property from True to False.
|
|
|
60.
|
The
____________________ property determines whether a user can input data into a TextBox control at run
time.
|
|
|
61.
|
The
____________________ property of a NumericUpDown control defines the current value displayed in the
control.
|
|
|
62.
|
Programmers often add comments within their code statements as a form of
____________________ documentation.
|
|
|
63.
|
A(n)
____________________ is text added within an event procedure that explains how the code in the event
procedure works or why it was written.
|
|
|
64.
|
____________________ anticipates your needs during coding and displays prompts to
assist you in coding.
|
|
|
65.
|
In
Visual Basic .NET code, the line that starts with Private Sub is called the event
____________________ declaration.
|