Lesson 2.1.2
2.1.2 Designing, creating and refining algorithms Quiz: OCR Computer Science, Unit 7
20 questions
In partnership with Revision Ninja
Lesson 2.1.2, Designing, creating and refining algorithms: 20 multiple choice questions for the OCR GCSE Computer Science (J277), Unit 7: Algorithms, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
Which flowchart shape is used to represent a decision?
- Parallelogram
- Rectangle
- Oval
- Diamond
-
Which flowchart symbol is used for input or output?
- A parallelogram
- An oval
- A diamond
- A rectangle
-
What flowchart symbol marks the start or end of an algorithm?
- Decision symbol
- Process symbol
- Terminal symbol
- Input symbol
-
What is the main purpose of using a trace table?
- To measure speed
- To track variables
- To compile code
- To draw flowcharts
-
Which design tool uses a hierarchical tree-like structure to break down a problem?
- Structure diagram
- Trace table
- Pseudocode
- Flowchart
-
Which error type allows execution but produces incorrect results?
- Compilation error
- Translation error
- Syntax error
- Logic error
-
What is the main purpose of a structure diagram?
- Formatting text files
- Showing problem sub-sections
- Testing hardware speed
- Running source code
-
How is pseudocode best described?
- Informal design notation
- Strict programming syntax
- Compiled machine code
- Binary instruction set
-
A variable x starts at 1 and is doubled in each of three loop passes. What is x at the end?
- 3
- 8
- 6
- 4
-
An outer loop runs 4 times and each inner loop runs 3 times. How many times does the inner loop body run in total?
- 12
- 9
- 16
- 7
-
Which component of an algorithm calculates area from length and width?
- Output
- Process
- Terminal
- Input
-
What type of error prevents source code from being successfully translated into machine code?
- Syntax error
- Arithmetic error
- Runtime error
- Logic error
-
Which construct is used to print Pass or Fail depending on a mark?
- Sequence only
- Selection
- Input only
- Iteration
-
In a flowchart, the steps are Start, input age, decision age >= 18, output Adult if yes or Minor if no, then End. What is the output for an age of 17?
- Minor
- Start
- Error
- Adult
-
What type of error occurs when code runs without crashing but produces incorrect output?
- Syntax error
- Translation error
- Execution error
- Logic error
-
What tool tracks variable values step by step to find errors?
- Trace table
- Source code
- Structure diagram
- Flowchart
-
An infinite loop caused by a faulty condition is what type of error?
- Logic error
- Syntax error
- Runtime error
- Translation error
-
Which programming construct is needed to check a condition inside another condition?
- Count-controlled loop
- Linear search
- Nested selection
- Sequence
-
What is the primary purpose of refining an algorithm after initial creation?
- Translating code
- Changing syntax
- Adding comments
- Improving efficiency
-
A counter starts at 10 and decreases by 2 in each of three loop passes. What is its final value?
- 6
- 2
- 8
- 4
Related quizzes
- Computational thinking Quiz · 2.1.1 · 20 questions
- Searching and sorting algorithms Quiz · 2.1.3 · 20 questions
- Architecture of the CPU Quiz · 1.1.1 · 20 questions
- Primary storage (memory) Quiz · 1.2.1 · 20 questions
- Networks and topologies Quiz · 1.3.1 · 20 questions
- Threats to computer systems and networks Quiz · 1.4.1 · 20 questions
- Operating systems Quiz · 1.5.1 · 20 questions
- Ethical, legal, cultural and environmental impact Quiz · 1.6.1 · 20 questions
- Programming fundamentals Quiz · 2.2.1 · 20 questions
- Defensive design Quiz · 2.3.1 · 20 questions