Compiler vs Interpreter - Quiz

  • A Compilation time
  • B Execution time
  • C Both A and B
  • D Neither A nor B
  • A Translates source code line by line
  • B Provides immediate feedback on errors
  • C Produces an intermediate code
  • D Requires an interpreter for execution
  • A Lexical Analysis
  • B Parsing
  • C Code Generation
  • D Execution
  • A Syntax Error
  • B Runtime Error
  • C Logical Error
  • D Semantic Error
  • A Lexical Analysis
  • B Parsing
  • C Code Generation
  • D Execution
  • A Python
  • B Ruby
  • C Assembly Language
  • D JavaScript
  • A Compilation time is always shorter than execution time
  • B Compilation time is always longer than execution time
  • C Compilation time and execution time are independent
  • D Compilation time is equal to execution time
  • A Faster execution speed
  • B Platform independence
  • C Early error detection
  • D Optimized machine code generation
  • A Translates source code into machine code
  • B Combines compiled object code into an executable file
  • C Performs syntax analysis on the source code
  • D Interprets the high-level language statements