Pseudocode for Solution Design

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

Pseudocode for Solution Design

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Does pseudocode need to follow the exact syntax of a real programming language?
A False
B True
2. Is INPUT used to collect information from a user?
A False
B True
3. Does OUTPUT describe displaying information to the user?
A True
B False
4. Can an IF statement include an ELSE branch?
A Yes
B No
5. Does a WHILE loop repeat while its condition remains true?
A False
B True

Match the Pairs

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

Left columnRight column
1INPUT name APseudocode should use plain language, not the exact syntax of one language
2OUTPUT total BDisplaying a result to the user
3A structure describing a decision with two possible outcomes CCollecting data from the user
4A structure describing steps that repeat while a condition is true DIF age > 18 THEN ... ELSE ...
5The pseudocode was written using exact Python syntax and indentation rules EIF statements need at least a THEN branch to describe what happens
6An IF statement was written with no THEN and no ELSE branch at all FWHILE count < 10 DO ...

Definitions

Pseudocode

Fill in the Blanks

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

1.
_____ name
2.
______ total
3.
IF age > 18 ____
4.
_____ count < 10 DO
5.
IF valid THEN OUTPUT yes ____ OUTPUT no

Spot the Error

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

Question 1
A Pseudocode uses INPUT to describe getting data from a user.
B It uses OUTPUT to describe displaying information.
C It uses IF/THEN to describe decisions in logic.
D Pseudocode must follow the exact syntax of Python.
Question 2
A A WHILE loop describes something that repeats.
B WHILE loops always run exactly once.
C The loop continues while a condition remains true.
D Pseudocode can describe loops without real code.
Question 3
A IF statements can never include an ELSE branch.
B IF/THEN/ELSE structures describe decisions in pseudocode.
C THEN introduces what happens if a condition is true.
D ELSE introduces what happens instead.
Question 4
A Pseudocode is written before actual code.
B It helps plan the logic of a solution.
C Pseudocode must be written after the program is finished.
D It uses plain language mixed with code-like structure.
Question 5
A INPUT is used to collect information from a user.
B INPUT commands never appear near the start of pseudocode.
C The information collected can then be used later.
D This makes pseudocode easier to follow.

Answer Key

Pseudocode for Solution Design
Section A: Quick Questions
Q1
A — False
Q2
B — True
Q3
A — True
Q4
A — Yes
Q5
B — True
Section B: Match the Pairs
Q1
INPUT name → Collecting data from the user
Q2
OUTPUT total → Displaying a result to the user
Q3
A structure describing a decision with two possible outcomes → IF age > 18 THEN ... ELSE ...
Q4
A structure describing steps that repeat while a condition is true → WHILE count < 10 DO ...
Q5
The pseudocode was written using exact Python syntax and indentation rules → Pseudocode should use plain language, not the exact syntax of one language
Q6
An IF statement was written with no THEN and no ELSE branch at all → IF statements need at least a THEN branch to describe what happens
Section C: Definitions
Q1
Pseudocode — A plain-language, code-like way of planning a solution's logic without following the exact syntax of a real programming language
Section D: Fill in the Blanks
Q1
INPUT name
Q2
OUTPUT total
Q3
IF age > 18 THEN
Q4
WHILE count < 10 DO
Q5
IF valid THEN OUTPUT yes ELSE OUTPUT no
Section E: Spot the Error
Q1
D — Pseudocode does not need to follow the exact syntax of any real language, including Python.
Q2
B — A WHILE loop can run many times, not just once, as long as its condition stays true.
Q3
A — IF statements can absolutely include an ELSE branch to describe an alternative outcome.
Q4
C — Pseudocode is written before the program to plan logic, not after it's finished.
Q5
B — INPUT commands often appear near the start of pseudocode, since data is usually collected first.