C Mid 1 Objective Question
C Mid 1 Objective Question
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
1) Does the compiler program translate the whole source code in one step?
a. No
b. Depends on the Compiler
c. Don't Know
d. Yes
a. Parser
b. Code optimizer
c. Code generator
d. Scanner
3) Compiler should report the presence of ____ in source program , in translation process
–
a. Classes
b. Objects
c. Errors
d. Texts
4) Compiler can check ____ error ?
a. Logical
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
b. Syntax
c. Content
d. Both a and b
compilation
d. It can generate stand alone programs that often take less time for
execution
a. Interpreters
b. Assembler
c. Compilers
d. All of these
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
7)
8)
9)
10)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
11)
12)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
13)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
14)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
15)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
16)
17)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
18)
19)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
20)
21)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
22)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
23)
24)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
25)
26)
27)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
28)
29)
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20
30) Compiler should report the presence of ____ in source program , in translation
process –
a. Classes
b. Objects
c. Errors
d. Texts
31) Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?
A.Removing left recursion only
B. Factoring the grammar alone
C. Factoring & left recursion removal
D. None of the above
32) The grammar A → AA | (A) | e is not suitable for predictive-parsing because the grammar is?
a) Ambiguous
b) Left recursive
c) Right recursive
Department of Computer Science and Engineering, Rajasthan Technical University, Kota
B. Tech CSE+IT (V Sem) June -2021 1st Mid Term Test (UD Regular)
TIME: 60+5 Minutes Subject: Compiler Design MaxMarks: 20