Search Header Logo
Algorithm and Problem Solving - IGCSE

Algorithm and Problem Solving - IGCSE

Assessment

Presentation

Computers

Professional Development

Practice Problem

Medium

Created by

Robert B.A

Used 11+ times

FREE Resource

24 Slides • 42 Questions

1

media

Algorithm and Problem Solving

2

What will you Learn?

  • The purpose of an algorithm and the processes involved in it

  • Standard methods of solution

  • Validation checks when data is input

  • Verification checks when data is input

  • Use of different types of test data including: Writing, amending, identifying, and correcting errors in:

  • The stages in the program development cycle

  • Computer systems and sub-systems

  • Problem decomposition into component parts

  • Methods used to design and construct solutions to problems

3

The program development life cycle is divided into five stages
analysis

  1. Analysis

  2. Design

  3. Coding

  4. Testing and

  5. Maintenance

The program development life cycle

4

  1. Analysis

This stage involves clear identification of the problem. It involves both abstraction and decomposition.
Abstraction keeps the key elements required for the solution to the problem and discards any unnecessary details and information that is not required.
Decomposition breaks down a complex problem into smaller parts, which can then be subdivided into even smaller parts, that can be solved easily.

5

  1. Design

  • The program specification from the analysis stage is used to show to how the program should be developed.

  • When the design stage is complete, the programmer should know what is to be done.

  • This stage involves flowcharts, pseudocodes

6

3. Coding and iterative testing

  • The program or set of programs is developed.

  • Each module of the program is written using a suitable programming language and then tested to see if it works.

  • Iterative testing means that modular tests are conducted, code amended, and tests repeated until the module performs as required.

7

  1. Testing

  • The completed program or set of programs is run many times with different sets of test data. This ensures that all the tasks completed work together as specified in the program design.

8

Multiple Choice

Stage that involves the use of pseudocodes and flowcharts

1
Design stage
2

Coding stage

3
Testing stage
4
Maintenance stage

9

Multiple Choice

The process of selecting what you want and ignoring unwanted information

1

Abstraction

2

Analysis

3

Selection

4
Perceptual Set

10

Multiple Choice

What is the first phase of the program development lifecycle?

1

Implementation

2

Testing

3

Requirements Analysis

4

Maintenance

11

Multiple Choice

Which phase of the program development lifecycle involves creating a detailed plan for the project, including timelines and resource allocation?

1

Design

2

Implementation

3

Planning

4

Maintenance

12

Multiple Choice

What phase of the program development lifecycle focuses on making updates and improvements to the software to address issues and add new features?

1
Testing
2
Design
3
Implementation
4
Maintenance

13

Computer Systems

  • A computer system comprises software, data, hardware, communications, and people; each can be divided into sub-systems.

  • Each sub-system can be further divided into sub-systems until each sub-system performs a single action.

14

The computer system and its sub-systems

  • In order to understand how a computer system is built up and how it works it is often divided up into sub-systems.

  • Top-down design is the decomposition of a computer system into a set of subsystems, then breaking each sub-system down into a set of smaller sub-systems, until each sub-system just performs a single action.

15

Decomposing a problem

The component parts of any computer system are:

  • Input

  • Process

  • Output

  • storage

16

Activity

  • Use the alarm app to decompose and explain the following

  • Input

  • Process

  • Output

  • storage

17

Response

  • inputs – time to set the alarm, remove a previously set alarm time, switch an alarm off, press snooze button

  • processes – continuously check if the current time matches an alarm time that has been set, storage and removal of alarm times, management of snooze

  • outputs – continuous sound/tune (at alarm time or after snooze time expired)

  • storage – time(s) for alarms set.

18

Homework

Mention any one computer system you use frequently. Identify the input, processing, storage and output of the system you have mentioned.

19

media

Recap of the last lesson.

20

Multiple Choice

What is the primary purpose of an output device in a computer system?

1
To process data
2
To store data
3
To input data
4
To present data

21

Multiple Choice

Which component of a computer system is responsible for performing calculations and executing instructions?

1

Input device

2

Output device

3

Central Processing Unit (CPU)

4

Memory

22

Multiple Choice

Which of the following is a volatile storage device used for temporary data storage in a computer?

1

Hard disk drive (HDD)

2

Solid-state drive (SSD)

3

Random Access Memory (RAM)

4

Optical disc drive (ODD)

23

Multiple Choice

When you save a document on your computer's hard drive, which type of storage is being used?

1
RAM
2
ROM
3
Flash Drive
4
Hard Disk Drive

24

Multiple Choice

What is the primary function of an input device in a computer system?

1

To store data

2

To process data

3

To display data

4

To enter data into the computer

25

Multiple Choice

When you insert your ATM card into the machine and enter your PIN, which part of the computer system is responsible for processing this information?

1

Input

2

Output

3

Storage

4

Processing

26

Multiple Choice

Which part of the ATM system ensures the security of your financial transactions by encrypting and protecting your data?

1

Input

2

Output

3

Processing

4

Storage

27

Multiple Choice

When you withdraw cash from an ATM, which part of the computer system is responsible for retrieving the requested amount from your account?

1

Input

2

Output

3

Processing

4

Storage

28

Multiple Choice

Which stage of software development involves gathering and understanding the requirements of the system to be developed?

1

Analysis

2

Design

3

Coding

4

Testing

29

Multiple Choice

During the analysis and design stages, what documentation is typically created to describe the software system?

1

Source code

2

Test plans

3

User manuals

4

Flowcharts and diagrams

30

Multiple Choice

Which stage is responsible for ensuring that the software functions correctly and meets the specified requirements?

1

Analysis

2

Design

3

Coding

4

Testing

31

Multiple Choice

Which phase of software development involves the actual implementation of the software based on the design specifications?

1

Analysis

2

Design

3

Coding

4

Testing

32

Multiple Choice

During the coding stage, what do software developers primarily focus on?

1

Gathering requirements

2

Creating test cases

3

Writing program code

4

Documenting the system

33

Multiple Choice

Which stage of software development is often referred to as the "blueprint" phase, where the architecture and structure of the software are defined?

1

Analysis

2

Design

3

Coding

4

Testing

34

Multiple Choice

During the analysis stage, what is the primary goal?

1

Writing code

2

Creating user interfaces

3

Defining system requirements

4

Finding and fixing bugs

35

Methods used to design and construct a solution to a problem

The following are the methods used for design and construct a solution to a problem

  • structure Diagrams

  • Flowcharts

  • Pseudocode

36

Structure diagrams

  • Structure diagrams are hierarchical, showing how a computer system solution can be divided into sub-systems with each level giving a more detailed breakdown. If necessary, each sub-system can be further divided.

37

Flowcharts

  • A flowchart shows diagrammatically the steps required to complete a task and the order that they are to be performed. These steps, together with the order, are called an algorithm.

  • Flowcharts are drawn using standard flowchart symbols.

38

Replace this with a header

Replace this with your body text. Duplicate this text as many times as you would like. All provided templates can be reused multiple times. Wish you a good day.

Happy teaching!

39

Process flowchart symbols are used to show actions, for example, when values are assigned to variables.
Rectangle is used to show a process in a flowchart

Process

Terminator flowchart symbols are used at the beginning and end of each

flowchart.
An oval shape is used to show start or stop

Start or Stop (Begin/End)

Flowchart Symbols

40

Decision flowchart symbols are used to decide which action is to be taken next; these can be used for selection and repetition/iteration.
A diamond is used to show decision in a flowchart

Decision

The same symbol of input and output.
A Parallelogram is used to show input or output in a flowchart

Input and output

Cont..

41

Multiple Choice

In a flowchart, where would you find the result of a calculation or the output of a process?

1
In the decision box
2
In the start/end symbol
3
In the process box
4
In the output box

42

Multiple Choice

In a flowchart, where would you expect to find user-provided data or input?

1
In a process box
2
In an input/output box
3
In a decision box
4
In a start/end box

43

Multiple Choice

In a flowchart for a simple calculator program that adds two numbers, what would the addition operation be classified as?

1
Input
2
Output
3
Process
4
Decision

44

Multiple Choice

In a flowchart representing a program to find the largest number among three input values, what would the user-provided numbers be classified as?

1

Input

2

Output

3

Process

4

Decision

45

Multiple Choice

In a flowchart that calculates the area of a rectangle when given its length and width, what would the "Length" and "Width" be classified as?

1

Input

2

Output

3

Process

4

Decision

46

Multiple Choice

In a flowchart for a temperature conversion program that converts Celsius to Fahrenheit, what would the Fahrenheit temperature be classified as?

1
Input
2
Output
3
Process
4
Decision

47

Multiple Choice

In a flowchart for a program that calculates the average of a list of numbers, what would the computed average value be classified as?

1
Input
2
Output
3
Process
4
Data

48

Multiple Choice

In a flowchart representing a program that prints "Hello, World!" to the screen, what would the message "Hello, World!" be classified as?

1
Input
2
Output
3
Process
4
Decision

49

Multiple Choice

In a flowchart for a simple ATM withdrawal process, what would the action of dispensing cash to the user be classified as?

1
Input
2
Process
3
Output
4
Decision

50

Multiple Choice

In a flowchart for a simple calculator program, what would "Enter Number 1" be classified as?

1
Input
2
Output
3
Process
4
Decision

51

Multiple Choice

In a flowchart for a weather app that displays the current temperature, what would "Display Temperature" be classified as?

1
Input
2
Output
3
Process
4
Decision

52

Multiple Choice

In a flowchart for a program that calculates the area of a circle, what would be considered the "process"?

1
Drawing the circle
2
Defining the radius of the circle
3
Calculating the area using the formula 'pi*r^2'
4
Printing the result

53

Multiple Choice

In a flowchart for a simple calculator program that adds two numbers together, what would be considered the "process"?

1
The display of the result
2
The input of the numbers
3
The addition of the two numbers
4
The start of the program

54

Multiple Choice

In a flowchart for a temperature conversion program that converts Celsius to Fahrenheit, what would be considered the "input"?

1
The conversion formula
2
The Fahrenheit temperature
3
The Celsius temperature
4
The flowchart itself

55

Multiple Choice

In a flowchart for a program that prints the sum of all even numbers from 1 to 100, what would be considered the "output"?

1

The sum of even numbers

2

The even numbers themselves

3

The loop that iterates through numbers

4

The instruction to add numbers

56

Multiple Choice

In a flowchart for an ATM (Automated Teller Machine) withdrawal process, which of the following is most likely to be the output?

1
The amount of money withdrawn
2

The user's PIN (Personal Identification Number)

3

ATM Card

4

Bank Location

57

Multiple Choice

In a flowchart for a weather app, where the user inputs their location and the app provides the current temperature, what is considered as the output?

1

The user's location.

2

The temperature units (e.g., Celsius or Fahrenheit).

3

The current temperature for the specified location.

4

The app's logo.

58

Multiple Choice

In a flowchart for a login system, where users enter their username and password, and the system checks if they are correct before granting access, what represents the process?

1

Entering the username and password.

2

Checking if the entered username and password are correct.

3

Granting access.

4

Displaying a welcome message.

59

Multiple Choice

In a flowchart for a simple alarm clock, where users set the alarm time and the clock sounds the alarm at the specified time, what is considered as the output?

1

The alarm clock's current time.

2

The sound of the alarm.

3

The snooze button.

4

The user's preferred alarm time.

60

Multiple Choice

In a flowchart, what does a rectangle usually represent?

1
A decision
2
A process or operation
3
A data
4
A terminator

61

Multiple Choice

Which flowchart symbol is typically used to represent a decision point?

1
Rectangle
2
Diamond
3
Circle
4
Arrow

62

Multiple Choice

What symbol in a flowchart signifies the end of a process or program?

1
Oval
2
Rectangle
3
Diamond
4
Parallelogram

63

Flow lines

Flowchart flow lines use arrows to show the direction of flow, which is usually, but not always, top to bottom and left to right.

64

Flowchart Examples

  1. sum of two numbers

  2. simple interest

  3. Area of a rectangle

  4. Calculate age

  5. Convert temperature from centigrade to fahrenheit

  6. check whether a person is a child or adult

  7. check the grade and display pass or fail

65

More Examples

  1. flowchart for a calculator (+,-,*, and /)

  2. Check if a number is a multiple of three or not.

66

  1. Tickets are sold for a concert at $20 each, if 10 tickets are bought then the discount is 10%, if 20 tickets are bought the discount is 20%. No more than 25 tickets can be bought in a single transaction.

Homework

media

Algorithm and Problem Solving

Show answer

Auto Play

Slide 1 / 66

SLIDE