POSTTEST


1. Type checking is normally done during?

a. Lexical Analysis
b. Syntax Analysis
c. Syntax Directed Translation
d. Code optimization

2. Which of the following statements is FALSE?

a. In statically typed languages. each variable in a program has a fixed type
b. In un-typed languages, values do not have any types
c. In dynamically typed languages, variables have no types
d. In all statically typed languages, each variable in a program is associated woth values of only a single type during the execution of the program

3. Which of the following error is expected to recognize by semantic analyzer?

a. Type mismatch
b. Undeclared variable
c. Reserved identifier misuse.
d. All of the above

4. What is the full form of SDT?

a. Syntax Directed Tree
b. Syntax Directed Translation
c. Semantic Direct Translation
d. Similar Distinct Tree

5. What is true about Syntax Directed Definitions?

a. Syntax Directed Definitions + Semantic rules = CFG
b. Syntax Directed Definitions + CFG = Semantic rules
c. CFG + Semantic rules = Syntax Directed Definitions
d. None of the above