0
0
Compiler Designknowledge~10 mins

Why code generation produces executable output in Compiler Design - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the sentence to explain why code generation produces executable output.

Compiler Design
Code generation translates source code into [1] code that a machine can run directly.
Drag options to blanks, or click blank then click option'
Ahuman
Bmachine
Cpseudocode
Dcomments
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'human' because source code is written for humans.
Confusing pseudocode with executable code.
2fill in blank
medium

Complete the sentence to describe the role of the compiler in code generation.

Compiler Design
The compiler converts high-level language into [1] code during code generation.
Drag options to blanks, or click blank then click option'
Asource
Bassembly
Cmarkup
Dmachine
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing assembly code with machine code.
Thinking source code is the output of code generation.
3fill in blank
hard

Fix the error in the explanation about code generation output.

Compiler Design
Code generation produces [1] code, which is a human-readable form of the program.
Drag options to blanks, or click blank then click option'
Amachine
Bsource
Cassembly
Dinterpreted
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'assembly' thinking it is the final executable code.
Selecting 'source' which is the input, not output.
4fill in blank
hard

Fill both blanks to explain how code generation relates to executable output.

Compiler Design
Code generation transforms [1] code into [2] code that the processor executes.
Drag options to blanks, or click blank then click option'
Ahigh-level
Bmachine
Csource
Dinterpreted
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up source and machine code.
Choosing interpreted instead of machine code.
5fill in blank
hard

Fill all three blanks to complete the explanation of code generation producing executable output.

Compiler Design
During code generation, the compiler [1] the [2] code into [3] code for the computer to run.
Drag options to blanks, or click blank then click option'
Atranslates
Bsource
Cmachine
Dinterprets
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'interprets' instead of 'translates'.
Confusing machine code with source code.