๐Ÿ“ข Too many exams? Donโ€™t know which one suits you best? Book Your Free Expert ๐Ÿ‘‰ call Now!

  • google app store apple app store
  • โœ–

      Question

      Which of the following is the first phase of a compiler?

      A Syntax Analysis Correct Answer Incorrect Answer
      B Semantic Analysis Correct Answer Incorrect Answer
      C Lexical Analysis Correct Answer Incorrect Answer
      D Code Generation Correct Answer Incorrect Answer
      E Intermediate Code Generation Correct Answer Incorrect Answer

      Solution

      The compiler works in multiple phases, and the first phase is Lexical Analysis. It reads the source code as a stream of characters and converts them into tokens.

      Practice Next
      ask-question