wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8525 AQA GCSE 3.2.2 Programming Concepts

Total questions: 60

Worksheet time: 34mins

Name
Class
Date
1.

What is a String?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

2.

Which value is a String?

a)

64

b)

"cat"

c)

True

d)

0.5

3.

What is an Integer?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

4.

Which value is an Integer?

a)

64

b)

"cat"

c)

True

d)

0.5

5.

What is a Float?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

6.

Which value is a Float?

a)

64

b)

"cat"

c)

True

d)

0.5

7.

What is a Boolean?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

8.

Which value is a Boolean?

a)

64

b)

"cat"

c)

True

d)

0.5

9.

Which data type is used to store:

100

a)

Integer

b)

Character

c)

Boolean

d)

String

10.

Which data type is used to store:

TRUE

a)

Boolean

b)

Real

c)

String

d)

Integer

11.

Which data type is used to store:

"&"

a)

Character

b)

String

c)

Integer

d)

Real

12.
This data type is used to store a mixture of letters and numbers and symbols.
a)
String
b)
Character
c)
Boolean
d)
Integer
13.

What type of data would you store your age in years?

a)

Real

b)

Integer

c)

String

d)

Boolean

14.

What data type would you store a vehicle's registration plate?

a)

Real

b)

String

c)

Boolean

d)

Integer

15.

What type of data would you use to store the answer to 29 divided by 5?

a)

String

b)

Integer

c)

Real

d)

Character

16.

What type of data would you use to store whether someone wanted to sign up for promotions or not?

a)

String

b)

Boolean

c)

Real

d)

Integer

17.

What type of data type would you use to store a password?

a)

Real

b)

String

c)

Integer

d)

Boolean

18.

What data type would you use to record someone's height so that it could be used in a calculation?

a)

Text

b)

String

c)

Numeric

d)

Boolean

19.
Variables cannot be changed.
a)
False
b)
True
20.
Constants cannot be changed.
a)
True
b)
False
21.
Which of these values would be useful as a constant?
a)
Pi
b)
Di
c)
Ni
d)
Pie
22.
The value of a constant can be changed using an expression.
a)
False
b)
True
23.
Variable names can't start with a number.
a)
True
b)
False
24.
Variable names can include spaces.
a)
False
b)
True
25.
Some specific words can't be used as variables.
a)
True
b)
False
26.

Which of the following variables names is an example of camelcaps case?

a)

totalScore

b)

TOTALSCORE

c)

totalscore

d)

ToTaLScOrE

27.
You cannot complete an expression that mixes variables and constants.
a)
False
b)
True
28.
What is another word for 'iteration'?
a)
Selection
b)
Variable Assignment
c)
Repetition
d)
Sequencing
29.

Which word completes this sentence: "Iteration makes code more ___________"

a)

Complex

b)

Efficient

c)

Simple

d)

Straightforward

30.

A FOR loop is....

a)

A COUNT controlled loop

b)

A CONDITION controlled loop

31.

A WHILE loop is....

a)

A COUNT controlled loop

b)

A CONDITION controlled loop

32.

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)

a FOR loop

b)

a WHILE loop

33.

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)

a FOR loop

b)

a WHILE loop

34.
Loops are used to repeat parts of a program
a)
True
b)
False
35.

Which of the following is not a type of loop?

a)

IF

b)

WHILE

c)

FOR

36.
Which of the following is a count-controlled loop?
a)
FOR
b)
Else
c)
If
d)
Int
37.
Selection in a program is controlled by...
a)
IF statements
b)
WHILE loops
c)
REPEAT loops
d)
Arrays
38.
An IF statement is triggered by....
a)
Conditions
b)
Comments
c)
Loops
d)
Time
39.
Which of the following statements can be used to extend selection from a single IF statement?
a)
ELSE
b)
DO
c)
CHOICE
d)
ELK
40.

Which of the following is not a selection statement?

a)

ELSE

b)

IF

c)

SPLIT

d)

ELIF

41.
Which of the following is an example of selection in pseudocode?
a)
IF x < 10 THEN
b)
WHEN x < 10
c)
(x < 10) IF TRUE THEN
d)
FOR x=0 TO 10
42.
Selection conditions have only two outcomes, TRUE or FALSE.
a)
True
b)
False
43.

Which of the following are not selection statements?

a)

FOR

b)

IF

c)

ELSE

44.
Why is iteration important?
a)
It determines the order in which instructions are carried out
b)
It allows code to be simplified by removing duplicated steps
c)
It allows multiple paths through a program
d)
It ensures the code works correctly
45.
Which two statements are used to implement iteration?
a)
IF and WHILE
b)
ELSE and WHILE
c)
FOR and WHILE
d)
IF and ELSE
46.

FOR loops are

a)

loops which run an unknown number of times

b)

loops which run for a specific number of times

c)

the same as if statements

d)

not part of programming

47.

Which type of loop iterates until instructed otherwise?

a)

FOR loop

b)

WHILE loop

48.

WHILE loops are

a)

loops which run an unknown number of times

b)

loops which run for a specific number of times

c)

the same as if statements

d)

not part of programming

49.

A condition is

a)

a statement that is either True or False

b)

a string

c)

an integer

d)

a list

50.
The condition for a while loop to continue could include which of the following?
a)
While something equals something
b)
While something is greater than something
c)
While something is True
d)
All of these
51.

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.

a)

FOR Loop

b)

WHILE Loop

52.

Which kind of loop would be used?


I need a program that will keep letting me add a monthly payment for 12 months.

a)

FOR Loop

b)

WHILE Loop

53.

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.

a)

FOR Loop

b)

WHILE Loop

54.

Which kind of loop would be used?


I need a revision program that will run through revision questions 4 times.

a)

FOR Loop

b)

WHILE Loop

55.

What is the output of the following range() function?


for num in range(2,-5,-1):

print(num, end=", ")

a)

2, 1, 0

b)

2, 1, 0, -1, -2, -3, -4, -5

c)

2, 1, 0, -1, -2, -3, -4

d)

0

56.

Given the nested if-else below, what will be the value x when the code is executed successfully.

a)

0

b)

4

c)

2

d)

3

57.

Given the nested if-else structure below, what will be the value of x after code execution completes.

a)

2

b)

0

c)

3

d)

4

58.

What is the ending value of x?

a)

101

b)

None of the given options, this is an infinite loop

c)

99

d)

100

59.

The data type INTEGER is used for what?

a)

sentences

b)

whole numbers

c)

individual characters

d)

fractions

60.

17MOD4 = ?

a)

5

b)

3

c)

1

d)

4