Debugging Tools

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

    Breakpoints and watches are tools used in:

    • ADebugging
    • BProfiling
    • CUnit testing
    • DException handling
    Show answer

    Answer: A

    Breakpoints and watches help analyse program behaviour during debugging.

  2. Question 2

    A breakpoint is a marker that:

    • ARemoves a line of code
    • BRepeats a loop
    • CPauses program execution at a chosen line
    • DPrints every variable
    Show answer

    Answer: C

    A breakpoint pauses execution at a chosen line.

  3. Question 3

    In PyCharm a breakpoint is typically set by:

    • ATyping a special keyword
    • BRestarting the IDE
    • CEditing a settings file
    • DClicking the line number margin
    Show answer

    Answer: D

    A simple click next to the line number sets the breakpoint.

  4. Question 4

    When execution reaches a breakpoint the program:

    • AEnds
    • BPauses
    • CSkips that line
    • DRestarts
    Show answer

    Answer: B

    The program stops at the breakpoint.

  5. Question 5

    At a breakpoint a programmer can:

    • AInspect variable values and the current state
    • BChange the Python version
    • CCompile the program
    • DDelete the module
    Show answer

    Answer: A

    The current state of the program can be examined at a breakpoint.

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