Join WhatsApp ChannelDaily MCQs & Exam Updates
Computer Science Medium PMS Uploaded: 07 Aug 2026

What is the main function of a compiler?

  • A Display graphics
  • B Manage network connections
  • C Convert source code into machine code
  • D Store data permanently
Correct Answer: Option C — Convert source code into machine code
Explanation:
A compiler is a program that translates source code written in a high-level programming language into machine code that a computer's processor can execute directly. This translation process occurs before the program is run.
Submitted by: PaperMCQs
Related MCQs