| 51. |
The
human eye is attracted to ______________ |
|
. |
|
|
a.. |
black
and white before colour |
|
b |
colour
before black and white |
|
c |
graphics
before text |
|
d |
text
before graphics |
|
e |
both
b and c |
|
. |
|
| 52. |
When
building an interface, always use ____________ |
|
. |
|
|
a |
dark
text on a dark background |
|
b |
dark
text on a light background |
|
c |
light
text on a dark background |
|
d |
light
text on a light background |
|
e |
either
b or c |
|
. |
|
| 53. |
Use
______________ fonts for the elements in the user interface. |
|
. |
|
|
a |
6-,
8- or 10-point |
|
b |
8-,
9-, 10-, 11- or 12-point |
|
c |
10-,
12- or 14-point |
|
d |
12-,
14- or 16-point |
|
. |
|
| 54. |
Limit
the number of font sizes used in an interfae to ___________________. |
|
. |
|
|
a |
one
or two |
|
b |
two
or three |
|
c |
three
or four |
|
. |
|
| 55. |
Use
a __________ font for the text in the user interface. |
|
. |
|
|
a |
sans
serif |
|
b |
sans |
|
. |
Back to
Top |
| 56. |
Limit
the number of font types used in an interface to
_______________________. |
|
. |
|
|
a |
one |
|
b |
two |
|
c |
three |
|
d |
four |
|
. |
|
| 57. |
To
put a border around a label control, you set the label control's
_______________ property to FixedSingle. |
|
. |
|
|
a |
Appearance |
|
b |
BackStyle |
|
c |
Border |
|
d |
BorderStyle |
|
e |
Text |
|
. |
|
| 58. |
You
use the ________________ character to assign an access key to a control. |
|
. |
|
|
a |
& |
|
b |
* |
|
c |
@ |
|
d |
$ |
|
e |
^ |
|
. |
|
| 59. |
You
assign an access key using a control's _______________ property. |
|
. |
|
|
a |
Access |
|
b |
Caption |
|
c |
Key |
|
d |
KeyAccess |
|
e |
Text |
|
. |
|
| 60. |
Explain
the procedure for choosing a control's access key. |
|
. |
Back to
Top |
| 61. |
Explain
how you give users keyboard access to a textbox. |
|
. |
|
| 62. |
When
will you use a For...Next loop? |
|
. |
|
| 63. |
For...Next
loops are _______ |
|
. |
|
|
a |
Top-driven |
|
b |
Bottom-driven |
|
c |
Both
a and b |
|
. |
|
| 64. |
If
the stepvalue in a For...Next loop is negative, what should the
startvalue be? |
|
. |
|
|
a |
The
endvalue should be equal to or larger than the startvalue |
|
b |
The
startvalue should be equal to or larger than the endvalue |
|
c |
The
startvalue should be equal to or smaller than the endvalue |
|
. |
|
| 65. |
What
flowchart symbol represents a For...Next loop and what information does
it contain? |
|
. |
Back to
Top |
| 66. |
Name
and briefly describe the three programming structures |
|
. |
|
| 67. |
Why
does every loop require a condition to evaluate? |
|
. |
|
| 68. |
Assume
the intNumber variable contains the number 90. What value will be
in the intNumber variable after the code is processed? |
| . |
|
|
If
intNumber <= 100 Then |
|
|
intNumber
= intNumber * 2 |
|
ElseIf
intNumber > 500 Then |
|
|
intNumber
= intNumber * 3 |
|
End
If |
|
. |
|
|
a |
0 |
|
b |
90 |
|
c |
180 |
|
d |
270 |
|
. |
|
| 69. |
Assume
the intNumber variable contains the number 1000. What value will
be in the intNumber variable after the code is processed? |
| . |
|
|
If
intNumber <= 100 Then |
|
|
intNumber
= intNumber * 2 |
|
ElseIf
intNumber > 500 Then |
|
|
intNumber
= intNumber * 3 |
|
End
If |
|
. |
|
|
a |
0 |
|
b |
1000 |
|
c |
2000 |
|
d |
3000 |
|
e |
none
of the above |
| . |
. |
|
| 70. |
Assume
the intNumber variable contains the number 200. What value will be
in the intNumber variable after the code is processed? |
| . |
|
|
If
intNumber <= 100 Then |
|
|
intNumber
= intNumber * 2 |
|
ElseIf
intNumber > 500 Then |
|
|
intNumber
= intNumber * 3 |
|
End
If |
|
. |
|
|
a |
0 |
|
b |
200 |
|
c |
400 |
|
d |
600 |
|
e |
none
of the above |
|
. |
Back to
Top |
| 71. |
What
will the code display if the intId variable contains the number 2? |
|
. |
|
|
If
intId = 1 Then |
|
|
Me.NameLabel.Text
= "Janet" |
|
ElseIf
intId = 2 OrElse intId = 3 Then |
|
|
Me.NameLabel.Text
= "Paul" |
|
ElseIf
intId = 4 Then |
|
|
Me.NameLabel.Text
= "Jerry" |
|
Else |
|
|
Me.NameLabel.Text
= "Sue" |
|
End
If |
|
. |
|
|
a |
Janet |
|
b |
Jerry |
|
c |
Paul |
|
d |
Sue |
|
e |
Nothing |
|
. |
|
| 72. |
What
will the the code display if the intId variable contains the number 4? |
|
. |
|
|
If
intId = 1 Then |
|
|
Me.NameLabel.Text
= "Janet" |
|
ElseIf
intId = 2 OrElse intId = 3 Then |
|
|
Me.NameLabel.Text
= "Paul" |
|
ElseIf
intId = 4 Then |
|
|
Me.NameLabel.Text
= "Jerry" |
|
Else |
|
|
Me.NameLabel.Text
= "Sue" |
|
End
If |
|
. |
|
|
a |
Janet |
|
b |
Jerry |
|
c |
Paul |
|
d |
Sue |
|
e |
Nothing |
|
. |
|
| 73. |
What
will the code display if the intId variable contains the number 3? |
|
. |
|
|
If
intId = 1 Then |
|
|
Me.NameLabel.Text
= "Janet" |
|
ElseIf
intId = 2 OrElse intId = 3 Then |
|
|
Me.NameLabel.Text
= "Paul" |
|
ElseIf
intId = 4 Then |
|
|
Me.NameLabel.Text
= "Jerry" |
|
Else |
|
|
Me.NameLabel.Text
= "Sue" |
|
End
If |
|
. |
|
|
a |
Janet |
|
b |
Jerry |
|
c |
Paul |
|
d |
Sue |
|
e |
Nothing |
|
. |
|
| 74. |
What
will the code display if the intId variable contains the number 8? |
|
. |
|
|
If
intId = 1 Then |
|
|
Me.NameLabel.Text
= "Janet" |
|
ElseIf
intId = 2 OrElse intId = 3 Then |
|
|
Me.NameLabel.Text
= "Paul" |
|
ElseIf
intId = 4 Then |
|
|
Me.NameLabel.Text
= "Jerry" |
|
Else |
|
|
Me.NameLabel.Text
= "Sue" |
|
End
If |
|
. |
|
|
a |
Janet |
|
b |
Jerry |
|
c |
Paul |
|
d |
Sue |
|
e |
Nothing |
|
. |
|
| 75. |
A
nested selection structure can appear in _____________ of another
selection structure. |
|
. |
|
|
a |
only
the true path |
|
b |
only
the false path |
|
c |
either
the true or the false path |
|
. |
Back to
Top |
| 76. |
Which
of the following flowchart symbols represent the Case selection
structure? |
|
. |
|
|
a |
diamond |
|
b |
hexagon |
|
c |
oval |
|
d |
parallelogram |
|
e |
rectangle |
|
. |
|
| 77. |
If
the selectorExpression used in the
Select Case statement is an Integer variable named intCode, which of the
following Case clauses is valid? |
|
. |
|
|
a |
Case
3 |
|
b |
Case
Is > 7 |
|
c |
Case
3, 5 |
|
d |
Case
1 To 4 |
|
e |
All
of the above |
|
. |
|
| 78. |
What
will the Case statement display if the intId variable contains the
number 2? |
|
. |
|
|
Select
Case intId |
|
|
Case
1 |
|
|
|
Me.NameLabel.Text
= "Janet" |
|
|
Case
2 To 4 |
|
|
|
Me.NameLabel.Text
= "Paul" |
|
|
Case
5, 7 |
|
|
|
Me.NameLabel.Text
= "Jerry" |
|
|
Case
Else |
|
|
|
Me.NameLabel.Text
= "Sue" |
|
End
Select |
|
. |
|
|
a |
Jerry |
|
b |
Paul |
|
c |
Sue |
|
d |
Nothing |
|
. |
|
| 79. |
What
will the Case statement display if the intId variable contains the
number 3? |
|
. |
|
|
Select
Case intId |
|
|
Case
1 |
|
|
|
Me.NameLabel.Text
= "Janet" |
|
|
Case
2 To 4 |
|
|
|
Me.NameLabel.Text
= "Paul" |
|
|
Case
5, 7 |
|
|
|
Me.NameLabel.Text
= "Jerry" |
|
|
Case
Else |
|
|
|
Me.NameLabel.Text
= "Sue" |
|
End
Select |
|
. |
|
|
a |
Jerry |
|
b |
Paul |
|
c |
Sue |
|
d |
Nothing |
|
. |
|
| 80. |
What
will the Case statement display if the intId variable contains the
number 6? |
|
. |
|
|
Select
Case intId |
|
|
Case
1 |
|
|
|
Me.NameLabel.Text
= "Janet" |
|
|
Case
2 To 4 |
|
|
|
Me.NameLabel.Text
= "Paul" |
|
|
Case
5, 7 |
|
|
|
Me.NameLabel.Text
= "Jerry" |
|
|
Case
Else |
|
|
|
Me.NameLabel.Text
= "Sue" |
|
End
Select |
|
. |
|
|
a |
Jerry |
|
b |
Paul |
|
c |
Sue |
|
d |
Nothing |
|
. |
Back to
Top |
| 81. |
Which
of the following can be used to determine whether the sender
parameter contains the address of the NameTextBox? |
|
. |
|
|
a |
If
sender Is NameTextBox Then |
|
b |
If
sender = NameTextBox Then |
|
c |
If
sender Like NameTextBox Then |
|
d |
If
sender Is = NameTextBox Then |
|
e |
If
TypeOf sender Is NameTextBox Then |
|
. |
|
| 82. |
Which
of the following can be used to determine whether the sender
parameter contains the address of a label control? |
|
. |
|
|
a |
If
sender Is Label Then |
|
b |
If
sender = Label Then |
|
c |
If
sender Like Label Then |
|
d |
If
sender Is = Label Then |
|
e |
If
TypeOf sender Is Label Then |
|
. |
|
| 83. |
Which
of the following can be used to determine whether the strPartNum
variable contains two characters followed by a digit? |
|
. |
|
|
a |
If
UCase(strPartNum) = "##?" Then |
|
b |
If
UCase(strPartNum) Is = "**?" Then |
|
c |
If
UCase(strPartNum) Is "##?" Then |
|
d |
If
UCase(strPartNum) Like "[0-9]" Then |
|
e |
none
of the above |
|
. |
|
| 84. |
Which
of the following can be used to determine whether the strItem variable
contains either the word "shirt" or the word
"skirt"? |
|
. |
|
|
a |
If
UCase(strItem) = "SHIRT" OrElse UCase(strItem) =
"SKIRT" Then |
|
b |
If
UCase(strItem) = "S[HK]IRT" Then |
|
c |
If
UCase(strItem) Like "S[HK]IRT" Then |
|
d |
If
UCase(strItem) Like "S[H-K]IRT" Then |
|
e |
a
and c |
|
. |
|
| 85. |
Which
of the following can be used to determine whether the percent sign (%)
is the last character entered in the RateTextBox? |
|
. |
|
|
a |
If
"%" Like Me.RateTextBox.Text Then |
|
b |
If
"%" Like [Me.RateTextBox.Text] Then |
|
c |
If
Me.RateTextBox.Text Like "?%" Then |
|
d |
If
Me.RateTextBox.Text Like "*%" Then |
|
e |
If
Me.RateTextBox.Text Like [*%] Then |
|
. |
Back to
Top |
| 86. |
Which
of the following pattern-matching characters represents any single digit
(0-9)? |
|
. |
|
|
a |
# |
|
b |
* |
|
c |
? |
|
d |
& |
|
e |
@ |
|
. |
|
| 87. |
Which
of the following pattern-matching characters represents zero or more
characters? |
|
. |
|
|
a |
# |
|
b |
* |
|
c |
? |
|
d |
& |
|
e |
@ |
|
. |
|
| 88. |
Assume
that you need to create a procedure that displays the appropriate fee to
charge a golfer. The fee is set out -- Club Members pay no fee,
non-members on Monday to Thursday pay $15 and non-members on Friday to
Saturday pay $25. In this procedure, which is the primary decision
and which is the secondary decision? Motivate your answer. |
|
. |
|
| 89. |
List
the 3 errors commonly made when writing selection structures.
Which error makes the selection structure inefficient, but not
incorrect? |
|
. |
|
| 90. |
Explain
the term "desk-checking". |
|
. |
Back to
Top |
| 91. |
What
is an object reference? |
|
. |
|
| 92. |
What
is an algorithm? |
|
. |
|
| 93. |
Before
opening a sequential access file, make sure the file has been created by
using the _____ method. |
|
. |
|
|
a |
Access |
|
b |
Open |
|
c |
Test |
|
d |
Exists |
|
. |
|
| 94. |
A
person"s Social Security number is an example of a _____ . |
|
. |
|
|
a |
file |
|
b |
record |
|
c |
field |
|
d |
character |
|
. |
|
| 95. |
Visual
Basic .NET uses a _____ to keep track of its location in a file. |
|
. |
|
|
a |
position
tracker |
|
b |
location
finder |
|
c |
file
pointer |
|
d |
track
finder |
|
. |
Back to Top |
| 96. |
Sequential
files are often referred to as _____ files. |
|
. |
|
|
a |
orderly |
|
b |
random |
|
c |
text |
|
d |
consecutive |
|
. |
|
| 97. |
Unless
otherwise specified, any sequential file that is created is located in
the _____ folder. |
|
. |
|
|
a |
project |
|
b |
solution |
|
c |
bin |
|
d |
file |
|
. |
|
| 98. |
One
way to separate data in a file is to use the _____ character. |
|
. |
|
|
a |
x |
|
b |
# |
|
c |
- |
|
d |
9 |
|
. |
|
| 99. |
Information
in a sequential access file is always accessed _____ . |
|
. |
|
|
a |
from
the beginning of the file |
|
b |
by
using a primary key |
|
c |
in
any order |
|
d |
in
ascending sequence, by record number |
|
. |
|
| 100. |
The
difference between the Write method and WriteLine method is _____ . |
|
. |
|
|
a |
write
only writes one variable |
|
b |
writeline
only writes one variable |
|
c |
write
positions the insertion point at the next line |
|
d |
writeline
positions the insertion point at the next line |
|
. |
Back to Top |