wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Algorithms - Pseudocode & Flowcharts

Total questions: 39

Worksheet time: 47mins

Name
Class
Date
1.

What should be considered when designing an algorithm?

a)

If there is more than one way of solving the problem

b)

If the correct hardware is being used

c)

If the correct software is being used

d)

what vibes you are on.

2.

What are the two main ways that algorithms can be designed?

a)

Images or videos

b)

In pseudocode or as a flowchart

c)

By hardware or software

d)

By asking Mr. Ahmed to help you.

3.

What is pseudocode?

a)

A way of describing a set of instructions in text form

b)

A specific programming language that all computers use

c)

A diagrammatic representation of a set of instructions

4.

What is a flowchart?

a)

A flowchart is a text-based way of designing an algorithm

b)

A flowchart is a specific programming language

c)

A flowchart is a diagram that represents a set of instructions

5.

What is the symbol for a decision in a flowchart?

a)

A parallelogram

b)

A diamond

c)

A circle

6.

Which of these is the correct symbol for a process in a flowchart?

a)

A diamond

b)

A rectangle

c)

A parallelogram

7.

How are symbols connected together in a flowchart?

a)

Symbols do not get connected together in a flowchart

b)

With lines and an arrow to show the direction of flow

c)

By numbers

8.

Which symbol is used for a connector in a flowchart?

a)

A parallelogram

b)

A diamond

c)

A circle

9.

When can algorithms be used?

a)

Only with computers

b)

To design a solution to any problem

c)

For programming

10.

What is important to remember when designing an algorithm?

a)

whether to use a flowchart or pseudocode

b)

the instructions are in the correct order

c)

that it must be easy to read

11.

Computer programming is a way of giving computers _______ about what they should do next

a)

Answers

b)

Reasons

c)

Steps

d)

Instructions

12.

An algorithm includes _______, _________and _________.

a)

reasoning, steps, and variables

b)

graphs, steps, and solution

c)

Calculations, reasoning, and data processing

d)

All of these

13.

Algorithms can be presented by natural languages, pseudocode and flowcharts, etc.

a)

True

b)

False

14.

How many basic shapes are there to make flowchart?

a)

6

b)

5

c)

4

d)

8

15.

flowcharts are can not be used as a program planning tool to visually organize the step-by-step process of a program.

a)

True

b)

False

16.

Pseudocode is a precise form of an Algorithm without ________

a)

Flowchart

b)

Code

c)

unnecessary steps of vocabulary/words.

d)

None of these

17.

Write an algorithm to ask the user to enter the price of an item, then calculate and display the total amount a customer will pay for 5 such items.


What should be written in part 1 of the flow chart

a)

Start

b)

Stop

c)

calculate

d)

Output

18.

Write an algorithm to ask the user to enter the price of an item, then calculate and display the total amount a customer will pay for 5 such items.


What is the best answer for step 2?

a)

start

b)

stop

c)

Print "Enter price"

d)

Print price

19.

Write an algorithm to ask the user to enter the price of an item, then calculate and display the total amount a customer will pay for 5 such items.


Select the best answer for step 3.

a)

Stop

b)

Display price

c)

Print price

d)

Read price

20.

Write an algorithm to ask the user to enter the price of an item, then calculate and display the total amount a customer will pay for 5 such items.


Select the best answer for step 4.

a)

total = price *5

b)

total = price

c)

read total

d)

print total

21.

Write an algorithm to ask the user to enter the price of an item, then calculate and display the total amount a customer will pay for 5 such items.


Select the best answer for step 5.

a)

read total

b)

read price

c)

print price

d)

print total

22.

Write an algorithm to ask the user to enter the price of an item, then calculate and display the total amount a customer will pay for 5 such items.


Select the best answer for step 6.

a)

Print

b)

Start

c)

Stop

d)

Read

23.

Write an algorithm, in pseudocode, to accept the length, breadth and height of a cuboid and display the volume.


Which of the following is step 1?

a)

end

b)

continue

c)

stop

d)

start

24.

Write an algorithm, in pseudocode, to accept the length, breadth and height of a cuboid and display the volume.


Which of the following is step 2?

a)

Print "Enter the length, breadth and height"

b)

Print length

c)

v = L*B*H

d)

Print "Enter the volume"

25.

Write an algorithm, in pseudocode, to accept the length, breadth and height of a cuboid and display the volume.


Which of the following is step 3?

a)

Print L, B, H

b)

L = B*H*V

c)

Read L,B, H

d)

STOP

26.

Write an algorithm, in pseudocode, to accept the length, breadth and height of a cuboid and display the volume.


Which of the following is step 4?

a)

Print "Enter volume"

b)

Read V

c)

Stop here

d)

V = L* B* H

27.

Write an algorithm, in pseudocode, to accept the length, breadth and height of a cuboid and display the volume.


Which of the following is step 5?

a)

Print V

b)

Read V

c)

Calculate V

d)

Start

28.

Write an algorithm, in pseudocode, to accept the length, breadth and height of a cuboid and display the volume.


Which of the following is step 6?

a)

Start

b)

Print

c)

Read

d)

Stop

29.
What is this symbol?
a)
Decision
b)
Input/Output
c)
Start/End
d)
Process
30.
What is the purpose of a rectangle within a flowchart?
a)

Process

b)
Input / Output
c)
Decision
d)
Start / Stop
31.
What is the purpose of a diamond in a flowchart?
a)
Process
b)
Input / Output
c)
Sub-process
d)
Decision
32.
What is used to connect the flowchart symbols together?
a)
Rectangles
b)
Lines
c)
Arrows
d)
Patterns
33.
What does this shape represent?
a)
Decission
b)
Process
c)
Input/Output
d)
Start/End
34.
What does this shape represent?
a)
Input/Output
b)
Process
c)
Decission
d)
Start/End
35.

A logical step-by-step process for solving a problem is called

a)

Binary Numbers

b)

Coding

c)

Algorithms

36.

A diagram that represents a set of instructions is called:

a)

Flow Chart

b)

Pseudocode

c)

Shapes

37.

A simple way of describing a set of instructions that does not have to use specific syntax is called:

a)

Flow Chart

b)

Pseudocode

c)

Shapes

38.

Data sent from a Computer is called

a)

Input

b)

Output

c)

Process

39.

An instruction or a command in a flowchart is called:

a)

Input

b)

Process

c)

Output