• 1. 
    What is the output of lexical analyzer?

  • A parse tree
  • A list of tokens
  • Intermediate code
  • Machine code
  • 2. 
    ________ is considered as a sequence of characters in a token.

  • Texeme
  • Pattern
  • Lexeme
  • Mexeme
  • 3. 
    What is the name of the process that determining whether a string of tokens can be generated by a grammar?

  • Analysing
  • Recognizing
  • Translating
  • Parsing
  • 4. 
    A _________ is a software utility that translates code written in higher language into a low level language.

  • Converter
  • Compiler
  • Text editor
  • Code optimizer
  • 5. 
    Compiler can check ________ error.

  • Logical
  • Syntax
  • Content
  • Both A and B
  • 6. 
    A grammar that produces more than one parse tree for some sentence is called as

  • Ambiguous
  • Unambiguous
  • Regular
  • All of these
  • 7. 
    Lexical analysis is about breaking a sequence of characters into

  • Groups
  • Packets
  • Lines
  • Tokens
  • 8. 
    _______ is the most general phase structured grammar.

  • Context sensitive
  • Regular
  • Context free
  • All of these
  • 9. 
    How many parts of compiler are there?

  • 1
  • 2
  • 4
  • 8
  • 10. 
    Grammar of the programming is checked at _______ phase of compiler.

  • Semantic analysis
  • Syntax analysis
  • Code optimization
  • Code generation
  • 11. 
    _________ is a process of finding a parse tree for a string of tokens.

  • Parsing
  • Analysing
  • Recognizing
  • Tokenizing
  • 12. 
    What is the action of parsing the source program into proper syntactic classes?

  • Lexical analysis
  • Syntax analysis
  • General syntax analysis
  • Interpretation analysis
  • 13. 
    Compiler translates the source code to

  • Executable code
  • Machine code
  • Binary code
  • Both B and C
  • 14. 
    Which of the following groups is/are token together into semantic structures?

  • Syntax analyzer
  • Intermediate code generation
  • Lexical analyzer
  • Semantic analyzer
  • 15. 
    Compiler should report the presence of __________ in the source program, in translation process.

  • Classes
  • Objects
  • Errors
  • Text
Report Question
warning
access_time
  Time