Compiler Design Assignment-Week 0 12 Total Mark: 12 X 1 12
Compiler Design Assignment-Week 0 12 Total Mark: 12 X 1 12
Compiler Design
Assignment- Week 0
TYPE OF QUESTION:MCQ
Number ofquestions:12 Total mark: 12 X 1 = 12
Q1.
Q2.
In a computer system, number of compilers for a particular programming language may be
a) Two
b) Three
c) Four
d) Many
ANS: d) Many
Q3.
Natural language constructs are
a) Ambiguous
b) Unambiguous
Q4.
A compiler is defined as
a) Part of system software
Suppose there is a compiler for C language that can generate code for Computer A. Which
of the following statements is true
c) It can be used only for computers with similar processor and operating system
d) It can be used only for computers with similar processor, operating system and
peripherals
ANS: c) It can be used only for computers with similar processor and operating system
Q6.
Which of the following data structures may be good if there are frequent search for data
items followed by insertion and deletion?
a) Array
b) Link List
c) Tree
d) Hash Table
Q8.
Task of an interpreter is to
a) Translate one statement of the program at a time
If an Infinite language is passed to Machine M, the subsidiary which gives a finite solution to
the infinite input tape is ______________
a) Compiler
b) Interpreter
ANS : a) Compiler
Explanation: A Compiler is used to give a finite solution to an infinite phenomenon. Example
of an infinite phenomenon is Language C, etc.
Q10.
Languages of a automata is
a) If it is accepted by automata
b) If it halts
c) If automata touch final state in its life time
d) All language are language of automata
Q12.
END of Assignment