Class 12 Computer Science · Chapter 5 · Test 3
Debugging Tools
36 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.
Question 1
Breakpoints and watches are tools used in:
- ADebugging
- BProfiling
- CUnit testing
- DException handling
Show answerHide answer
Answer: A
Breakpoints and watches help analyse program behaviour during debugging.
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 answerHide answer
Answer: C
A breakpoint pauses execution at a chosen line.
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 answerHide answer
Answer: D
A simple click next to the line number sets the breakpoint.
Question 4
When execution reaches a breakpoint the program:
- AEnds
- BPauses
- CSkips that line
- DRestarts
Show answerHide answer
Answer: B
The program stops at the breakpoint.
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 answerHide 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.