📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Which debugging technique involves adding temporary

    output statements (e.g., print() or console.log()) to display variable values or execution flow?
    A Remote debugging Correct Answer Incorrect Answer
    B Rubber duck debugging Correct Answer Incorrect Answer
    C Logging/Print debugging Correct Answer Incorrect Answer
    D Post-mortem debugging Correct Answer Incorrect Answer
    E Breakpoint debugging Correct Answer Incorrect Answer

    Solution

    Logging or print debugging is a common and often simple technique where developers insert statements into their code to output information (like variable values, function entry/exit, specific conditions) to the console or a log file, helping them trace the program's execution and state.

    Practice Next
    ask-question