a) It is done at compile-time
b) It is done at link-time
c) It is done at load-time
d) It is done at run-time
2) Syntax refers to the…
a) Tokens of a language
b) Abstract Syntax Tree of a language
c) Grammar rules of a language
d) Meaning behind a language
3) If something is done statically, this means…
a) It is done at compile-time
b) It is done at link-time
c) It is done at load-time
d) It is done at run-time
4) Semantics refers to the…
a) IR of a language
b) Control Flow Graph of a language
c) Grammar rules of a language
d) Meaning behind a language
5) Which phase is *not* part of the back-end of a typical compiler:
a) Semantic analyzer
b) Code generator
c) Optimizer
d) Scanner
6) Your talking with a friend at another university, and he/she mentions reading about compilers and data
flow analysis. Data flow analysis is based on what kind of internal representation?
a) Context Free Grammar
b) Control Flow Graph
c) Abstract Syntax Tree
d) Finite State Machine
7) Continuation of previous question… What is data flow analysis used for?
a) Detect various syntax errors
b) Detect various lexical errors
c) Detect various semantic errors
d) Symbol table construction
No comments:
Post a Comment