Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Understanding Algorithms and Flowcharts

Total questions: 19

Worksheet time: 10mins

Name
Class
Date
1.

What is the main purpose of an algorithm in computer science?

a)

To store data

b)

To provide a step-by-step solution to a problem

c)

To display graphics

d)

To connect to the internet

2.

Which of the following best describes pseudocode?

a)

A programming language

b)

A way to write code that only computers can understand

c)

A simplified, human-readable description of an algorithm

d)

A type of flowchart

3.

In a flowchart, which shape is typically used to represent a decision or branching point?

a)

Rectangle

b)

Diamond

c)

Oval

d)

Parallelogram

4.

Which model of software development is known for its linear and sequential approach?

a)

Iterative and incremental model

b)

Waterfall model

c)

Agile model

d)

Spiral model

5.

Fill in the blank: The process of keeping a running total in an algorithm is called __________.

a)

Sorting

b)

Accumulation

c)

Selection

d)

Branching

6.

Which of the following is NOT typically considered a stage in the Systems Development Life Cycle (SDLC)?

a)

Analysis

b)

Design

c)

Implementation

d)

Marketing

e)

Testing

7.

What is the main difference between the iterative and incremental model and the waterfall model?

a)

Waterfall is faster

b)

Iterative and incremental allows for repeated improvements

c)

Waterfall uses pseudocode

d)

Iterative and incremental does not use flowcharts

8.

Which tool is commonly used to visually represent the flow of an algorithm?

a)

Spreadsheet

b)

Flowchart

c)

Database

d)

Text editor

9.

In an IPO chart, what does IPO stand for?

a)

Input, Processing, Output

b)

Internet, Protocol, Output

c)

Input, Program, Output

d)

Increment, Process, Organise

10.

Which of the following is an example of an accumulation algorithm in Python?

a)

`total = total + number`

b)

`if number > 10: print(number)`

c)

`for i in range(10): print(i)`

d)

`number = input("Enter a number: ")`

11.

What is the formula for calculating the mean of a list of numbers?

a)

Mean=Maximum−Minimum\text{Mean} = \text{Maximum} - \text{Minimum}

b)

Mean=Sum of all numbersNumber of numbers\text{Mean} = \frac{\text{Sum of all numbers}}{\text{Number of numbers}}

c)

Mean=Sum of all numbers×Number of numbers\text{Mean} = \text{Sum of all numbers} \times \text{Number of numbers}

d)

Mean=Sum of all numbers+Number of numbers\text{Mean} = \text{Sum of all numbers} + \text{Number of numbers}

12.

Which of the following is used to find the minimum value in a list in Python?

a)

`max(list)`

b)

`min(list)`

c)

`sum(list)`

d)

`mean(list)`

13.

Which stage of the SDLC involves gathering requirements and understanding the problem?

a)

Analysis

b)

Design

c)

Implementation

d)

Testing

14.

Fill in the blank: A flowchart uses __________ to show the direction of flow.

a)

Circles

b)

Arrows

c)

Squares

d)

Stars

15.

What is the main advantage of using pseudocode before writing actual code?

a)

It is faster to run

b)

It helps plan and organise logic without worrying about syntax

c)

It uses more memory

d)

It is only for advanced programmers

16.

Which of the following best describes the output stage in an IPO chart?

a)

The data entered by the user

b)

The result produced after processing

c)

The steps taken to process data

d)

The tools used to create the chart

17.

In a flowchart, what does a parallelogram typically represent?

a)

Start/End

b)

Input/Output

c)

Decision

d)

Process

18.

Which of the following is an example of pseudocode for finding the maximum value in a list?

a)

Set max to first item; For each item, if item > max, set max to item; End loop

b)

Print all items in the list

c)

Add all items together

d)

Set min to first item; For each item, if item < min, set min to item; End loop

19.

Which of the following statements about algorithms is TRUE?

a)

Algorithms are only used in mathematics

b)

Algorithms must always be written in code

c)

Algorithms can be represented using flowcharts, pseudocode, or code

d)

Algorithms are not useful in computer science