Assignment - 8 - Compiler Design
Assignment - 8 - Compiler Design
Compiler Design
Assignment- Week 8
TYPE OF QUESTION:MCQ
Number ofquestions:10 Total mark: 10 X 1 = 10
a) Lexically
b) Semantically
c) Syntactically
d) All the other options
Ans: b)
2. If the arguments passed to a function call are such that the first and the third
arguments are integers while the second one is real, the type expression for the
argument list can be
a) Statically
b) Dynamically
c) Both statically and dynamically
d) None of the other options
Ans: b)
5. Type of a statement is
a) Void
b) Type error
c) Void or type error
d) None of the other options
Ans: c)
a) Static
b) Dynamic
c) Both static and dynamic
d) None of the other options
Ans: a)
a) Type checking
b) Type coercing
c) Type manipulation
d) None of the given options
Ans: b)
a) A function that takes an integer and a real as arguments and returns an integer
and a real
b) A function that takes an integer and a real as arguments and returns a real
c) A function that takes an integer and a real as arguments and returns an integer
d) A function that takes an integer and a real as arguments and returns a function
that takes an integer and returns a real
Ans: d)
END of Assignment