Font size
WorksheetsProgramming
Total questions: 15
Worksheet time: 8mins
What is iteration?
A process wherein a set of instructions or structures are repeated once.
A process wherein a set of instructions or structures are not repeated in a sequence a specified number of times or until a condition is met
A process wherein a set of instructions or structures are repeated in a sequence a specified number of times or until a condition is met.
A process wherein a set of instructions or structures are repeated in a sequence a random number of times or until a condition is met
An If Statement is used in?
Iteration
Selection
Sequence
What value does a String return?
1.29
H
8
Ten
What value will a float return?
True
14
seven
2.92
What value will Boolean return?
14
Fish and chips
T
True
What will the following code output if four different students scored: 60, 57,61,79?
IF average ≥ 80 THEN
OUTPUT “Distinction”
ELSE IF average ≥ 60 THEN
OUTPUT ”Merit”
ELSE IF average ≥ 40 THEN
OUTPUT “Pass”
ELSE
OUTPUT “Fail”
ENDIF
Merit, Merit, Merit Merit
Pass, Merit, Merit Pass
Merit, Pass, Merit, Merit
Merit, Pass, Merit, Distinction
According to the code below. What is the price for an adult on Saturday?
IF member = “child” THEN
IF day = “Saturday” THEN
swimPrice 2.00
ELSE
swimPrice 2.50
ENDIF
ELSE
swimPrice 4.00
ENDIF
2.50
2.00
6.00
4.00
According to the code below. What is the price for a child to swim on Monday?
IF member = “child” THEN
IF day = “Saturday” THEN
swimPrice 2.00
ELSE
swimPrice 2.50
ENDIF
ELSE
swimPrice 4.00
ENDIF
4.00
2.00
2.10
2.50
What is a Variable?
A data values that can change when the user is asked a question, for example, their age
A data values that can only change once
A data values that cannot change when the user is asked a question, for example, their age
A data values that can change automatically
What is an Array?
A data structure that does not allow you to hold several values with one name.
An impressive range of lights.
A data structure that allows you to hold several values, all of the same type, with one name.
A data structure that allows you to hold several values, all of the same type, with one name.
What is Pseudocode?
A programming language.
Executable code
A notation resembling a simplified programming language, used in program design
A type of diagram that represents a workflow or process
What is a subroutine?
A sequence of actions regularly followed.
Low level instructions
A set of instructions designed to perform a frequently used operation within a program.
A set of instructions
Which of these can be used as data validation checks?
Range check
Rope check
Presence check
Length check
Which of the following relates to a Presence check?
Data is of the right type, such as integer, letter or text
Checks that the format of, for example, a postcode or email address is correct
Checks that data has been entered, i.e. the field has not been left blank
Text entered is not too long or too short – for example, a password is between 8 and 15 characters
What is a trace table?
A table used to record the scores of a computer football game
A transparent table
A table useful for tracing through a program in order to find a logic error
A table that hold all variables within code
