What is the function of a compiler? MCQ with Answer and Explanation

What is the function of a compiler?
A. Optimizes storage
B. Translates high-level code to machine code all at once
C. Executes code without translation
D. Translates line by line
Answer: Option B
Solution (By JKExamLibrary)
A compiler translates the entire source code of a program into machine code before execution.

This question belongs to: Computer Computer Fundamentals

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Computer Fundamentals Questions

Question #1 Report Error
What is the base of the octal number system?
A. 10
B. 16
C. 8
D. 2

Correct Answer: Option C


Explanation:
The octal system has a base of 8, using digits 0 to 7.

This question belongs to: Computer Computer Fundamentals
Question #2 Report Error
A network server machine that hosts files, websites, or communication tools for a large corporate department belongs to which category?
A. Minicomputer / Mid-range Server
B. Supercomputer
C. Embedded Computer
D. Analog Computer

Correct Answer: Option A


Explanation:
Mid-range servers and minicomputers are engineered to handle multi-user business networks and medium-scale database serving operations.

This question belongs to: Computer Computer Fundamentals
Question #3 Report Error
Which of the following characteristics of a computer system protects it from becoming tired, bored, or losing concentration even after working for long hours?
A. Versatility
B. Accuracy
C. Diligence
D. Speed

Correct Answer: Option C


Explanation:
Diligence is the characteristic that allows a computer to perform repetitive tasks for long periods without experiencing physical exhaustion or lack of focus.

This question belongs to: Computer Computer Fundamentals