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


    Question

    What is the primary purpose of a "dry run" or

    "walkthrough" of code?
    A To test the code's performance under load. Correct Answer Incorrect Answer
    B To manually simulate the execution of code step-by-step to understand its logic and predict its output. Correct Answer Incorrect Answer
    C To automatically generate documentation for the code. Correct Answer Incorrect Answer
    D To compile the code without actually running it. Correct Answer Incorrect Answer
    E To check for syntax errors. Correct Answer Incorrect Answer

    Solution

    A dry run (or code walkthrough) is a manual process where a developer mentally (or on paper) traces the execution of a piece of code, keeping track of variable values and the flow of control. It's a powerful technique for understanding complex logic, identifying subtle bugs, and verifying algorithm correctness without actually running the program.

    Practice Next
    ask-question