Selected MCQ

Current Question
What is a compiler?
  • A. A computer program that converts high-level language into machine language
  • B. System program that converts machine language to a high-level language
  • C. A high-level program that writes instructions to perform
  • D. All of these
Correct Answer: A
Explanation:
A compiler translates high-level code to machine code.
Related Question 1
Compilers and interpreters are themselves ____.
  • A. High-level language
  • B. Codes
  • C. Programs
  • D. Mnemonics
Correct Answer: C
Explanation:
Both compilers and interpreters are special programs.
Related Question 2
Compiler is also ____.
  • A. Software
  • B. Program
  • C. Code
  • D. All of these
Correct Answer: D
Explanation:
A compiler is a software program that translates code.
Related Question 3
Compiler can check ____.
  • A. Syntax Error
  • B. Logical Error
  • C. Both Logical and Syntax Error
  • D. None of these
Correct Answer: A
Explanation:
A compiler primarily detects syntax errors during compilation.