Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Which of the following phases are generally not included in the first pass of

ID: 3662210 • Letter: 1

Question

1. Which of the following phases are generally not included in the first pass of most compilers of fully compiled languages? a) Lexical analyzer b)Semantic analyzer c) Syntactic analyzer d) Final code generator d) A JIT compiler 6. Which of the following programs is responsible for combining the object files that result from separate compiled source files? a) A compiler b)An interpreter c) An assembler d) A linker Which of the following phases of a compiler of a fully compiled language is machine de- pendent? a) Syntactic analyzer b) Lexical analyzer c) Final code generator d) Semantic analyzer What kind of an error is an unresolved external reference? 7 a)Syntax error b)Lexical error c) Static semantic error d) Linker error Which of the following is not a compilation error? a)Syntax error b)Static semantic error c) Lexical error d) Logic error 8. When every combination of two language features are valid, what term describes the rela- tionship between those features? a) Combinable b Orthogonal c) Independent d Compatible 4. a) Which of the following languages is the newest? Ada 9. Which of the following languages uses a hybrid implementation? b) Ada d) c) d) C# Java Java 5. Which of the following language translators translates and executes programs each time it is run? a) A compiler b)An interpreter c) An assembler 10. Which of the following is not a correct statement regarding feature interaction? a) Feature interaction is a highly desirable language characteristio b)Feature interaction can cause ambiguities detected by the compiler c) Feature interaction can cause logic errors

Explanation / Answer

1-b
2-b
3-d
4-c
5-b
6-a
7-d
8-d
9-c
10-c
11-c
12-d
13-a
14-a
15-d
16-b
17-d
18-c
19-c
20-b