Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Types & Pseudocode [OCR GCSE]

Total questions: 9

Worksheet time: 8mins

Name
Class
Date
1.

Match the following

a)

Boolean

1.

Stores only true or false

b)

String

2.

Can store multiple characters

c)

Character

3.

Can store a single character

d)

Real

4.

Can store decimal numbers

e)

Integer

5.

Can store only whole numbers

2.

Complete the following pseudocode:

print("Name: ")

name = (a)   ()

print("Hello " + name)

3.

The following code shows which type of structure:

IF age >= 20 THEN

PRINT("Old timer!")

END IF

a)

Iteration

b)

Sequence

c)

Selection

4.

A ​ (a)   is a space in memory used to store data. These can store different types of data such as ​ (b)   which allow us to store multiple characters. Another ​ (c)   is a ​ (d)   which allows us to store only true and false values.

Choose from the below words
variable
strings
data type
Boolean
box
5.

The type of test that checks if something it at the edge of the allowed inputs is called ​ (a)   testing. Checking data that is incorrect, or outside of what should be allowed is called ​ (b)   testing. ​ (c)   testing is when you check the inputs that should be allowed.

Choose from the below words
Boundary
erroneous
Normal
Correct
Edge
error
edge
correct
incorrect
range
6.

A function returns a value.

a)

True

b)

False

7.

A subroutine must accept parameters.

a)

True

b)

False

8.

Lebel the flowchart symbols correctly.

9.

The following array has ​ (a)   elements. The first element will have the index of ​ (b)   . The last element will have the index of ​ (c)   .

myArray = ['a', 'f', 'r', 'p', 'b']

Choose from the below words
5
0
4
6
3
b