Concepts
Data Types
Input & Output
Trace the Output
Debugging
100

What keyword begins and closes a pseudocode program?

START, END

100

Which data type stores True or False?

BOOLEAN

100

Write a statement to display: Hello

OUTPUT "Hello"

100

START 

DECLARE name: STRING

INPUT name

OUTPUT "Hi," name

END

If user enters "Zoe", what is the output?

"Hi, Zoe"

100

Fix:
DECLARE name = STRING

DECLARE name : STRING

200

Term: Receives data from the user

INPUT

200

Which data type should be used to store number of students?

INTEGER

200

Write a statement to receive input into variable name

INPUT name

200

START 

DECLARE name: STRING

INPUT name

OUTPUT "Morning, " name, ". How are you?"

END

If user enters "Caleb", what is the output?

"Morning, Caleb. How are you?"

200

Fix:
OUTPUT Hello

OUTPUT "Hello"

300

Term: Displays data to the user

OUTPUT

300

Which data type should be used to store temperature (eg: 37.9)?

REAL

300

Write a statement to display "Hi " and the variable name

OUTPUT "Hi " + name

300

START 

DECLARE num: INTEGER

INPUT num

OUTPUT num + num + num

END

If input is 67, what is the output?

201

300

Find and fix TWO errors:

START

DECLARE age: STRING

INPUT "age"

END

START

DECLARE age:INTEGER

INPUT age

END

400

Term: A container used to store a value.

Variable

400

Which data type should be used to store name?

STRING

400

Write a statement to display the result of adding 2 to the variable number.

OUTPUT number + 2

400

START

DECLARE age : INTEGER

INPUT age

OUTPUT "You will be ", age + 5, " years old in five more years."

END

"You will be 25 years old in five more years."

400

Find and fix TWO errors:

START

DECLARE StudentID:STRING

INPUT "Enter your student ID:"

INPUT StudentID

OUTPUT "Your student ID is ", StudentID

END

START

DECLARE StudentID:STRING

OUTPUT "Enter your student ID:"

INPUT StudentID

OUTPUT "Your student ID is "+ StudentID

END

500

Term: Describes a variable (the name and datat type of a variable)

DECLARE

500

Which data type should be used to store gender (eg: 'M', 'F')?

CHAR

500

Write pseudocode to ask for age and store it. 

You can assume that the variable age has been declared.

OUTPUT "Enter your age"

INPUT age

500

START 

DECLARE mark: INTEGER

INPUT mark

OUTPUT "You scored " + marks

END

If user enters 100, what is the output?

Error.

500

Find and fix TWO errors:

START

DECLARE ICNumber:REAL

INPUT 1CNumber

OUTPUT "Your IC number is" + ICNumber

END

START

DECLARE ICNumber:STRING

INPUT ICNumber

OUTPUT "Your IC number is" + ICNumber

END

M
e
n
u