1. The Button control can be activated:
a.)
programmatically through the click event.
b.) by clicking the button with the mouse.
c.) with the form’s DefaultButton property.
d.) Both a and b.
e.) All of the above.
Answer: d
2. The CancelButton property belongs to
which object?
a.)
Button
b.) Form
c.) Label
d.) TextBox
e.) Timer
Answer: b
3. A click event procedure stud for the
label control can be created by:
a.)
selecting the object and event from the code editor window’s drop-down
boxes.
b.) typing the code in the code editor window.
c.) by double clicking the control.
d.) Both a and b.
e.) All of the above.
Answer: e
4. In event-driven programming an event is
generated by:
a.)
the system.
b.) a user’s action.
c.) the program itself.
d.) Both a and b.
e.) All of the above.
Answer: e
5. Which is not a common control event?
a.)
Click
b.) SingleClick
c.) DoubleClick
d.) MouseMove
e.) MouseDown
Answer: b
6. The Tick event is found only in which
object?
a.) Form
b.) Button
c.) TextBox
d.) Label
e.) Timer
Answer: e
7. The Activated event is found only in
which object?
a.) Form
b.) Button
c.) TextBox
d.) Label
e.) Timer
Answer: a
8. The Rnd statement will generate a(n):
a.) decimal
value between 0.01 and 1.00.
b.) integer
value between 0.01 and 1.00.
c.) decimal
value between 0.0 and 1.0.
d.) integer
value between 0.0 and 1.0.
e.) decimal value between 0.0 and up to 1.0, but
not including 1.0.
Answer: e
9. The analysis phase of software
development involves:
a.)
collecting the requirements about what the program will accomplish.
b.) creating a detailed plan on how the program
will accomplish the requirements.
c.) writing the software with a program such as
VB.NET.
d.) Both a and b.
e.) All of the above.
Answer: a
10. Which phase of project development
typically costs the most?
a.) Analysis
b.) Design
c.) Implementation
d.) Maintenance
e.) Documentation
Answer: d
11. Which is not an integer data type?
a.)
Single
b.) Byte
c.) Short
d.) Integer
e.) Long
Answer: a
12. Which is a numeric data type?
a.)
Floating point
b.) Integer
c.) Boolean
d.) Both a and b.
e.) All of the above.
Answer:
d
13. Which sequence of char data types is
listed from lowest to highest?
a.)
a, A, z, Z
b.) a, z, A, Z
c.) A, a, Z, z
d.) A, Z, a, z
e.) z, a, Z, A
Answer: d
14. The Date data type does not hold which
type of information.
a.)
Seconds
b.) Hours
c.) Days
d.) Months
e.) Quarters
Answer: e
15. The Boolean data type:
a.)
is unsigned.
b.) has two states.
c.) is displayed by the program as yes or no.
d.) Both a and b.
e.) All of the above.
Answer: d
16. Which is a valid statement for declaring a variable?
a.)
Const Form As Integer
b.) Const myForm As Integer
c.) Dim Form As Integer
d.) Dim myForm As Integer
e.) All of the above.
Answer: d
17. VB.Net identifiers:
a.)
are case sensitive.
b.) can begin with an underscore.
c.) can begin with a number.
d.) Both a and b.
e.) All of the above.
Answer: b
18. The name of a constant:
a.)
must both begin with a letter and be all upper case.
b.) does not have to begin with a letter but must
be all upper case.
c.) must begin with a letter but can be upper or
lower case.
d.) does not have to begin with a letter and be
either upper or lower case.
e.) None of the above.
Answer: d
19. The proper operator precedence, from
first to last, is:
a.)
logical, comparison, and arithmetic.
b.) arithmetic, comparison, and logical.
c.) arithmetic, logical, and comparison.
d.) comparison, arithmetic, and logical.
e.) logical, arithmetic, comparison.
Answer: b
20. With A = False and B = True, which
statement evaluates as True?
a.)
A AND A
b.) A AND B
c.) B AND A
d.) B AND B
e.) None are true.
Answer: d
goog
ReplyDelete