Edexcel IGCSE Computer Science 4CP0
Algorithms
Searching and Sorting Algorithms
Decomposition and Abstraction
Developing and Testing Code
Programming Constructs and Operators
Data Types and Data Structures
Input, Output and Validation
Data Representation
Data Storage and Compression
Encryption
Hardware and the CPU
Software
Programming Languages and Translators
Networks
Network Security
The Internet and the World Wide Web
Emerging Trends, Issues and Impact
Algorithms
Constructing algorithms
- 3 things to know
- Papers 1 and 2
Overview
Building algorithms from sequence, selection and iteration, written in the pseudocode command set with SET, SEND and RECEIVE.
What you need to know
Answer each one before you reveal it.
What is sequence?
What is selection?
Questions from this subtopic
Each one with the model answer underneath.
- 1
Name the three programming constructs used to build algorithms.
Model answer
The three constructs are sequence, selection and iteration.
- 2
What is sequence?
Model answer
Sequence is carrying out instructions one after another in the order they are written.
- 3
What is selection?
Model answer
Selection is choosing which instructions to carry out depending on whether a condition is true or false.
- 4
What is iteration?
Model answer
Iteration is repeating a set of instructions, either a fixed number of times or until a condition is met.
- 5
Write pseudocode that outputs Pass if a mark is 50 or more and Fail otherwise.
Model answer
The pseudocode is IF Mark >= 50 THEN SEND 'Pass' TO DISPLAY ELSE SEND 'Fail' TO DISPLAY END IF.
- 6
Write pseudocode that outputs the numbers 1 to 10.
Model answer
The pseudocode to output the numbers 1 to 10 is FOR Count FROM 1 TO 10 DO SEND Count TO DISPLAY END FOR.
Other ways to work this
The same content, four other ways.
Everything in your subscription
Runs, plus a mode for every other kind of session.
Every question in Algorithms, on a schedule.
Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.