Complete the sentence to explain why compilers translate high-level code to machine code.
Compilers translate high-level code to [1] so the computer can understand and execute it.
Computers only understand machine code, which is a set of instructions in binary form. High-level code must be translated into machine code for the computer to run it.
Complete the sentence to describe the role of machine code.
Machine code is a set of instructions in [1] that the computer's processor can execute directly.
Machine code consists of binary digits (0s and 1s) that represent instructions the processor can run directly.
Fix the error in the explanation about why compilers translate code.
Compilers translate code to [1] so that programmers can write in machine code directly.
The statement is incorrect because programmers write in high-level languages, not machine code. Compilers translate high-level code into machine code so computers can execute it.
Fill both blanks to complete the explanation of compilation.
A compiler translates [1] code into [2] code so that the computer's processor can execute instructions.
High-level code is translated into machine code by the compiler so the processor can run the program.
Fill all three blanks to explain why compilers are important.
Compilers convert [1] code into [2] code, which is made of [3] digits that the processor executes.
Compilers convert high-level code into machine code, which consists of binary digits (0s and 1s) that the processor can execute directly.