The program development life cycle

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

The program development life cycle

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which list shows the four stages of the program development life cycle in the correct order?
A Analysis, design, coding, testing
B Design, analysis, testing, coding
2. A programmer starts typing code before working out what the program must do. Is this good practice in the life cycle?
A No, the program should be planned in analysis and design first
B Yes, coding first saves time
3. Which stage is mainly about working out exactly what the problem is and what the program must do?
A Coding
B Analysis
4. A student draws a flowchart and writes pseudocode for their program. Which stage is this?
A Testing
B Design
5. Which stage comes immediately after design?
A Coding
B Analysis

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1Analysis → Design → Coding → Testing AThe stages are in the wrong order. They must run analysis, design, coding, then testing.
2Analysis BThe first stage, where the problem is investigated and the requirements are worked out
3Planning is done before coding, so the program is designed first (for example in pseudocode) and then written CThe life cycle in this course has only four stages. Debugging and Release are not extra stages.
4Each stage has its own tasks: the design stage uses tools such as flowcharts and pseudocode DDesign → Coding
5Coding → Analysis → Testing → Design EThe four stages of the program development life cycle in the correct order
6Analysis → Design → Coding → Testing → Debugging → Release FDesign: flowchart, pseudocode, hierarchy chart

Definitions

program development life cycle

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
// Stage 1: ________ // Stage 2: design // Stage 3: coding
2.
analysis -> ______ -> coding -> testing
3.
// Stage 3: ______ - write the program
4.
// Stage 4: _______ - check it works
5.
CONSTANT Stages ← _

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A stage1 ← 'Analysis'
B stage2 ← 'Debugging'
C stage3 ← 'Coding'
D stage4 ← 'Testing'
Question 2
A Analysis: find requirements
B Design: write the program
C Coding: write the program
D Testing: check with test data
Question 3
A OUTPUT 'Analysis'
B OUTPUT 'Design'
C OUTPUT 'Testing'
D OUTPUT 'Testing'
Question 4
A CONSTANT Stages ← 5
B DECLARE Current : INTEGER
C Current ← 1
Question 5
A First stage: Coding
B Second stage: Design
C Third stage: Coding
D Fourth stage: Testing

Answer Key

The program development life cycle
Section A: Quick Questions
Q1
A — Analysis, design, coding, testing
Q2
A — No, the program should be planned in analysis and design first
Q3
B — Analysis
Q4
B — Design
Q5
A — Coding
Section B: Match the Pairs
Q1
Analysis → Design → Coding → Testing → The four stages of the program development life cycle in the correct order
Q2
Analysis → The first stage, where the problem is investigated and the requirements are worked out
Q3
Planning is done before coding, so the program is designed first (for example in pseudocode) and then written → Design → Coding
Q4
Each stage has its own tasks: the design stage uses tools such as flowcharts and pseudocode → Design: flowchart, pseudocode, hierarchy chart
Q5
Coding → Analysis → Testing → Design → The stages are in the wrong order. They must run analysis, design, coding, then testing.
Q6
Analysis → Design → Coding → Testing → Debugging → Release → The life cycle in this course has only four stages. Debugging and Release are not extra stages.
Section C: Definitions
Q1
program development life cycle — The four ordered stages that take a program from problem to working code: analysis, design, coding and testing. Planning before coding saves time.
Section D: Fill in the Blanks
Q1
// Stage 1: analysis // Stage 2: design // Stage 3: coding
Q2
analysis -> design -> coding -> testing
Q3
// Stage 3: coding - write the program
Q4
// Stage 4: testing - check it works
Q5
CONSTANT Stages ← 4
Section E: Spot the Error
Q1
B — Debugging is not one of the four stages. The second stage is Design, so the line should be stage2 ← 'Design'.
Q2
B — Writing the program is the task of the Coding stage. In the Design stage you plan the solution, for example by drawing a flowchart.
Q3
C — Coding is the third stage and Testing is the fourth. You cannot test a program before it has been written, so this line should be OUTPUT 'Coding'.
Q4
A — The program development life cycle has four stages in this course: analysis, design, coding and testing. The constant should be 4.
Q5
A — Analysis is always the first stage. You must understand the problem before you can design or code a solution, so the line should be First stage: Analysis.