Programming: Pseudocode, Selection, Loops and Subroutines A Level Computer Science lesson
How to turn a design into 9618 pseudocode: declarations, operators and library routines, IF, CASE and the three loops, then procedures, functions, parameters and efficient structure.
What this lesson covers
About this lesson
Programming: Pseudocode, Selection, Loops and Subroutines is a 14-part A Level Computer Science lesson. Each part makes one point and then hands over to the next, so it can be read in a sitting or picked up again at the part you stopped on. It defines the idea in plain words before using it, breaks the topic into its parts and compares them, shows where it is used outside the textbook.
How it begins
A program is rarely written straight from a problem. First comes a design, usually a flowchart or a description in structured English. Your job is then to turn it into pseudocode (or real code) that does exactly what the design says. The flowchart on the right and the pseudocode beside it describe the same program. Work through the design one symbol at a time: Each parallelogram becomes an INPUT or OUTPUT statement.
The 14 parts
- 1From a design to pseudocode
- 2Constants, variables, assignment, operators and input/output
- 3Built-in functions and library routines
- 4Check yourself: programming basics
- 5Selection: IF, ELSE, nested IF and CASE
- 6Iteration: FOR, WHILE and REPEAT
- 7Choosing the right loop
- 8Check yourself: constructs
- 9Procedures: defining, calling and when to use one
- 10Parameters, BYVAL, BYREF and scope
- 11Local and global variables in practice
- 12Functions: returning a value
- 13Writing efficient pseudocode
- 14Check yourself: structured programming
This topic needs a subscription
This lesson is part of a paid plan. Create a free account to start with our free lessons, or subscribe to open every topic.
- 🆓 Free lessons are open on any account
- 📗 Monthly: 5 paid topics a month
- 📘 Yearly: 7 paid topics a month
- ⭐ Premium, every topic, unlimited
- 🧺 Or buy this single topic, the lesson is included
Practise Programming
Everything on QuizByt for A Level Computer Science that goes with this lesson: read it first, then test yourself while it is fresh.
🧠 5 quizzes on Programming (2 easy, 2 medium, 1 hard)
Work up from easy to hard: the hard quiz asks the A Level exam-style questions on Programming.
🖨️ Printable worksheet
Programming on paper for A Level, with room to write the working out. Preview the first page free.
🎮 Games for A Level Computer Science
Memory and reasoning games at the right level for A Level. Passing a quiz on Programming earns the credits that open them.