Lesson 2.3.2

2.3.2 Testing Quiz: OCR Computer Science, Unit 9

20 questions

In partnership with Revision Ninja

Lesson 2.3.2, Testing: 20 multiple choice questions for the OCR GCSE Computer Science (J277), Unit 9: Producing robust programs, 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. What type of testing checks if the whole completed program meets user requirements?

    • Logic testing
    • Syntax testing
    • Final testing
    • Iterative testing
  2. What type of testing is performed repeatedly on individual modules during development?

    • Final testing
    • Boundary testing
    • Iterative testing
    • Terminal testing
  3. Which testing method is carried out by developers while the program is still being written?

    • Release testing
    • Iterative testing
    • Beta testing
    • Final testing
  4. Which type of test data should be accepted by a program without causing errors?

    • Erroneous
    • Boundary
    • Normal
    • Invalid
  5. For a valid range of 1 to 100, which value is boundary test data?

    • 150
    • 50
    • hello
    • 100
  6. For an age input that should be between 1 and 100, which value is invalid test data?

    • 150
    • 50
    • 100
    • 1
  7. For an integer age input, which value is erroneous test data?

    • twelve
    • 150
    • 0
    • 12
  8. What two key items of information does a standard test plan record for each test?

    • Flowcharts and pseudocode
    • Author and creation date
    • Inputs and expected results
    • Code and compiler version
  9. Which value is normal test data for a mark out of 100?

    • -1
    • 45
    • 101
    • forty
  10. What type of error is caused by dividing a number by zero during program execution?

    • Logic error
    • Syntax error
    • Runtime error
    • Compile error
  11. What type of error is caused by a misspelled programming keyword?

    • Syntax error
    • Run-time error
    • Logic error
    • Arithmetic error
  12. What happens when a test's actual result matches its expected result?

    • Test fails
    • Test passes
    • Data rejected
    • Error occurs
  13. Which test value represents a boundary case for a password requiring at least 8 characters?

    • 15 characters
    • 0 characters
    • 8 characters
    • 5 characters
  14. What benefit does using a test plan with expected results provide?

    • Automatic debugging
    • Objective comparison
    • Faster execution
    • Code optimisation
  15. A program passes all normal and boundary tests but fails when text is entered in a number field. Which type of test data was missing?

    • Erroneous test data
    • Logic testing
    • Iterative testing
    • Final testing
  16. Which test data type checks the edge of acceptable input values?

    • Normal data
    • Extreme data
    • Erroneous data
    • Boundary data
  17. What type of error produces incorrect program output without crashing the software?

    • System error
    • Runtime error
    • Syntax error
    • Logic error
  18. Which test would check that a number field rejects -5 when only positive whole numbers are allowed?

    • Invalid test data
    • Erroneous test data
    • Boundary test data
    • Normal test data
  19. What test data value should be used to check that an empty name is rejected?

    • Valid character
    • Boolean false
    • Null string
    • Integer zero
  20. A program accepts temperatures from -10 to 40 degrees. Which value is boundary test data?

    • hot
    • 0
    • -10
    • 45

All OCR Computer Science quizzes