Test 3: Complete Chapter Review

MCQs

30 questions · 25 min · 30 marks

Want to try first? Take the free Computer Science test: 94hbp-7gz9m-ufent-tsj4r

Sample questions

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

  1. Question 1

    Which of the following is NOT a type of testing mentioned in the chapter?

    • AUnit Testing
    • BIntegration Testing
    • CRegression Testing
    • DCompilation Testing
    Show answer

    Answer: D

    The chapter lists Unit, Integration, Functional and Regression testing.

  2. Question 2

    Which type of testing validates that the software behaves as expected from the user's perspective?

    • AUnit Testing
    • BIntegration Testing
    • CFunctional Testing
    • DRegression Testing
    Show answer

    Answer: C

    Functional testing validates behaviour from the user's perspective.

  3. Question 3

    Python's unit test module is commonly used for:

    • AUnit testing
    • BDrawing diagrams
    • CSorting lists
    • DGenerating random numbers
    Show answer

    Answer: A

    The unit test module is commonly used for unit testing.

  4. Question 4

    Which of the following is NOT a debugging technique mentioned in the chapter?

    • APrint Statements
    • BDebugging Tools
    • CError Messages
    • DRandom Guessing
    Show answer

    Answer: D

    The chapter lists Print Statements, Debugging Tools and Error Messages.

  5. Question 5

    What is one main benefit of using libraries?

    • AThey save time and effort so you can focus on the specific problem
    • BThey make code run slower
    • CThey replace the need for loops
    • DThey remove all errors
    Show answer

    Answer: A

    Libraries save time and effort and avoid reinventing the wheel.

More tests in Control Structures in Python

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