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


    ⚡ Month End Offer- Few Hours Left Flat 55% Off On All Courses!! Coode - OCT55 Enroll Now ⚡
    00:00:00 AM Left

    Question

    Which phase of the compiler ensures that identifiers are

    declared before they are used?
    A Lexical Analysis Correct Answer Incorrect Answer
    B Syntax Analysis Correct Answer Incorrect Answer
    C Semantic Analysis Correct Answer Incorrect Answer
    D Intermediate Code Generation Correct Answer Incorrect Answer
    E Code Optimization Correct Answer Incorrect Answer

    Solution

    Semantic analysis verifies type and scope rules, ensuring identifiers are declared.

    Practice Next
    More Compiler Design Questions
    ask-question