The design stage

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

The design stage

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which stage of the PDLC comes straight after analysis?
A Testing
B Design
2. Which task belongs to the design stage?
A Drawing a flowchart of the solution
B Writing the final program code
3. What does the design stage use as its starting point?
A The results of the analysis stage
B The results of the testing stage
4. A student writes pseudocode to plan an algorithm. Which stage is this?
A Coding
B Design
5. Which statement about design methods is correct?
A A flowchart and pseudocode can show the same solution in different ways
B A flowchart and pseudocode must describe two different solutions

Match the Pairs

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

Left columnRight column
1Design stage AFinding out what the user needs and listing requirements is the analysis stage (stage 1), not design.
2Structure diagram BWriting program code belongs to the coding stage (stage 3), not the design stage. Design only plans the solution.
3Design uses the results of analysis: the requirements say what the program must do, and the design plans how to do it CRequirement: add up 3 marks and OUTPUT the total Design: Total <- Mark1 + Mark2 + Mark3
4Pseudocode is a design method that plans the solution in a form close to program code, so coding is easier DA design method that shows a problem broken down into smaller sub-problems in a hierarchy
5Stage 2 (Design): write the program code in Python EFOR Count <- 1 TO 5 INPUT Mark NEXT Count
6Design stage: find out what the user needs and list the requirements FThe second stage of the PDLC, where the solution is planned in detail before any program code is written

Definitions

Design stage

Fill in the Blanks

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

1.
// Stage 2 of the PDLC: ______
2.
// Design uses the results of ________
3.
// Design with __________ or a flowchart
4.
// _____________ splits a problem into parts
5.
// A good design makes ______ easier

Spot the Error

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

Question 1
A // Design: average of 2 marks
B INPUT Mark1
C Input Mark2
D Average ← (Mark1 + Mark2) / 2
E OUTPUT Average
Question 2
A // Design stage plan
B DECLARE Count : INTEGER
C Count ← 0
D WHILE Count < 5 THEN
E Count ← Count + 1
F ENDWHILE
Question 3
A // Design: check age
B READ Age
C IF Age >= 16 THEN
D OUTPUT "Allowed"
E ENDIF
Question 4
A // Design is before analysis
B // Plan with flowcharts
C // Then write the code
D // Then test the program
Question 5
A // Requirement: sum 1 to 10
B Total ← 0
C FOR Count ← 1 UNTIL 10
D Total ← Total + Count
E NEXT Count
F OUTPUT Total

Answer Key

The design stage
Section A: Quick Questions
Q1
B — Design
Q2
A — Drawing a flowchart of the solution
Q3
A — The results of the analysis stage
Q4
B — Design
Q5
A — A flowchart and pseudocode can show the same solution in different ways
Section B: Match the Pairs
Q1
Design stage → The second stage of the PDLC, where the solution is planned in detail before any program code is written
Q2
Structure diagram → A design method that shows a problem broken down into smaller sub-problems in a hierarchy
Q3
Design uses the results of analysis: the requirements say what the program must do, and the design plans how to do it → Requirement: add up 3 marks and OUTPUT the total Design: Total <- Mark1 + Mark2 + Mark3
Q4
Pseudocode is a design method that plans the solution in a form close to program code, so coding is easier → FOR Count <- 1 TO 5 INPUT Mark NEXT Count
Q5
Stage 2 (Design): write the program code in Python → Writing program code belongs to the coding stage (stage 3), not the design stage. Design only plans the solution.
Q6
Design stage: find out what the user needs and list the requirements → Finding out what the user needs and listing requirements is the analysis stage (stage 1), not design.
Section C: Definitions
Q1
Design stage — The second PDLC stage: plan the solution in detail using decomposition, structure diagrams, flowcharts and pseudocode, before any program code is written.
Section D: Fill in the Blanks
Q1
// Stage 2 of the PDLC: Design
Q2
// Design uses the results of analysis
Q3
// Design with pseudocode or a flowchart
Q4
// Decomposition splits a problem into parts
Q5
// A good design makes coding easier
Section E: Spot the Error
Q1
C — Keywords in Cambridge pseudocode must be written in capital letters. The line should be INPUT Mark2.
Q2
D — A WHILE loop header ends with DO, not THEN (THEN belongs to IF). It should be WHILE Count < 5 DO.
Q3
B — Cambridge pseudocode uses the keyword INPUT to get a value from the user, not READ. It should be INPUT Age.
Q4
A — Design is the second PDLC stage, so it comes after analysis. The design uses the analysis results. It should say Design is after analysis.
Q5
C — A FOR loop uses TO to give the end value (UNTIL belongs to REPEAT). It should be FOR Count ← 1 TO 10.