PCEP-30-02 · Question #135
What is true about compilation? (Choose two.)
The correct answer is A. The code is converted directly into machine code executable by the processor B. It tends to be faster than interpretation. Compilation transforms source code directly into machine code (binary instructions) that the processor executes natively - making A correct. Because compiled programs run as native machine code without needing a runtime interpreter on every execution, they run significantly…
Question
Options
- AThe code is converted directly into machine code executable by the processor
- BIt tends to be faster than interpretation
- CIt tends to be slower than interpretation
- DBoth you and the end user must have the code
How the community answered
(31 responses)- A84% (26)
- C3% (1)
- D13% (4)
Explanation
Compilation transforms source code directly into machine code (binary instructions) that the processor executes natively - making A correct. Because compiled programs run as native machine code without needing a runtime interpreter on every execution, they run significantly faster than interpreted languages, confirming B.
C is wrong because it contradicts B - compiled code runs faster, not slower, than interpreted code. D is wrong because compilation is the key advantage over interpretation: the end user only needs the compiled binary (.exe, etc.), not the original source code - the developer compiles once and ships the result.
Memory tip: Think of compilation like baking bread - you (the developer) do all the work upfront in the kitchen (compile once), then hand the finished loaf to the user. Interpretation is like reading a recipe aloud step-by-step every time you want bread - slower, and the "recipe" (source) must always be present.
Community Discussion
No community discussion yet for this question.