Question 52Asked in DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2

In which debugging approach, the program is loaded with print statements to print the intermediate values with the hope that some of the printed values will…

In which debugging approach, the program is loaded with print statements to print the intermediate values with the hope that some of the printed values will help to identify the statement as error?
  1. ABacktracking
  2. BCause Elimination Method
  3. CBrute Force Method
  4. DProgram Slicing
Show answerHide answer

Correct answer: (C) Brute Force Method

Explanation

In the brute force debugging method, the program is filled with print statements and memory dumps in the hope that the printed values will reveal the faulty statement. It is the most common but least efficient method.

From DSSSB TGT Computer Science PYQ (Technical), 8 Aug 2021, Shift 2

This is question 52 of DSSSB TGT Computer Science PYQ (Technical), 8 Aug 2021, Shift 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.