
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Question 1
When separating the specific concerns of Operational semantics and Garbage collection mechanisms, which proposed pairing interchanges those concerns?
A. Axiomatic semantics: Hoare logic, assertions, preconditions, postconditions, loop invariants, and proof of correctness B. Informal semantics: operational descriptions and language reference manuals C. Denotational semantics: mathematical domains, semantic functions, and mapping syntactic constructs to mathematical values D. Operational semantics: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction
Correct Answer: D
Full Explanation: Operational semantics concerns small-step and big-step operational models, transition systems, and abstract machine execution. Garbage collection mechanisms concerns reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction. Assigning the concern of Garbage collection mechanisms to Operational semantics interchanges their technical emphases
Question 2
When separating the specific concerns of Syntactic analysis (parsing) and Axiomatic semantics, which proposed pairing interchanges those concerns?
A. Chomsky hierarchy of formal grammars: regular, context-free, context-sensitive, and unrestricted grammars B. Syntactic analysis (parsing): Hoare logic, assertions, preconditions, postconditions, loop invariants, and proof of correctness C. Abstract Syntax Trees (ASTs): concrete syntax trees and disambiguation techniques (operator precedence and associativity) D. Parsing strategies: top-down parsing (LL(k), recursive descent) and bottom-up parsing (LR(k), LALR, shift-reduce parsers)
Correct Answer: B
Full Explanation: Syntactic analysis (parsing) concerns Context-Free Grammars (CFGs), Backus-Naur Form (BNF), and Extended BNF (EBNF). Axiomatic semantics concerns Hoare logic, assertions, preconditions, postconditions, loop invariants, and proof of correctness. Assigning the concern of Axiomatic semantics to Syntactic analysis (parsing) interchanges their technical emphases
Question 4
Which assignment correctly distinguishes the concerns of Lexical analysis (scanning) and Memory leaks?
A. Lexical analysis (scanning): dangling pointers, memory safety vulnerabilities and safety checks in modern languages; Alongside Memory leaks within Memory Management and Runtime Environments: regular expressions, finite automata, tokenization, and lexical ambiguity B. Lexical analysis (scanning): dangling pointers, memory safety vulnerabilities and safety checks in modern languages; Alongside Memory leaks within Memory Management and Runtime Environments: dangling pointers, memory safety vulnerabilities and safety checks in modern languages C. Lexical analysis (scanning): regular expressions, finite automata, tokenization, and lexical ambiguity; Alongside Memory leaks within Memory Management and Runtime Environments: dangling pointers, memory safety vulnerabilities and safety checks in modern languages D. Lexical analysis (scanning): regular expressions, finite automata, tokenization, and lexical ambiguity; Alongside Memory leaks within Memory Management and Runtime Environments: regular expressions, finite automata, tokenization, and lexical ambiguity
Correct Answer: C
Full Explanation: Lexical analysis (scanning) concerns regular expressions, finite automata, tokenization, and lexical ambiguity. Memory leaks is considered together with dangling pointers, memory safety vulnerabilities and safety checks in modern languages in Memory Management and Runtime Environments. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 5
Which pairing gives an appropriate technical interpretation of both Exception handling and Semantic analysis phase?
A. Exception handling: exception propagation, try-catch-finally blocks, asynchronous exceptions, and clean-up semantics; Semantic analysis phase: type checking, context-dependent validation, and attribute grammars B. Exception handling: type checking, context-dependent validation, and attribute grammars; Semantic analysis phase: type checking, context-dependent validation, and attribute grammars C. Exception handling: type checking, context-dependent validation, and attribute grammars; Semantic analysis phase: exception propagation, try-catch-finally blocks, asynchronous exceptions, and clean-up semantics D. Exception handling: exception propagation, try-catch-finally blocks, asynchronous exceptions, and clean-up semantics; Semantic analysis phase: exception propagation, try-catch-finally blocks, asynchronous exceptions, and clean-up semantics
Correct Answer: A
Full Explanation: Exception handling concerns exception propagation, try-catch-finally blocks, asynchronous exceptions, and clean-up semantics. Semantic analysis phase concerns type checking, context-dependent validation, and attribute grammars. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 6
A reviewer separates Memory Management and Runtime Environments from Code generation. Which allocation of issues is consistent with that distinction?
A. Memory Management and Runtime Environments: Organization of the runtime storage stack and heap; Code generation: Organization of the runtime storage stack and heap B. Memory Management and Runtime Environments: target machine architecture mapping, register allocation, and assembly/machine code emission; Code generation: target machine architecture mapping, register allocation, and assembly/machine code emission C. Memory Management and Runtime Environments: Organization of the runtime storage stack and heap; Code generation: target machine architecture mapping, register allocation, and assembly/machine code emission D. Memory Management and Runtime Environments: target machine architecture mapping, register allocation, and assembly/machine code emission; Code generation: Organization of the runtime storage stack and heap
Correct Answer: C
Full Explanation: Organization of the runtime storage stack and heap is a specific concern within Memory Management and Runtime Environments. Code generation concerns target machine architecture mapping, register allocation, and assembly/machine code emission. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 7
Which paired description correctly preserves the different emphases of Type equivalence and Semantics: Formal and Informal Models?
A. Type equivalence: structural equivalence vs. name equivalence; Semantics: Formal and Informal Models: Distinction between syntax (form) and semantics (meaning) B. Type equivalence: Distinction between syntax (form) and semantics (meaning); Semantics: Formal and Informal Models: Distinction between syntax (form) and semantics (meaning) C. Type equivalence: structural equivalence vs. name equivalence; Semantics: Formal and Informal Models: structural equivalence vs. name equivalence D. Type equivalence: Distinction between syntax (form) and semantics (meaning); Semantics: Formal and Informal Models: structural equivalence vs. name equivalence
Correct Answer: A
Full Explanation: Type equivalence concerns structural equivalence vs. name equivalence. Distinction between syntax (form) and semantics (meaning) is a specific concern within Semantics: Formal and Informal Models. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 10
A reviewer separates Symbol tables from Lifetime of variables. Which allocation of issues is consistent with that distinction?
A. Symbol tables: organization, scope management, lookup strategies, and handling overloaded symbols; Alongside Lifetime of variables within Names, Scoping, Bindings, and Environments: organization, scope management, lookup strategies, and handling overloaded symbols B. Symbol tables: scope vs. lifetime distinction and reference environments (closures and referencing environments); Alongside Lifetime of variables within Names, Scoping, Bindings, and Environments: organization, scope management, lookup strategies, and handling overloaded symbols C. Symbol tables: organization, scope management, lookup strategies, and handling overloaded symbols; Alongside Lifetime of variables within Names, Scoping, Bindings, and Environments: scope vs. lifetime distinction and reference environments (closures and referencing environments) D. Symbol tables: scope vs. lifetime distinction and reference environments (closures and referencing environments); Alongside Lifetime of variables within Names, Scoping, Bindings, and Environments: scope vs. lifetime distinction and reference environments (closures and referencing environments)
Correct Answer: C
Full Explanation: Symbol tables concerns organization, scope management, lookup strategies, and handling overloaded symbols. Lifetime of variables is considered together with scope vs. lifetime distinction and reference environments (closures and referencing environments) in Names, Scoping, Bindings, and Environments. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 11
Which pairing gives an appropriate technical interpretation of both Denotational semantics and Garbage collection mechanisms?
A. Denotational semantics: mathematical domains, semantic functions, and mapping syntactic constructs to mathematical values; Garbage collection mechanisms: mathematical domains, semantic functions, and mapping syntactic constructs to mathematical values B. Denotational semantics: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction; Garbage collection mechanisms: mathematical domains, semantic functions, and mapping syntactic constructs to mathematical values C. Denotational semantics: mathematical domains, semantic functions, and mapping syntactic constructs to mathematical values; Garbage collection mechanisms: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction D. Denotational semantics: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction; Garbage collection mechanisms: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction
Correct Answer: C
Full Explanation: Denotational semantics concerns mathematical domains, semantic functions, and mapping syntactic constructs to mathematical values. Garbage collection mechanisms concerns reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 13
Which pairing gives an appropriate technical interpretation of both Abstract Syntax Trees (ASTs) and Semantics: Formal and Informal Models?
A. Alongside Abstract Syntax Trees (ASTs) within Syntax, Grammar, and Formal Language Theory: Distinction between syntax (form) and semantics (meaning); Semantics: Formal and Informal Models: concrete syntax trees and disambiguation techniques (operator precedence and associativity) B. Alongside Abstract Syntax Trees (ASTs) within Syntax, Grammar, and Formal Language Theory: concrete syntax trees and disambiguation techniques (operator precedence and associativity); Semantics: Formal and Informal Models: Distinction between syntax (form) and semantics (meaning) C. Alongside Abstract Syntax Trees (ASTs) within Syntax, Grammar, and Formal Language Theory: Distinction between syntax (form) and semantics (meaning); Semantics: Formal and Informal Models: Distinction between syntax (form) and semantics (meaning) D. Alongside Abstract Syntax Trees (ASTs) within Syntax, Grammar, and Formal Language Theory: concrete syntax trees and disambiguation techniques (operator precedence and associativity); Semantics: Formal and Informal Models: concrete syntax trees and disambiguation techniques (operator precedence and associativity)
Correct Answer: B
Full Explanation: Abstract Syntax Trees (ASTs) is considered together with concrete syntax trees and disambiguation techniques (operator precedence and associativity) in Syntax, Grammar, and Formal Language Theory. Distinction between syntax (form) and semantics (meaning) is a specific concern within Semantics: Formal and Informal Models. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 14
Which paired description correctly preserves the different emphases of Overview of major programming paradigms and Introduction to Programming Language Concepts and Paradigms?
A. Overview of major programming paradigms: imperative, object-oriented, functional, logic, and concurrent programming; Introduction to Programming Language Concepts and Paradigms: imperative, object-oriented, functional, logic, and concurrent programming B. Overview of major programming paradigms: imperative, object-oriented, functional, logic, and concurrent programming; Introduction to Programming Language Concepts and Paradigms: Compilation vs. interpretation vs. hybrid execution models (bytecode, virtual machines, and Just-In-Time compilation) C. Overview of major programming paradigms: Compilation vs. interpretation vs. hybrid execution models (bytecode, virtual machines, and Just-In-Time compilation); Introduction to Programming Language Concepts and Paradigms: Compilation vs. interpretation vs. hybrid execution models (bytecode, virtual machines, and Just-In-Time compilation) D. Overview of major programming paradigms: Compilation vs. interpretation vs. hybrid execution models (bytecode, virtual machines, and Just-In-Time compilation); Introduction to Programming Language Concepts and Paradigms: imperative, object-oriented, functional, logic, and concurrent programming
Correct Answer: B
Full Explanation: Overview of major programming paradigms concerns imperative, object-oriented, functional, logic, and concurrent programming. Compilation vs. interpretation vs. hybrid execution models (bytecode, virtual machines, and Just-In-Time compilation) is a specific concern within Introduction to Programming Language Concepts and Paradigms. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 16
When separating the specific concerns of Informal semantics and Intermediate representations (IR), which proposed pairing interchanges those concerns?
A. Semantics: Formal and Informal Models: Distinction between syntax (form) and semantics (meaning) B. Axiomatic semantics: Hoare logic, assertions, preconditions, postconditions, loop invariants, and proof of correctness C. Informal semantics: Three-address code, static single assignment (SSA) form, and control flow graphs (CFGs) D. Operational semantics: small-step and big-step operational models, transition systems, and abstract machine execution
Correct Answer: C
Full Explanation: Informal semantics concerns operational descriptions and language reference manuals. Intermediate representations (IR) concerns Three-address code, static single assignment (SSA) form, and control flow graphs (CFGs). Assigning the concern of Intermediate representations (IR) to Informal semantics interchanges their technical emphases
Question 17
Which pairing gives an appropriate technical interpretation of both Type systems and Garbage collection mechanisms?
A. Type systems: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction; Garbage collection mechanisms: static typing vs. dynamic typing, strong typing vs. weak typing, and explicit vs. implicit type inference B. Type systems: static typing vs. dynamic typing, strong typing vs. weak typing, and explicit vs. implicit type inference; Garbage collection mechanisms: static typing vs. dynamic typing, strong typing vs. weak typing, and explicit vs. implicit type inference C. Type systems: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction; Garbage collection mechanisms: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction D. Type systems: static typing vs. dynamic typing, strong typing vs. weak typing, and explicit vs. implicit type inference; Garbage collection mechanisms: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction
Correct Answer: D
Full Explanation: Type systems concerns static typing vs. dynamic typing, strong typing vs. weak typing, and explicit vs. implicit type inference. Garbage collection mechanisms concerns reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 18
A reviewer needs evidence concerning structured programming. Which topic should that evidence address?
A. Control structures B. Language design trade-offs C. programming language evolution D. Names, Scoping, Bindings, and Environments
Correct Answer: A
Full Explanation: Control structures concerns conditional branching, loop constructs, structured programming, and unstructured jumps. The description identifies the specific concern; the other choices address different concerns
Question 19
When separating the specific concerns of Type equivalence and Informal semantics, which proposed pairing interchanges those concerns?
A. Polymorphism: ad-hoc polymorphism (overloading), parametric polymorphism (generics/templates), and subtype polymorphism (inheritance) B. Type equivalence: operational descriptions and language reference manuals C. Data Types, Type Systems, and Type Checking: Type checking algorithms and type inference rules D. Data Types, Type Systems, and Type Checking: Primitive and structured data types (arrays, records, unions, pointers, references, and strings)
Correct Answer: B
Full Explanation: Type equivalence concerns structural equivalence vs. name equivalence. Informal semantics concerns operational descriptions and language reference manuals. Assigning the concern of Informal semantics to Type equivalence interchanges their technical emphases
Question 22
When separating the specific concerns of Code optimization strategies and Scope rules, which proposed pairing interchanges those concerns?
A. Code optimization strategies: static (lexical) scope vs. dynamic scope, nested scopes, and scope blocks B. Intermediate representations (IR): Three-address code, static single assignment (SSA) form, and control flow graphs (CFGs) C. Semantic analysis phase: type checking, context-dependent validation, and attribute grammars D. Code generation: target machine architecture mapping, register allocation, and assembly/machine code emission
Correct Answer: A
Full Explanation: Code optimization strategies concerns dead code elimination, constant folding, common subexpression elimination, and loop optimizations. Scope rules concerns static (lexical) scope vs. dynamic scope, nested scopes, and scope blocks. Assigning the concern of Scope rules to Code optimization strategies interchanges their technical emphases
Question 23
When separating the specific concerns of Garbage collection mechanisms and Parsing strategies, which proposed pairing interchanges those concerns?
A. Garbage collection mechanisms: top-down parsing (LL(k), recursive descent) and bottom-up parsing (LR(k), LALR, shift-reduce parsers) B. Static allocation: stack-based allocation and dynamic heap allocation strategies C. Memory leaks: dangling pointers, memory safety vulnerabilities and safety checks in modern languages D. Memory Management and Runtime Environments: Organization of the runtime storage stack and heap
Correct Answer: A
Full Explanation: Garbage collection mechanisms concerns reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction. Parsing strategies concerns top-down parsing (LL(k), recursive descent) and bottom-up parsing (LR(k), LALR, shift-reduce parsers). Assigning the concern of Parsing strategies to Garbage collection mechanisms interchanges their technical emphases
Question 24
A technical review must address dangling pointers, memory safety vulnerabilities and safety checks in modern languages. Which focus most directly fits that requirement?
A. Static allocation B. Garbage collection mechanisms C. Memory leaks D. Memory Management and Runtime Environments
Correct Answer: C
Full Explanation: Memory leaks is considered together with dangling pointers, memory safety vulnerabilities and safety checks in modern languages in Memory Management and Runtime Environments. The association identifies the relevant area of technical work rather than replacing it with a different task
Question 25
Which pairing gives an appropriate technical interpretation of both Lifetime of variables and Garbage collection mechanisms?
A. Alongside Lifetime of variables within Names, Scoping, Bindings, and Environments: scope vs. lifetime distinction and reference environments (closures and referencing environments); Garbage collection mechanisms: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction B. Alongside Lifetime of variables within Names, Scoping, Bindings, and Environments: scope vs. lifetime distinction and reference environments (closures and referencing environments); Garbage collection mechanisms: scope vs. lifetime distinction and reference environments (closures and referencing environments) C. Alongside Lifetime of variables within Names, Scoping, Bindings, and Environments: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction; Garbage collection mechanisms: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction D. Alongside Lifetime of variables within Names, Scoping, Bindings, and Environments: reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction; Garbage collection mechanisms: scope vs. lifetime distinction and reference environments (closures and referencing environments)
Correct Answer: A
Full Explanation: Lifetime of variables is considered together with scope vs. lifetime distinction and reference environments (closures and referencing environments) in Names, Scoping, Bindings, and Environments. Garbage collection mechanisms concerns reference counting, mark-sweep collectors, copying collectors, generational garbage collection, and compaction. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 28
An explanation confuses Introduction to Programming Language Concepts and Paradigms with Type systems. Which replacement statement restores their respective focuses?
A. Introduction to Programming Language Concepts and Paradigms: Compilation vs. interpretation vs. hybrid execution models (bytecode, virtual machines, and Just-In-Time compilation); Type systems: static typing vs. dynamic typing, strong typing vs. weak typing, and explicit vs. implicit type inference B. Introduction to Programming Language Concepts and Paradigms: static typing vs. dynamic typing, strong typing vs. weak typing, and explicit vs. implicit type inference; Type systems: Compilation vs. interpretation vs. hybrid execution models (bytecode, virtual machines, and Just-In-Time compilation) C. Introduction to Programming Language Concepts and Paradigms: static typing vs. dynamic typing, strong typing vs. weak typing, and explicit vs. implicit type inference; Type systems: static typing vs. dynamic typing, strong typing vs. weak typing, and explicit vs. implicit type inference D. Introduction to Programming Language Concepts and Paradigms: Compilation vs. interpretation vs. hybrid execution models (bytecode, virtual machines, and Just-In-Time compilation); Type systems: Compilation vs. interpretation vs. hybrid execution models (bytecode, virtual machines, and Just-In-Time compilation)
Correct Answer: A
Full Explanation: Compilation vs. interpretation vs. hybrid execution models (bytecode, virtual machines, and Just-In-Time compilation) is a specific concern within Introduction to Programming Language Concepts and Paradigms. Type systems concerns static typing vs. dynamic typing, strong typing vs. weak typing, and explicit vs. implicit type inference. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange
Question 29
Which assignment correctly distinguishes the concerns of Intermediate representations (IR) and Code generation?
A. Intermediate representations (IR): Three-address code, static single assignment (SSA) form, and control flow graphs (CFGs); Code generation: target machine architecture mapping, register allocation, and assembly/machine code emission B. Intermediate representations (IR): Three-address code, static single assignment (SSA) form, and control flow graphs (CFGs); Code generation: Three-address code, static single assignment (SSA) form, and control flow graphs (CFGs) C. Intermediate representations (IR): target machine architecture mapping, register allocation, and assembly/machine code emission; Code generation: Three-address code, static single assignment (SSA) form, and control flow graphs (CFGs) D. Intermediate representations (IR): target machine architecture mapping, register allocation, and assembly/machine code emission; Code generation: target machine architecture mapping, register allocation, and assembly/machine code emission
Correct Answer: A
Full Explanation: Intermediate representations (IR) concerns Three-address code, static single assignment (SSA) form, and control flow graphs (CFGs). Code generation concerns target machine architecture mapping, register allocation, and assembly/machine code emission. Keeping the two concerns attached to their respective concepts avoids a mistaken interchange