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.

Host this setFree Play

The 20 questions

  1. Which flowchart shape is used to represent a decision?

    • Parallelogram
    • Rectangle
    • Oval
    • Diamond
  2. Which flowchart symbol is used for input or output?

    • A parallelogram
    • An oval
    • A diamond
    • A rectangle
  3. What flowchart symbol marks the start or end of an algorithm?

    • Decision symbol
    • Process symbol
    • Terminal symbol
    • Input symbol
  4. What is the main purpose of using a trace table?

    • To measure speed
    • To track variables
    • To compile code
    • To draw flowcharts
  5. Which design tool uses a hierarchical tree-like structure to break down a problem?

    • Structure diagram
    • Trace table
    • Pseudocode
    • Flowchart
  6. Which error type allows execution but produces incorrect results?

    • Compilation error
    • Translation error
    • Syntax error
    • Logic error
  7. What is the main purpose of a structure diagram?

    • Formatting text files
    • Showing problem sub-sections
    • Testing hardware speed
    • Running source code
  8. How is pseudocode best described?

    • Informal design notation
    • Strict programming syntax
    • Compiled machine code
    • Binary instruction set
  9. 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
  10. 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
  11. Which component of an algorithm calculates area from length and width?

    • Output
    • Process
    • Terminal
    • Input
  12. What type of error prevents source code from being successfully translated into machine code?

    • Syntax error
    • Arithmetic error
    • Runtime error
    • Logic error
  13. Which construct is used to print Pass or Fail depending on a mark?

    • Sequence only
    • Selection
    • Input only
    • Iteration
  14. 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
  15. What type of error occurs when code runs without crashing but produces incorrect output?

    • Syntax error
    • Translation error
    • Execution error
    • Logic error
  16. What tool tracks variable values step by step to find errors?

    • Trace table
    • Source code
    • Structure diagram
    • Flowchart
  17. An infinite loop caused by a faulty condition is what type of error?

    • Logic error
    • Syntax error
    • Runtime error
    • Translation error
  18. Which programming construct is needed to check a condition inside another condition?

    • Count-controlled loop
    • Linear search
    • Nested selection
    • Sequence
  19. What is the primary purpose of refining an algorithm after initial creation?

    • Translating code
    • Changing syntax
    • Adding comments
    • Improving efficiency
  20. A counter starts at 10 and decreases by 2 in each of three loop passes. What is its final value?

    • 6
    • 2
    • 8
    • 4

All OCR Computer Science quizzes