PREMIUM
Join our WhatsApp Channel
Daily MCQs, Past Papers & Jobs for PPSC, FPSC, CSS
Daily MCQs • Past Papers • Jobs for PPSC, FPSC, CSS
Join Channel

What is a compiler used for?

A. Execute programs
B. Manage memory
C. Translate high level language into machine code
D. Debug errors
Correct Answer: C. Translate high level language into machine code

Correct answer: Translate high level language into machine code. A compiler turns a whole high-level program into machine code.

Background: It checks the program first, then makes an executable file.

  • Execute programs: Running a program is the operating system's job.
  • Manage memory: Memory is handled by the operating system at run time.
  • Debug errors: Debugging is finding and fixing errors, a programmer's task.

Did you know? Grace Hopper wrote the first compiler in 1952.

Memory trick: Compiler converts code, both starting with C.

0 comments

Leave a Reply

Join Our WhatsApp Channel ×