NEW
Font size
S
M
L
XL
WorksheetsS3 Software Dev Quiz
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
Which of the following is the best definition of a variable?
a)
A construct used in VB and App Inventor
b)
Used to temporarily store a single value in RAM
c)
Used to permanently store data while a program is running
d)
String
2.
Select the best way to complete this sentence: An array stores a ________
a)
a single data type
b)
a list of items
c)
a list of items of the same data type
d)
A list of values
3.
Select the most suitable way to store all of the shoe sizes for members of the class.
a)
A variable of type string
b)
A variable of type integer
c)
An array of type string
d)
An array of type integer
4.
Which array has been correctly declared?
a)
Dim pupilMarks As Integer
b)
Dim phoneNumbers(10) As String
c)
Dim pupilNames(5) As Integer
d)
petNames(4) As String
5.
Which construct is illustrated in this example? Select the best answer.
a)
Sequence
b)
Iteration
c)
Selection
d)
Loops
6.
Which construct is used here?
a)
Sequence
b)
Sequence and selection
c)
Iteration
d)
Selection and iteration
7.
What is the output from a Randomize() operation?
a)
One number
b)
More than one number
c)
A message
d)
None of these
8.
Complete the line of code:
txtMessage. ________ = "Today you will receive good news."
txtMessage. ________ = "Today you will receive good news."
a)
&
b)
txt
c)
Text
d)
+
9.
Which line of code is correct to perform a calculation?
a)
Difference = item1 - item 2
b)
Difference=item1-item2
c)
item1-item2=Difference
d)
None of these is correct
10.
Which property of an object in VB would be used to display "ADO Update Demo"?
a)
name
b)
caption
c)
text
d)
font
Reset
