Certified Associate in Python Programming (PCAP) — Question 61
A compiler is a program designed to (Choose two.)
Answer options
- A. rearrange the source code to make it clearer
- B. check the source code in order to see of it's correct
- C. execute the source code
- D. translate the source code into machine code
Correct answer: B, D
Explanation
The correct answers are B and D because a compiler checks the source code for syntax errors and translates it into machine code that can be executed by a computer. Options A and C are incorrect because compilers do not rearrange code for clarity or execute the source code directly.