wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Chapter 3 : Flowchart & Pseudocode

Total questions: 20

Worksheet time: 12mins

Name
Class
Date
1.

What does sequential mean?

a)

Instructions are executed in the order of importance

b)

Instructions are executed when activated by the user

c)

Instructions are executed when the computer requires them to execute

d)

Instructions are executed one after another from beginning to end

2.

Which of these are examples of Selection?

a)

for(x=0; x<5; x++)

//do stuff

b)

if (x > 0)

//do stuff

c)

while(x < 5)

//do stuff

d)

switch(x)

case(0): //do stuff

3.

Which of these are examples of Iteration?

a)

for(x=0; x<5; x++)

//do stuff

b)

while(x < 5)

//do stuff

c)

if (x > 0)

//do stuff

d)

switch(x)

case(0): //do stuff

4.

Which of the following best describes an Algorithm?

a)

A specific piece of code that does a specific function

b)

A well-defined step-by-step procedure to solve a problem

c)

An outline for a solution to solve a given problem

d)

A step-by-step procedure to code a computer program

5.

What are the characteristics of a Flowchart?

a)

It flows from top to bottom

b)

It is easy to translate into programming language

c)

It represents an algorithm, workflow or process in a diagram

d)

It shows steps as boxes of various kinds

6.

What are some of the benefits of a Flowchart?

a)

Makes logic clear

b)

Communication

c)

Easy to translate into programming language

d)

Easy to modify

7.

What does this symbol represent in a Flowchart?

a)

Show order of operation

b)

A conditional operation

c)

Input and output of data

d)

Beginning or Ending of the program

e)

Processes that change value/form/location of data

8.

What does this symbol represent in a Flowchart?

a)

Show order of operation

b)

A conditional operation

c)

Input and output of data

d)

Beginning or Ending of the program

e)

Processes that change value/form/location of data

9.

What does this symbol represent in a Flowchart?

a)

Show order of operation

b)

A conditional operation

c)

Input and output of data

d)

Beginning or Ending of the program

e)

Processes that change value/form/location of data

10.

What does this symbol represent in a Flowchart?

a)

Show order of operation

b)

A conditional operation

c)

Input and output of data

d)

Beginning or Ending of the program

e)

Processes that change value/form/location of data

11.

How would you represent this operation in a flowchart?


x = x + 1

a)

Decision

b)

Process

c)

Input/Output

12.

How would you represent this operation in a flowchart?


var a = prompt("Please enter your Name");

a)

Decision

b)

Process

c)

Input/Output

13.

How would you represent this operation in a flowchart?


if (isRaining)

a)

Decision

b)

Process

c)

Input/Output

14.

What is the purpose of writing Pseudocode?

a)

Helps programmers develop algorithms informally

b)

Allows programmers to develop software quickly

c)

Gives programmers a artificial, text-based design tool

d)

Gives programmers another way to develop their software

15.

What is a benefit of using Pseudocode?

a)

Language independent

b)

Visualises the flow of the program

c)

Allows programmers to start coding

16.

What is NOT a disadvantage of writing Pseudocode

a)

Cannot be compiled or executed

b)

No real formatting or syntax rules

c)

Can only be used in creating Websites

d)

No accepted standard styles of writing pseudocode

e)

Does not provide visual representation of the program logic

17.

Which one of these rules where not followed in the following pseudocode:

a)

Indent to show hierarchy

b)

Capitalize initial keywords

c)

End multiline structures

d)

Write only one statement per line

18.

Which one of these rules where not followed in the following pseudocode:

a)

Indent to show hierarchy

b)

Capitalize initial keywords

c)

End multiline structures

d)

Write only one statement per line

19.

What operation is shown in the pseudocode?

a)

Selection

b)

Iteration

c)

Sequential

20.

What operation is shown in the pseudocode?

a)

Selection

b)

Iteration

c)

Sequential