Testing and Errors

36 MCQs

MCQs

36 questions · 30 min · 36 marks

Want to try first? Take the free Computer Science test: Networks Basics

Sample questions

The first 5 of 36. Try each one, then tap to see the answer.

  1. Question 1

    Testing is essential for reliable applications because it helps to:

    • AOptimise performance
    • BIdentify and fix bugs
    • CReduce the program size
    • DMake code run faster
    Show answer

    Answer: B

    Testing helps detect errors so that they can be fixed before release.

  2. Question 2

    Common types of programming errors include:

    • ASyntax error
    • BLogic error
    • CRuntime error
    • DAll of the above
    Show answer

    Answer: D

    Syntax and logic and runtime errors are all common programming errors.

  3. Question 3

    Testing checks whether an application:

    • AMeets its requirements
    • BUses the shortest code
    • CWas written by one person
    • DAvoids all libraries
    Show answer

    Answer: A

    Testing verifies that an application meets its requirements.

  4. Question 4

    Testing reduces the risk of:

    • ASlow typing
    • BLarger files
    • CCrashes or incorrect outputs
    • DExtra features
    Show answer

    Answer: C

    Thorough testing lowers the chance of crashes and wrong outputs.

  5. Question 5

    Regular testing helps ensure that changes:

    • AAre made faster
    • BRemove old features
    • CSkip review
    • DDo not break existing features
    Show answer

    Answer: D

    Repeated testing confirms that new changes leave existing features working.

More tests in Code Testing and Debugging

Practise with a free account

Save your scores, see which chapters need work, and keep a notebook of every question you got wrong.

Create free account