Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 14 pages
Exam (elaborations)

Compiler Construction Exam Questions and Answers 100% Solved

Document preview thumbnail
Preview 2 out of 14 pages

Compiler Construction Exam Questions and Answers 100% Solved Every compiler converts a _____ program to a _____ program - source, target What type of compilers do many Java interpreters use? - just-in-time What do macros get converted into? - source language statements What does the assembler do? - converts assembly code into machine code What are the two main parts of a compiler? - analysis and synthesis What does the analysis part of the compiler pass to the synthesis part? - a symbol table and intermediate representation The synthesis part of a compiler is also called the _____ - back end The symbol table is... - used by all phases of the compiler, it is constructed during analysis and used during synthesis Another name for scanning is - lexical analysis Another name for parsing is... - syntax analysis

Content preview

Compiler Construction Exam Questions

and Answers 100% Solved


Every compiler converts a _____ program to a _____ program - ✔✔source,

target

What type of compilers do many Java interpreters use? - ✔✔just-in-time

What do macros get converted into? - ✔✔source language statements

What does the assembler do? - ✔✔converts assembly code into machine

code

What are the two main parts of a compiler? - ✔✔analysis and synthesis

What does the analysis part of the compiler pass to the synthesis part? -

✔✔a symbol table and intermediate representation

The synthesis part of a compiler is also called the _____ - ✔✔back end

The symbol table is... - ✔✔used by all phases of the compiler, it is

constructed during analysis and used during synthesis

Another name for scanning is - ✔✔lexical analysis

Another name for parsing is... - ✔✔syntax analysis


1
©JOSHCLAY 2024/2025. YEAR PUBLISHED 2024.

, In a syntax tree an interior node represents... - ✔✔an operation

During what stage of analysis is the syntax tree built? - ✔✔syntax analysis

In what stage of analysis does type checking occur? - ✔✔semantic

analysis

How can we support multiple target machines for a single source

language? - ✔✔develop multiple backends

What is the most important objective of compiler optimizations? -

✔✔correctness

What do finite-state machines and regular expressions model? -

✔✔keywords and identifiers

What is true of programming language features that make programming

easier? - ✔✔they incur run-time overhead

What can be found in most computers both at the instruction level and at

the processor level? - ✔✔parallelism

What is the most important problem in optimizing a program? - ✔✔using

registers effectively

What maps names to locations (variables) in memory (the store)? -

✔✔environment


2
©JOSHCLAY 2024/2025. YEAR PUBLISHED 2024.

Document information

Uploaded on
December 7, 2024
Number of pages
14
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
JOSHCLAY
3.5
(83)
Sold
387
Followers
16
Items
20447
Last sold
4 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions