Font size
WorksheetsProgramming S3
Total questions: 25
Worksheet time: 14mins
Which data type stores text/characters?
String
Integer
Single
Which data type stores whole numbers?
String
Integer
Single
Which data type stores real numbers?
String
Integer
Single
What is the following code doing: TotalMarks = 8
Declaring a variable
Assigning a value to a variable
Performing a calculation
Finding the running total
How would you declare a variable for the age of someone?
DECLARE Age as decimal
DIM Age as integer
DIM Age as Single
DECLARE Age as integer
How would you get input from the user to store the username?
username = ("Enter your username")
("Enter your username") = username
username = Input("Enter your username")
username = InputBox("Enter your username")
________________ is used to accept input from the user.
Label
InputBox
MsgBox
ListBox
What is the code to display the value in the result variable?
Msg = ("Your result is " & result)
MsgBox("Your result is " & result)
output("Your result is " & result)
None of the above
What is used to execute the program?
Which of the following is a relational operator that means “Less than or Equal to”?
<=
>=
<>
=<
What would the following code display?
answer = 2 * 10
MsgBox("Your answer is " & answer)
Your answer is 20
Your answer is 12
You are answer is 20
20
What is a condition?
Something that is true or false
Something that is conditional
Something that depends on something else
Something that you need to figure out
What is the purpose of a fixed loop?
To repeat a section of code multiple times
To repeat a section of code depending on a condition
To repeat a section of code
To repeat a section of code a fixed amount of times
What will the output message be if 50 is entered as the grade?
A
B
C
You did not pass
How would you ask to user to enter a surname into the program?
Surname = InputBox("Enter your surname")
string = SurnameTextbox
Surname = String
Surname = MsgBox("Enter your surname")
Read the code provided: if the user enters 8 what will the output be?
Correct! Well done!
Too high, try again!
Too low, try again!
The program will break
Which line of code will display a message to the user correctly?
Inputbox("Hello")
MsgBox = ("Hello")
MsgBox("Hello")
("Hello")
Reading the code provided: What will the program output if the user inputs "Yellow71"?
Password Correct
Password Incorrect
The program will crash
What does this symbol mean?
<
Less than
More than
Equal to
Not Equal to
What does this symbol mean?
<>
Less than
More than
Equal to
Not Equal to
Which one of the following is NOT a type of test data
Normal
Extreme
Exceptional
Acceptable
Match the test data type to the description
Exceptional
Within the boundaries of the program
Extreme
The limits of the program
Normal
Outside the boundary or wrong data type
Identify the error
Logic
Syntax
Execution
A program should accept 100 as the upper limit of the program, but keeps displaying the wrong message.
Identify the error.
Logic
Syntax
Execution
