Question

    What role does a compiler serve in computer

    programming?
    A Converts high-level language to machine language Correct Answer Incorrect Answer
    B Identifies and fixes code errors Correct Answer Incorrect Answer
    C Runs and executes code directly Correct Answer Incorrect Answer
    D Organizes and formats code Correct Answer Incorrect Answer

    Solution

    A compiler serves to convert high-level programming languages into machine language, enabling the computer to understand and process the commands. This translation is crucial for creating executable programs from code written in languages like C++, Java, or Python. 

    Practice Next

    Relevant for Exams: