wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pseudocode Revision Quiz

Total questions: 10

Worksheet time: 17mins

Name
Class
Date
1.

Finish the pseudocode to create a loop that stops after a certain condition is met

_____ password != "password123"

password=input("Guess again")

end_____

(a)  

2.

Which of these is correct to cast TRUE

a)

bool(" ")

b)

str(" ")

c)

int(" ")

d)

real(" ")

3.

How do you represent the action of displaying output? (more than 1)

a)

WRITE

b)

DISPLAY

c)

PRINT

d)

SHOW

e)

OUTPUT

4.

What is a constant?

4 lines
5.

What are the 5 data types?

4 lines
6.

What is wrong with this pseudocode? (more than 1)

if hour < 12:

print("good morning)

a)

: instead of THEN

b)

no capital letter for good morning

c)

missing speech marks

d)

no indentation

e)

print instead of output

7.

What is casting?

4 lines
8.

What are the three types of loops?

a)

WHILE

b)

SWITCH

c)

DO

d)

FOR

e)

IF

9.

what is used to concatenate the code print("Hello" (a)   name)

10.

What is a nested loop?

4 lines