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 2 fuera de 13 páginas
Examen

Compiler Construction Exam Questions And Answers

Document preview thumbnail
Vista previa 2 fuera de 13 páginas

©SIRJOEL EXAM SOLUTIONS 2024/2025 ALL RIGHTS RESERVED. 1 | P a g e Compiler Construction Exam Questions And Answers Every compiler converts a _____ program to a _____ program - Answerssource, target What type of compilers do many Java interpreters use? - Answersjust-in-time What do macros get converted into? - Answerssource language statements What does the assembler do? - Answersconverts assembly code into machine code What are the two main parts of a compiler? - Answersanalysis and synthesis What does the analysis part of the compiler pass to the synthesis part? - Answersa symbol table and intermediate representation The synthesis part of a compiler is also called the _____ - Answersback end The symbol table is... - Answersused by all phases of the compiler, it is constructed during analysis and used during synthesis Another name for scanning is - Answerslexical analysis Another name for parsing is... - Answerssyntax analysis ©SIRJOEL EXAM SOLUTIONS 2024/2025 ALL RIGHTS RESERVED. 2 | P a g e In a syntax tree an interior node represents... - Answersan operation During what stage of analysis is the syntax tree built? - Answerssyntax analysis In what stage of analysis does type checking occur? - Answerssemantic analysis How can we support multiple target machines for a single source language? - Answersdevelop multiple backends What is the most important objective of compiler optimizations? - Answerscorrectness What do finite-state machines and regular expressions model? - Answerskeywords and identifiers What is true of programming language features that make programming easier? - Answersthey incur run-time overhead What can be found in most computers both at the instruction level and at the processor level? - Answersparallelism What is the most important problem in optimizing a program? - Answersusing registers effectively What maps names to locations (variables) in memory (the store)? - Answersenvironment What maps memory locations to values? - Answersstate A procedure... - Answersis like a function but doesn't return a value

Vista previa del contenido

©SIRJOEL EXAM SOLUTIONS 2024/2025

ALL RIGHTS RESERVED.




Compiler Construction Exam Questions And
Answers


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


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


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


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


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


What does the analysis part of the compiler pass to the synthesis part? - Answers✔a symbol

table and intermediate representation


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


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

analysis and used during synthesis


Another name for scanning is - Answers✔lexical analysis


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


1|Page

, ©SIRJOEL EXAM SOLUTIONS 2024/2025

ALL RIGHTS RESERVED.
In a syntax tree an interior node represents... - Answers✔an operation


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


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


How can we support multiple target machines for a single source language? - Answers✔develop

multiple backends


What is the most important objective of compiler optimizations? - Answers✔correctness


What do finite-state machines and regular expressions model? - Answers✔keywords and

identifiers


What is true of programming language features that make programming easier? -

Answers✔they incur run-time overhead


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

Answers✔parallelism


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

effectively


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


What maps memory locations to values? - Answers✔state


A procedure... - Answers✔is like a function but doesn't return a value



2|Page

Información del documento

Subido en
10 de diciembre de 2024
Número de páginas
13
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$10.99

¿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.
sirjoel
3.6
(18)
Vendido
133
Seguidores
13
Artículos
12782
Última venta
1 mes 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