wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Intro to Pseudocode & Flowcharts

Total questions: 22

Worksheet time: 15mins

Name
Class
Date
1.
What does this symbol represent?
a)
Start
b)
Sub
c)
Decision
d)
Process
2.
What is this symbol used for in a flowchart?
a)
A decision/question
b)
A task to carry out
3.
What symbol do flowcharts begin with?
a)
oval
b)
parallelogram
c)
rectangle
d)
diamond
4.
What does this shape represent?
a)
Input/Output
b)
Decision
c)
Process
d)
Start/Stop
5.
What's missing from this part of a flowchart?
a)
An Arrow
b)
A Line
c)
A Square
d)
A Diamond
6.
What is the Output if the user enters:
Yes
a)
Leave umbrella at home
b)
Take an umbrella
7.
What is the Output if the temperature is:
19
a)
Below Freezing
b)
Above Freezing
8.

What will happen if the user's book return is late?

a)

Sends them an SMS (text)

b)

Does not send them an SMS (text)

9.
What is an algorithm?
a)
A problem
b)
A solution to a problem
c)
The steps that are taken to solve a problem
d)
The words to enter when typing
10.

What does the following pseudocode snippet do?


DECLARE Car : STRING

a)

It creates a character variable named car.

b)

Creates a new car object.

c)

Nothing

d)

It creates an address in memory which is referenced by the label car.

11.

What is a CHAR datatype?

a)

A datatype that can hold any single character.

b)

A datatype that can hold only numbers.

c)

A datatype that can be ignored.

d)

A datatype that can fit 7.

12.

(a)   Counter : INTEGER

13.

DECLARE StudentNames : (a)   [1:30] OF STRING

14.

Assign the value of "Ali" to the first item in an array called UserNames in pseudocode


(a)  

15.

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)

16.

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)

17.

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)

18.

Write the pseudocode statements to store the string "Hello World" in the variable Greeting

(a)  

19.

Give the line number for the statements showing: Totalling

a)

7

b)

4

c)

2

d)

16

20.

Give the line number for the statements showing: Post‑condition loop

a)

7

b)

4

c)

2

d)

16

21.

Which lines have errors?

a)

7,16

b)

8,16,17

c)

7,8,16

d)

16

22.

The variable Saying is used to store string data in a program.

Write the pseudocode statement to declare the variable Saying

(a)