wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Algorithm, Flowchart & Pseudocode

Total questions: 66

Worksheet time: 37mins

Name
Class
Date
1.

A diagram that represents an algorithm, work flow, or process, and uses geometric symbols connected by arrows to show the direction of the flow of action.

a)

Flowchart

b)

Illustration

c)

Data

d)

Information

2.

The process of solving problems using a series of steps.

a)

algorithmic thinking

b)

creative thinking

c)

analyzing

d)

processing

3.

To break a problem down into smaller pieces.

a)

decomposing

b)

processing

c)

creating

d)

solving

4.

Scenario: There is an algorithm in preparing rice. What is the first step in the given choices?

a)

Cook the rice

b)

Measure the rice

c)

Rinse the rise

d)

Serve the rice

5.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

6.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

7.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

8.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

9.

Instructions carried out one after another in order is called

a)

Sequence

b)

Selection

c)

Iteration/Looping

10.

Keep repeating a part of a flowchart with this construct

a)

loop

b)

algorithm

c)

document

d)

diamond

11.

Select the which step should be completed first in an algorithm to get ready for school.

a)

Have breakfast

b)

Get out of bed

c)

Brush my teeth

d)

Leave the house

12.

How many instructions should each rectangle hold in a flowchart?

a)

1

b)

2

c)

3

d)

4

13.
What are the three algorithm constructs? 
a)
Sequence, selection, repetition 
b)
Input, output, process 
c)
Input/output, decision, terminator    
d)
Loop, input/output, process    
14.
A flowchart needs to represent the a situation where for each mark a student is award 'Pass' or 'Fail'...the system will consider the mark and if it's 50 or over award 'Pass', else it awards 'Fail'. This is an example of which of the algorithm constructs?                                    
a)
Decision 
b)
Loop 
c)
Sequence 
d)
All of the above 
15.
Programming languages give computers instructions
a)
True
b)
False
16.
We can show the sequence of steps in an algorithm in a structural diagram called a flow chart.
a)
True
b)
False
17.
When you write an algorithm the order of the instructions is very important.
a)
True
b)
False
18.
What should be considered when designing an algorithm?
a)
If the correct hardware is being used
b)
If the correct software is being used
c)
If there is more than one way of solving the problem
19.
In a flowchart how are symbols connected?
a)
Symbols do not get connected together in a flowchart
b)
With lines and an arrow to show the direction of flow
c)
With dashed lines and numbers
d)
With solid lines to link events
20.
When can algorithms be used?
a)
Only with computers
b)
Only when programming
c)
Only with flowcharts
d)
Any time to design solutions to problems
21.
If ................then ....else ........endif  check
a)
0ne condition
b)
two conditions
c)
threee condtions
d)
many conditions
22.
What does a searching algorithm do?
a)
Search through a set of data
b)
Save a set of data
c)
Help to organise data
23.
What's missing from this part of a flowchart?
a)
An Arrow
b)
A Line
c)
A Square
d)
A Diamond
24.
What's missing ?
a)
On/Off
b)
Pink/Blue
c)
Hello/Goodbye
d)
Yes/No
25.
How do you repeat things in a Flowchart?
a)
Loop
b)
Start/Stop
c)
Play
26.

Your Full Reg No (in capitals)

4 lines
27.

A condition is

a)

a statement that is either True or False

b)

a string

c)

an integer

d)

a list

28.

Will the following loop run?

a)

Yes

b)

No

29.
Which of the following is the definition of pseudocode?
a)
A container which is used to store values such as the number of attempts a person tries to log on to a network.
b)
A language that is similar to a real programming language, but is easier for humans to understand although it doesn’t actually run on a computer. It can easily be converted to a regular programming language.
c)
A value that cannot be altered by the program during normal execution: the value stays the same. 
d)
Messages to explain to others, and often to remind yourself, what the code is intended to do. 
30.
An identifier is the ‘name’ given to a variable. For example: 
distanceToSchool = 10
Which part is the identifier?
a)
10
b)
=
c)
distanceToSchool
31.
When writing pseudocode it is a good idea to add comments to explain to others, and often to remind yourself, what the code is intended to do. 
To separate these comments from the actual code, what character(s) are used?
a)
:
b)
//
c)
()
d)
#
32.

"A conditional statement to deal with many possible outcomes" describes which pseudocode programming statement?

a)

FOR...TO...NEXT

b)

IF...THEN...ELSE...END IF

c)

WHILE...DO...ENDWHILE

d)

REPEAT...UNTIL

e)

CASE...OF...OTHERWISE...ENDCASE

33.
A concrete step is an algorithmic step where...
a)
All the details are specified.
b)
Some details details are unspecified.
c)
There is a top down design.
d)
Details are object orientated.
34.
An abstract step is an algorithmic step where...
a)
Some details are still unspecified.
b)
All details are specified.
c)
There is top-down design.
d)
The solution is object orientated.
35.
Which of the following is an example of a simple (atomic) variable?
a)
score = 7
b)
name = "Jack"
c)
scores = [4,2,12,7]
d)
grades = ["A","F","B"]
36.
An instruction that determines the order / flow of a program is known as a...
a)
Selection Statement
b)
Looping Statement
c)
Variable Statement
d)
Abstract Statement
37.
In the exam all variables should be written in:
a)
Upper Case
b)
Lower Case
c)
First letter upper case and the rest lower.
d)
First letter lower case and the rest upper.
38.
In the exam all instructions / commands should be written in:
a)
Upper Case
b)
Lower Case
c)
First letter upper and the rest lower case.
d)
First letter lower and the rest upper case.
39.
The two main types of programming methodologies are:
a)
Procedural & OOP 
b)
Selection & OOP
c)
OOP & Iterative
d)
Procedural & Iterative 
40.
What does OOP stand for?
a)
Object Orientated Programming
b)
Order Orientated Programming
c)
Objective Order Programming
d)
Objective Orientated Programming
41.
What are the two main categories of loop?
a)
Count & Event Controlled
b)
Count & For Controlled
c)
While & Event Controlled
d)
Event & Selection Controlled
42.
A datatype that can hold more than one value is known as...
a)
Composite
b)
Concrete
c)
Abstract
d)
Atomic
43.

Which of the following correctly creates a variable?

a)

DIM age AS x

b)

DECLARE age AS INTEGER

c)

DECLARE CORRECT AS string

d)

INPUT user's full name

44.

What does the following pseudocode snippet do?


DECLARE car AS 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.

45.

Which of the following snippets might read and store user input?

a)

DECLARE name AS STRING

OUTPUT “Please enter your name.”

b)

DECLARE name AS STRING

INPUT “Please enter your name.”

c)

DECLARE name AS INTEGER

STORE user’s full name IN name

d)

DECLARE name AS STRING

STORE user’s full name IN name

46.

The BEST description for an algorithm is...

a)

Code for a computer program

b)

A set of ordered steps to solve a problem

c)

A solution to a problem

d)

Something a computer runs

47.

Algorithms can be executed by a non-computing device.

a)

TRUE

b)

FALSE

48.

The THREE key features of an algorithm are...

a)

Unambiguous

b)

Ordered

c)

Finite

d)

Coded

49.

The THREE control structures used to create an algorithm are...

a)

Sequence

b)

Selection

c)

Iteration

d)

Variables

50.

When expressing an algorithm in pseudocode, which parts should be capitalised?

a)

Keywords

b)

All of it

c)

Output

d)

Input

51.

What type of font should be used to write pseudocode on a computer?

a)

Sans-serif

b)

Serif

c)

Monospace

d)

Any

52.

The pseudocode commands that can be used to create a variable where the initial value is not known.

a)

INITIALISE

b)

SET

c)

DECLARE

d)

VARIABLE

53.

The pseudocode command to create a variable with an initial value.

a)

SET

b)

INITIALISE

c)

DECLARE

d)

VARIABLE

54.

The use of the INPUT command in pseudocode is...

a)

To indicate that the user will be asked for input

b)

To indicate that the value for a variable will come from the user

c)

To indicate the value for a variable will come from a file

d)

To ask the user a question

55.

The ________ pseudocode command is used to provide a mathematical formula

a)

CALCULATE

b)

FORMULA

c)

WRITE

d)

INPUT

56.

Which of the following IS NOT a correct pseudocode syntax for selection?

a)

IF...THEN...ENDIF

b)

IF...ELSE...ENDIF

c)

IF...THEN...ELSE...ENDIF

d)

IF...THEN...ELIF...ENDIF

57.

What is the difference between a test-first and test-last loop structure? (Select TWO correct options)

a)

Test-first uses a FOR loop structure while a test-last uses REPEAT UNTIL

b)

The condition for a test-last loop is at the start

c)

The condition for a test-last loop is at the end of the loop

d)

The loop actions in a test-last loop must execute at least once

58.

Which iteration structure is known as a counted loop?

a)

FOR...NEXT

b)

WHILE...ENDWHILE

c)

REPEAT...UNTIL

d)

DO...WHILE

59.

Using a control structure inside another control structure is called...

a)

Nesting

b)

Cascading

c)

Concatenating

d)

Joining

60.

To signify the start and end of a pseudocode algorithm, we use...

a)

START...END

b)

BEGIN...END

c)

START...FINISH

d)

BEGIN...FINISH

61.

The control structures that use a condition are...

a)

SELECTION

b)

ITERATION

c)

SEQUENCE

d)

ARRAYS

62.

What will happen when the following pseudocode is executed?

Set Integer Emp_no=101

Set Integer salary=0

while (Emp_no=501)

salary=salary+100

display salary

end-while

a)

Code executes successfully and value of salary is displayed once.

b)

Code executes successfully and nothing is displayed.

c)

Code executes successfully and value of salary is displayed infinite number of times.

d)

Compile time error.

63.

What symbol is this?

a)

Set Ans = calculation

b)

rectangle

c)

Processing

d)

calculation

64.

This is an example of...

a)

Narrative

b)

Flowchart

c)

IPO Chart

d)

diagram

65.

Select the which step should be completed first in an algorithm to get ready for school.

a)

Have breakfast

b)

Get out of bed

c)

Brush my teeth

d)

Leave the house

66.
What's missing from this part of a flowchart?
a)
An Arrow
b)
A Line
c)
A Square
d)
A Diamond