Font size
WorksheetsIntro to Pseudocode & Flowcharts
Total questions: 22
Worksheet time: 15mins
Yes
19
What will happen if the user's book return is late?
Sends them an SMS (text)
Does not send them an SMS (text)
What does the following pseudocode snippet do?
DECLARE Car : STRING
It creates a character variable named car.
Creates a new car object.
Nothing
It creates an address in memory which is referenced by the label car.
What is a CHAR datatype?
A datatype that can hold any single character.
A datatype that can hold only numbers.
A datatype that can be ignored.
A datatype that can fit 7.
(a) Counter : INTEGER
DECLARE StudentNames : (a) [1:30] OF STRING
Assign the value of "Ali" to the first item in an array called UserNames in pseudocode
(a)
Complete the following pseudocode
. . FOR Index ← 1 TO 30
. . . . . StudentNames[Index] ← ""
. . NEXT (a)
Please note the dots are just there to show indenting, (you dont write the dots)
Complete the following Pseudocode If statement
. . IF 5 > 3 THEN
. . . . OUTPUT "5 is bigger"
. . ELSE
. . . . OUTPUT "3 is bigger"
(a)
Please note the dots are just there to show indenting, (you dont write the dots)
Complete the following Pseudocode If statement
. . IF Num % 2 = 1 (a)
. . . . OUTPUT Num, "is an odd number"
Please note the dots are just there to show indenting, (you dont write the dots)
Write the pseudocode statements to store the string "Hello World" in the variable Greeting
(a)
Give the line number for the statements showing: Totalling
7
4
2
16
Give the line number for the statements showing: Post‑condition loop
7
4
2
16
Which lines have errors?
7,16
8,16,17
7,8,16
16
The variable Saying is used to store string data in a program.
Write the pseudocode statement to declare the variable Saying
(a)
