WorksheetsProgramming Recap - 9F5
Total questions: 15
Worksheet time: 8mins
Name
Class
Date
1.
Dim age As ________
Which data type should you use?
Which data type should you use?
a)
Integer
b)
Double
c)
Boolean
d)
String
2.
Dim school As ________
Which data type should you use?
Which data type should you use?
a)
Integer
b)
Double
c)
Boolean
d)
String
3.
Dim average As ________
Which data type should you use?
Which data type should you use?
a)
Integer
b)
Double
c)
Boolean
d)
String
4.
Ask the user to enter their name
Which variable name would be sensible to use?
Which variable name would be sensible to use?
a)
name
b)
age
c)
var1
d)
variable
5.
Ask the user to enter 2 test scores
Which variable name would be sensible to use?
Which variable name would be sensible to use?
a)
var1, var2
b)
num1, num2
c)
score1, score2
d)
bill, ben
6.
Name every variable in this section of code
Dim firstName As String
Dim secondName As String
Dim age As Integer
Dim firstName As String
Dim secondName As String
Dim age As Integer
a)
firstName, secondName, age
b)
Dim, Dim, Dim
c)
String, String, Integer
7.
Name every variable in this section of code
Dim subject1 As String
Dim subject2 As String
Dim subject3 As String
Dim subject1 As String
Dim subject2 As String
Dim subject3 As String
a)
subject1, subject2, subject3
b)
Dim, Dim, Dim
c)
String, String, String
8.
What is the technical term for an If Statement?
a)
Selection
b)
Iteration
c)
Sequence
9.
What is this the definition for?
Allows the user to make a decision based on a test
Allows the user to make a decision based on a test
a)
Variable
b)
If Statement
c)
Programming
10.
What is this the definition for?
A storage location with a unique name that can change
A storage location with a unique name that can change
a)
Variable
b)
If Statement
c)
Programming
11.
What is missing from this code?
Console._______ ("Hello World")
Console._______ ("Hello World")
a)
WriteLine
b)
ReadLine
12.
What is missing from this code?
Console.WriteLine("Enter a number")
number = Console._________
Console.WriteLine("Enter a number")
number = Console._________
a)
WriteLine
b)
ReadLine
13.
How would you declare a Variable called number?
a)
Dim number
b)
number = Console.ReadLine
14.
What can a String store?
a)
Words
b)
Letters and numbers
c)
Symbols
d)
Whole Numbers
15.
What can an Integer store?
a)
Words
b)
Letters and numbers
c)
Symbols
d)
Whole Numbers
100 %
