NEW
Font size
S
M
L
XL
WorksheetsM6_Visual Basic_Final Quiz1
Total questions: 23
Worksheet time: 29mins
Name
Class
Date
1.
The equal sign in an assignment statement is called the ________.
a)
assignment operator
b)
assignment generator
c)
assignment statement
d)
assignment denominator
2.
Which is flow chart symbol used to represent the condition in selection and repetition structures.
a)
oval
b)
diamond
c)
rectangle
d)
parallelogram
3.
What contains the instruction to be processed when a selection structure’s condition evaluates to false?
a)
if path
b)
Else path
c)
true path
d)
False path
4.
What is contains the instructions to be processed when the selection structure’s condition evaluates to true?
a)
if path
b)
true path
c)
else path
d)
false path
5.
Loops of code that are executed repeatedly for a fixed number of times or until an intervention takes place.
a)
selection
b)
iteration
c)
sequence
d)
none of the above
6.
Which of the following Case clauses will processed when the intNum variable contains of the following integers: 5,6,7,8 or 9?
a)
Case 5 to 9
b)
Case > = 5 andAlso <=9
c)
Case > = 5 andAlso <=9
d)
Case > = 0 andAlso <=9
7.
Which is the relational operator for Less than or equal to?
a)
<>
b)
=>
c)
<+
d)
<=
8.
Which is the relational operator for greater than or equal to?
a)
> =
b)
<
c)
<>
d)
=>
9.
Which is the relational operator for Not equal to?
a)
> =
b)
=
c)
< >
d)
!=
10.
Which is the relational operator for equal to?
a)
>
b)
=
c)
<
d)
<>
11.
Which is the relational operator for less than?
a)
>
b)
<
c)
=>
d)
<>
12.
Which is the relational operator for greater than?
a)
>
b)
<
c)
=>
d)
<>
13.
What will be the following code display in message boxes?
a)
0,1,2,
b)
0,1,2,3,
c)
0,1,2,3,4
d)
0,1,2,3,4,5
14.
________ temporarily converts one or more characters to a number, and then returns the number.
a)
Value
b)
ByVal
c)
ASValue
d)
VAL Function
15.
The set of instructions for adding together two numbers is an example of the ___________ structure.
a)
control
b)
sequence
c)
selection
d)
repetition
16.
Which is a statement that assigns a value to destination (such as the property of a control)
a)
comment
b)
val function
c)
assignment operator
d)
assignment statement
17.
How can you stop a program that has an endless loop?
a)
click File on the menu bar and then click Stop
b)
click Debug on the menu bar and then click Exit
c)
click Debug on the menu bar and then click Stop Debugging
d)
click Debug on the menu bar and then click close Debugging
18.
What is the equal sign in an assignment statement?
a)
Val function
b)
Assignment operator
c)
assignment statement
d)
Assignment generator
19.
Which of the following statements decreases the intNum variable’s value by 4?
a)
intNum –= 4
b)
intNum = intNum – 4
c)
intNum = intNum + –4
d)
intNum = intNum + –5
20.
How many times will the computer process the MessageBox.Show method in the following code?
a)
3
b)
1
c)
2
d)
4
21.
. How many times will the computer process the MessageBox.Show method in the following code?
a)
0
b)
1
c)
2
d)
4
22.
How many times will the computer process the MessageBox.Show method in the following code?
a)
2
b)
3
c)
4
d)
1
23.
How many times will the computer process the MessageBox.Show method in the following code?
a)
1
b)
3
c)
4
d)
5
Reset
