Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 3 fuera de 30 páginas
Examen

Compiler Construction Midterm 2025/2026 Exam Questions and Detailed Answers | Get it 100% Correct Answers

Document preview thumbnail
Vista previa 3 fuera de 30 páginas

Compiler Construction Midterm 2025/2026 Exam Questions and Detailed Answers | Get it 100% Correct Answers Every compiler converts a(n) ___ program to a(n) ___ program. - � �ANSWER True An on-demand backup can negatively impact a table's performance and availability. (T/F) -

Vista previa del contenido

Compiler Construction Midterm
2025/2026 Exam Questions and Detailed
Answers | Get it 100% Correct Answers



Every compiler converts a(n) ___ program to a(n) ___ program. -

🧠ANSWER ✔✔True


An on-demand backup can negatively impact a table's performance and

availability. (T/F) - 🧠ANSWER ✔✔False


What type of compilers do many Java interpreters use? - 🧠ANSWER

✔✔just-in-time


What do macros get converted into? - 🧠ANSWER ✔✔source language

statements


What does the assembler do? - 🧠ANSWER ✔✔Converts assembly code

into machine code.


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

synthesis




COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
1
STATEMENT. ALL RIGHTS RESERVED

,The analysis part of the compiler passes what two things on to the

synthesis part? - 🧠ANSWER ✔✔intermediate representation and symbol

table


The synthesis part of a compiler is also called the - 🧠ANSWER ✔✔back

end.


The symbol table is - 🧠ANSWER ✔✔used by all phases of the compiler.


Another name for scanning is - 🧠ANSWER ✔✔lexical analysis.


In the lexical analyzer example in the book, what are the token names? -

🧠ANSWER ✔✔id, 60, =, +, *


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


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


In the example in sections 1.2.1 and 1.2.2, what does <id, 3> represent? -

🧠ANSWER ✔✔rate


In what stage is the syntax tree built? - 🧠ANSWER ✔✔syntax analysis


In what stage does type checking occur? - 🧠ANSWER ✔✔semantic

analysis



COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
2
STATEMENT. ALL RIGHTS RESERVED

, The example on coercion uses - 🧠ANSWER ✔✔an integer and a float.


Which is not an example of an intermediate representation? - 🧠ANSWER

✔✔symbol table


Which is not a reason given in the book to optimize code? - 🧠ANSWER

✔✔readable target code


Where are variable and procedure names stored? - 🧠ANSWER ✔✔symbol

table

How can we support multiple target machines for a single source

language? - 🧠ANSWER ✔✔multiple back ends


In a generation classification of programming languages, Java is what? -

🧠ANSWER ✔✔third-generation


The problem of generating the optimal target code from a source program

is - 🧠ANSWER ✔✔undecidable.


Of the four design objectives of compiler optimizations, which is the most

important? - 🧠ANSWER ✔✔correctness


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

🧠ANSWER ✔✔keywords and identifiers

COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
3
STATEMENT. ALL RIGHTS RESERVED

Información del documento

Subido en
9 de abril de 2025
Número de páginas
30
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$13.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
JOSHCLAY
3.5
(83)
Vendido
387
Seguidores
16
Artículos
20447
Última venta
4 días hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes