WorksheetsData Types & Pseudocode [OCR GCSE]
Total questions: 9
Worksheet time: 8mins
Boolean
Stores only true or false
String
Can store multiple characters
Character
Can store a single character
Real
Can store decimal numbers
Integer
Can store only whole numbers
Complete the following pseudocode:
print("Name: ")
name = (a) ()
print("Hello " + name)
The following code shows which type of structure:
IF age >= 20 THEN
PRINT("Old timer!")
END IF
Iteration
Sequence
Selection
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.
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.
A function returns a value.
True
False
A subroutine must accept parameters.
True
False
Lebel the flowchart symbols correctly.
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']
