Certified Associate in Python Programming (PCAP) — Question 61

A compiler is a program designed to (Choose two.)

Answer options

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.