You are on page 1of 16

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

2) Which tool is used for grouping of characters in tokens in the compiler?

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

b. Syntax

c. Content
d. Both a and b

5) A compiler is preferable to an interpreter because

a. Debugging can be faster and easier

b. If one changes a statement, only that statement needs re -

compilation

c. It is much helpful in the initial stages of program development

d. It can generate stand alone programs that often take less time for

execution

6) Which of the following is language processor?

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.

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

Objective Types Questions (1 Marks Each)


Instruction: 1) Attempt any 30 Questions.
2) No Extra time will be given so avoid useless conversation with your friend.
3) I hope you will not cheat in exam and will not ruin your friend’s potential and future by showing
him/her your answers.
4) Remember no one is watching you except the one from you can never hide, he is watching. Once a
cheater always a repeater.
5) you can see your notes but try to find the answers on your own.
d) An operator grammar

33) LR stands for


(a) Left to right
(b) Left to right reduction
(c) Right to left
(d) Left to right and right most derivation in reverse

You might also like