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


    Question

    A program consistently produces incorrect results for a

    specific set of inputs, but doesn't crash. This indicates a:
    A Syntax error Correct Answer Incorrect Answer
    B Runtime error Correct Answer Incorrect Answer
    C Logic error Correct Answer Incorrect Answer
    D Linker error Correct Answer Incorrect Answer
    E Compiler error Correct Answer Incorrect Answer

    Solution

    A logic error means the program's code is syntactically correct and runs without crashing, but its internal logic is flawed, leading to incorrect output for certain (or all) inputs.

    Practice Next
    ask-question