Worksheets8525 AQA GCSE 3.2.2 Programming Concepts
Total questions: 60
Worksheet time: 34mins
What is a String?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Which value is a String?
64
"cat"
True
0.5
What is an Integer?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Which value is an Integer?
64
"cat"
True
0.5
What is a Float?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Which value is a Float?
64
"cat"
True
0.5
What is a Boolean?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Which value is a Boolean?
64
"cat"
True
0.5
Which data type is used to store:
100
Integer
Character
Boolean
String
Which data type is used to store:
TRUE
Boolean
Real
String
Integer
Which data type is used to store:
"&"
Character
String
Integer
Real
What type of data would you store your age in years?
Real
Integer
String
Boolean
What data type would you store a vehicle's registration plate?
Real
String
Boolean
Integer
What type of data would you use to store the answer to 29 divided by 5?
String
Integer
Real
Character
What type of data would you use to store whether someone wanted to sign up for promotions or not?
String
Boolean
Real
Integer
What type of data type would you use to store a password?
Real
String
Integer
Boolean
What data type would you use to record someone's height so that it could be used in a calculation?
Text
String
Numeric
Boolean
Which of the following variables names is an example of camelcaps case?
totalScore
TOTALSCORE
totalscore
ToTaLScOrE
Which word completes this sentence: "Iteration makes code more ___________"
Complex
Efficient
Simple
Straightforward
A FOR loop is....
A COUNT controlled loop
A CONDITION controlled loop
A WHILE loop is....
A COUNT controlled loop
A CONDITION controlled loop
Anil is writing a "rock, scissors, paper" program. He wants the game to repeat until the user doesn't want to play anymore. What loop should he use?
a FOR loop
a WHILE loop
Clara is writing a program that will print out the first ten numbers of a times table (chosen by the user). Should she use....
a FOR loop
a WHILE loop
Which of the following is not a type of loop?
IF
WHILE
FOR
Which of the following is not a selection statement?
ELSE
IF
SPLIT
ELIF
Which of the following are not selection statements?
FOR
IF
ELSE
FOR loops are
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
not part of programming
Which type of loop iterates until instructed otherwise?
FOR loop
WHILE loop
WHILE loops are
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
not part of programming
A condition is
a statement that is either True or False
a string
an integer
a list
Which kind of loop would be used?
I need a program that will keep letting me add money to a piggy bank until I get to £100.
FOR Loop
WHILE Loop
Which kind of loop would be used?
I need a program that will keep letting me add a monthly payment for 12 months.
FOR Loop
WHILE Loop
Which kind of loop would be used?
I need a guessing game program that will let me keep guessing until I get the right answer.
FOR Loop
WHILE Loop
Which kind of loop would be used?
I need a revision program that will run through revision questions 4 times.
FOR Loop
WHILE Loop
What is the output of the following range() function?
for num in range(2,-5,-1):
print(num, end=", ")
2, 1, 0
2, 1, 0, -1, -2, -3, -4, -5
2, 1, 0, -1, -2, -3, -4
0
Given the nested if-else below, what will be the value x when the code is executed successfully.
0
4
2
3
Given the nested if-else structure below, what will be the value of x after code execution completes.
2
0
3
4
What is the ending value of x?
101
None of the given options, this is an infinite loop
99
100
The data type INTEGER is used for what?
sentences
whole numbers
individual characters
fractions
17MOD4 = ?
5
3
1
4
