NEW
Font size
S
M
L
XL
WorksheetsProgramming Concepts - 9E3
Total questions: 15
Worksheet time: 8mins
Name
Class
Date
1.
Declare a new variable called name
a)
Dim name As Integer
b)
Dim name As String
2.
Declare a new variable called score
a)
Dim score As Integer
b)
Dim score As String
3.
Ask the user to enter their form
a)
Console.WriteLine("Enter your form")
b)
Console.ReadLine("Enter your form")
4.
Ask the user to enter their favourite drink
a)
Console.WriteLine("Enter your favourite drink")
b)
Console.ReadLine("Enter your favourite drink")
5.
Store the user's answer inside the date variable
a)
date = Console.ReadLine()
b)
date = Console.WriteLine()
6.
Store the user's answer inside the teachername variable
a)
teachername = Console.ReadLine()
b)
teachername = Console.WriteLine()
7.
What would you see on the screen?
Console.WriteLine ("Hello everyone")
Console.WriteLine ("Hello everyone")
a)
Hello Everyone
b)
Console.WriteLine
8.
What would you see on the screen?
Dim name as String = "Bob"
Console.WriteLine (name)
Dim name as String = "Bob"
Console.WriteLine (name)
a)
Bob
b)
name
9.
What would you see on the screen?
Dim school as String = "Valley Park"
Console.WriteLine (school)
Dim school as String = "Valley Park"
Console.WriteLine (school)
a)
Valley Park
b)
school
10.
What would you see on the screen?
Dim age As Integer = 18
If age = 18 Then
Console.WriteLine("You are 18")
Else
Console.WriteLine("You are not 18")
Dim age As Integer = 18
If age = 18 Then
Console.WriteLine("You are 18")
Else
Console.WriteLine("You are not 18")
a)
You are 18
b)
You are not 18
11.
What is the name of the variable?
Dim yeargroup As Integer
Dim yeargroup As Integer
a)
Dim
b)
yeargroup
c)
Integer
d)
As
12.
What is the name of the variable?
Dim shop As String
Dim shop As String
a)
Dim
b)
shop
c)
String
d)
As
13.
What is the Data Type?
Dim lesson As String
Dim lesson As String
a)
Dim
b)
lesson
c)
String
d)
As
14.
What is the Data Type?
Dim housenumber As Integer
Dim housenumber As Integer
a)
Dim
b)
housenumber
c)
Integer
d)
As
15.
What is the Data Type?
Dim average As Double
Dim average As Double
a)
Dim
b)
average
c)
Double
d)
As
Reset
