wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

8525 AQA GCSE 3.1.1 Pseudo-code

Total questions: 14

Worksheet time: 14mins

Name
Class
Date
1.
Pseudocode should be generic -
It should not use any specific programming language
a)
True
b)
False
2.

In pseudo-code, what does the keyword IF represent?

a)

To provide a response if a statement is not met

b)

To provide a response if a statement is met

c)

A loop with a condition set at the start

d)

Used in a question as part of the decision process

3.

In pseudo-code, what does the keyword ELSE represent?

a)

To provide a response if a statement is not met

b)

To provide a response if a statement is met

c)

A loop with a condition set at the start

d)

Used in a question as part of the decision process

4.

In pseudo-code, what does the keyword OUTPUT represent?

a)

Used to create a counting loop

b)

To display a response on screen to the user

c)

A loop with a condition set at the start

d)

Requires an entry from the user in response to a question

5.

In pseudo-code, what does the keyword WHILE represent?

a)

To provide a response if a statement is not met

b)

To provide a response if a statement is met

c)

A loop with a condition set at the start

d)

Used in a question as part of the decision process

6.

In pseudo-code, what does the keyword INPUT represent?

a)

Used to create a counting loop

b)

To display a response on screen to the user

c)

A loop with a condition set at the start

d)

Requires an entry from the user in response to a question

7.

In pseudo-code, what does the keyword FOR represent?

a)

Used to create a counting loop

b)

To display a response on screen to the user

c)

A loop with a condition set at the start

d)

Requires an entry from the user in response to a question

8.

What will be the output of the following Pseudo code?


int p=4, q=7, r=10

p = q mod r

q = q + p

r = r + q

print p, q and r

a)

7 14 24

b)

7 11 17

c)

7 14 21

d)

4 11 17

9.

Predict the output of the following pseudo code?


integer a = 2, b = 50

a = a + b

b = a - b

print a

print b

a)

-2 52

b)

2 50

c)

52 2

d)

52 -48

10.

In pseudo-code, what will the keyword ENDWHILE be used for?

a)

To mark the end of a selection sub-section of the algorithm.

b)

To mark the end of a conditional iteration sub-section of the algorithm.

c)

To mark the end of a counting iteration sub-section of the algorithm.

d)

To mark the end of a user input sub-section of the algorithm.

11.

Which symbol is used to represent a comment in AQA pseudo-code?

a)

//

b)

?

c)

#

d)

*

12.

Which symbol is used to represent assignment in AQA Pseudo-code?

a)

b)

<

c)

/

d)

13.

What does emboldened pseudo-code represent?

a)

Incorrect words

b)

Keywords/operators

c)

Ordinary words

d)

Algorithm statements

14.

Which number will AQA Pseudo-code start with for indexing of arrays and strings?

a)

0

b)

1