wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

VisualBasic Level 3

Total questions: 23

Worksheet time: 13mins

Name
Class
Date
1.
What is a variable? 
a)
A value that can change depending on the conditions or information passed through the program
b)
The label of a control
c)
An IF statement
d)
None of these answers
2.
What data type would this information be? 
a)
Boolean
b)
String
c)
Integer
d)
Decimal
3.
What data type would this information be? 
a)
Boolean
b)
String
c)
Integer
d)
Decimal
4.

How would you declare a 'Age' variable ?

a)

DECLARE Age as decimal

b)

DIM Age as integer

c)

DIM age as decimal

d)

DECLARE Age as integer

5.
What data type would this information be? 
a)
Decimal
b)
Currency
c)
Integer
d)
Number
6.

What is the output of this flowchart if the time is 6:30 a.m?

a)

Take subway and reach school.

b)

Take bus and reach school.

c)

Take subway, get the bus and reach school.

7.

It can hold whole numbers or Fractional numbers.

(a)  

8.

Which of the following is a valid name for a variable?



a)

Two_One

b)

2One

c)

Two One

d)

Two.One

9.
What data type would you use for a whole number? 
a)
String
b)
Integer
c)
Decimal
d)
Boolean
10.
What is an IF statement also known as?
a)
Options
b)
Selection
c)
Declaring
d)
Choosing
11.
This symbol (<)  means more than?
a)
True
b)
False
12.

Which of the following is a relational operator that means “Less than or Equal to”?

a)

<=

b)

>=

c)

<>

d)

=<

13.

________________ can accept input from the user.

a)

Label Box

b)

Picture Box

c)

Command Box

d)

Text Box

14.

The Len( ) function returns the Length of a word/string.

a)

TRUE

b)

FALSE

15.

If score >= 25 or score < 10 Then .... would be true for the following values of score. (Select All that applies)

a)

10

b)

25

c)

26

d)

11

e)

-10

16.

______________ is the control which we click to perform some action.

a)

Button

b)

Label Box

c)

Text Box

d)

Picture Box

17.

……….. is like a container/storage which holds a number or string.

a)

A. Variable

b)

B. Event

c)

C. Constant

d)

D. Datatype

18.

What is selection?

a)

Selecting a random variable in python

b)

Also called a decision, one of the three basic logic structures in programming. If statements

c)

Iteration, repeating a line of code within a loop

d)

Casting

19.
In programming, what is iteration?
a)
The repetition of steps within a program
b)
The order in which instructions are carried out
c)
A decision point in a program
d)
Testing a program to make sure it works
20.
Why is iteration important?
a)
It determines the order in which instructions are carried out
b)
It allows code to be simplified by removing duplicated steps
c)
It allows multiple paths through a program
d)
It ensures the code works correctly
21.

What does the ' allow you to do?

a)

Repeat code

b)

Comment on code

c)

Print code

d)

End code

22.

A binary variable, having two possible values called “true” and “false.”.

a)

String

b)

Integer

c)

Float

d)

Boolean

23.

It is traditionally a sequence of characters, either as a literal constant or as some kind of variable.

a)

Integer

b)

Float

c)

Dim

d)

String