wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Creating Algorithms through Pseudocodes and Flowcharts

Total questions: 20

Worksheet time: 14mins

Name
Class
Date
1.

What is the difference between a flowchart and pseudocode?

a)

A flowchart is diagramatic whilst pseudocode is written in a programming language (eg. Pascal, Java, Visual Basic).

b)

A flowchart is textual whilst pseudocode is diagrammatic.

c)

A flowchart is a diagrammatic description of an algorithm whilst pseudocode is a textual description of an algorithm.

d)

Fowchart and pseudocode are representations of algorithms.

2.

Which of the following assignment statements is assigning text to a variable?

a)

myName = "Sir Philip"

b)

myAge = 24

c)

myTax = salary * .20

d)

myGWA = 1.76

3.

An identifier is the 'name' given to a variable.

For example:

distanceToSchool = 5 & " km"

What is the value of the variable?

a)

5

b)

5 km

c)

5km

d)

distanceToSchool

4.

What structure is depicted in this flowchart?

a)

sequence

b)

selection

c)

loop

d)

case

5.

What is the purpose of this symbol in creating program flowcharts?

a)

It evaluates a condition to determine the which action to take.

b)

It signals the beginning and the end of the program.

c)

It evaluates arithmetic operations.

d)

It declares the variables used in the program.

6.

What is the purpose of this symbol in creating program flowcharts?

a)

It connects symbols and directs the flow of data in the program.

b)

It declares the variables used in the program.

c)

It evaluates arithmetic operations.

d)

It signals the beginning and the end of the program.

7.

What is the purpose of this symbol in creating program flowcharts?

a)

It evaluates a condition to determine the which action to take.

b)

It signals the beginning and the end of the program.

c)

It connects symbols and directs the flow of data in the program.

d)

It is used in accepting inputs or generating outputs in the program

8.

What is the purpose of this symbol in creating program flowcharts?

a)

It connects the the part of a flowchart to another part of the flowchart located on the same page.

b)

It connects the the part of a flowchart to another part of the flowchart located at a different page.

c)

It connects symbols and directs the flow of data in the program.

d)

It signals the beginning and the end of the program.

9.

What is the purpose of this symbol in creating program flowcharts?

a)

It connects the the part of a flowchart to another part of the flowchart located on the same page.

b)

It connects the the part of a flowchart to another part of the flowchart located at a different page.

c)

It evaluates a condition to determine the which action to take.

d)

It evaluates arithmetic operations.

10.

What is the purpose of this symbol in creating program flowcharts?

a)

It declares the variables used in the program.

b)

It evaluates a condition to determine the which action to take.

c)

It evaluates arithmetic operations.

d)

It connects symbols and directs the flow of data in the program.

11.

What is the purpose of this symbol in creating program flowcharts?

a)

It evaluates arithmetic operations and/or assign a new value to a variable.

b)

It evaluates a condition to determine the which action to take.

c)

It signals the beginning and the end of the program.

d)

It connects the the part of a flowchart to another part of the flowchart located on the same page.

12.

What is the purpose of this symbol in creating program flowcharts?

a)

It evaluates a condition to determine the which action to take.

b)

It signals the beginning and the end of the program.

c)

It connects symbols and directs the flow of data in the program.

d)

It connects the the part of a flowchart to another part of the flowchart located at a different page.

13.

The given image is a representation of what structure?

a)

sequence

b)

selection

c)

loop

d)

case

14.

The given image is a representation of what structure?

a)

sequence

b)

selection

c)

loop

d)

case

15.

The given image is a representation of what structure?

a)

sequence

b)

selection

c)

loop

d)

case

16.

Refer to the given flowchart:

What is the output of the program?

a)

3

b)

4

c)

num3

d)

0.714

e)

Error

17.

What do you call the series of procedures to solve problems?

a)

blue print

b)

lesson plan

c)

algorithm

d)

procedures

18.

When can algorithms be used?

a)

Only with computers

b)

Only with flowcharts

c)

Only when programming

d)

Any time to design solutions to problems

19.

An algorithm illustrates:

a)

some steps in no particular order, and following no logical reasoning.

b)

a series steps in a particular order, following logical reasoning.

c)

some random shapes in a flowchart but in a set of order.

d)

a series of decisions needed to bake a cake.

20.

If you are ask by your teacher to create a flowchart to find all the factors of a composite number given by the user, what are the most efficient structures will you use?

a)

sequence and selection

b)

selection and loop

c)

nested loops

d)

case and loop