Engineering B.E. (Computer Engineering) Sem 6 System Programming and Compiler Construction 2022 Summer Set 2 Question Paper - Mumbai University | munotes
This paper is solved: read the model answers.
Loading PDF...
Questions asked in this paper
Solved paper All 26 questions answered in full Exam-ready answers, the reasoning behind each one, and what the examiner is looking for. Open the solutionsQ1 Q1 (Choose the correct option for following questions, all compulsory, equal marks, 2 marks each) 20 Marks
-
1. Forward Reference Table (FRT) is arranged like. Option A: Linked List. Option B: Stack. Option C: Queue. Option D: Double Linked List. 2 marksRead the model answer
-
2. Compiler can check ________ error. Option A: Logical. Option B: Syntax. Option C: Both A and B. Option D: Content. 2 marksRead the model answer
-
3. Three address statement is abstract form of ________. Option A: Source program. Option B: Target program. Option C: Intermediate code. Option D: Either A or C. 2 marksRead the model answer
-
4. ________ is designed to solve a specific problem or to do a specific task. Option A: Application Software. Option B: System Software. Option C: Utility Software. Option D: User. 2 marksRead the model answer
-
5. In a two-pass assembler, the task of the Pass II is to. Option A: Separate the symbol, mnemonic opcode and operand fields. Option B: Build the symbol table. Option C: Construct intermediate code. Option D: Synthesize the target program. 2 marksRead the model answer
-
6. We can optimize code by. Option A: Common subprogram. Option B: Loop declaration. Option C: Dead code elimination. Option D: Copy intermediate loop. 2 marksRead the model answer
-
7. A macro can be defined at. Option A: Beginning of a program. Option B: End of a program. Option C: Anywhere in a program. Option D: After initialization of program. 2 marksRead the model answer
-
8. Match all items in Group 1 with correct options from those given in Group 2. Group1: P. Regular expression ; Q. Pushdown automata ; R. Dataflow analysis ; S. Register allocation. Group2: 1. Syntax analysis ; 2. Code generation ; 3. Lexical analysis ; 4. Code optimization. Option A: P-4. Q-1, R-2, S-3. Option B: P-3, Q-1, R-4, S-2. Option C: P-3, Q-4, R-1, S-2. Option D: P-2, Q-1, R-4, S-3. 2 marksRead the model answer
-
9. Nested Macro calls are expanded using the. Option A: FIFO rule (First in first out). Option B: LIFO (Last in First out). Option C: FILO rule (First in last out). Option D: None of the above. 2 marksRead the model answer
-
10. Which of the following can be accessed by the transfer vector while in linking? Option A: External data segments. Option B: External sub-routines. Option C: Data located in other procedure. Option D: None of the mentioned. 2 marksRead the model answer
Q2 Q2 (Solve any Four out of Six, 5 marks each) 20 Marks
-
A Describe Conditional Macro expansion with suitable example 5 marksRead the model answer
-
B Explain the role of code optimization in compiler design 5 marksRead the model answer
-
C Differentiate between Application Program and System Program 5 marksRead the model answer
-
D Remove the left recursion from the grammar E -> E(T)|T ; T -> T(F)|F ; F -> id 5 marksRead the model answer
-
E Explain Forward Reference Problem and how it is handled in assembler design 5 marksRead the model answer
-
F Write note on Dynamic linking and Loading 5 marksRead the model answer
Q3 A Q3 A (Solve any Two, 5 marks each) 10 Marks
-
i Explain Synthesized and inherited attributes 5 marksRead the model answer
-
ii What are the types of Assembly Language statements? Explain. 5 marksRead the model answer
-
iii Describe MNT, MDT and ALA with respect to macro processor with example 5 marksRead the model answer
Q3 B Q3 B (Solve any One, 10 marks) 10 Marks
-
i Explain databases used in Two pass assembler design with suitable example 10 marksRead the model answer
-
ii Construct LL(1) Parsing table S -> aBDh ; B -> Cc ; C -> bC | ε ; D -> EF ; E -> g | ε ; F -> f | ε. Check whether the string 'acbgh' is valid or not. 10 marksRead the model answer
Q4 A Q4 A (Solve any Two, 5 marks each) 10 Marks
-
i Explain the different ways of parameter passing in macros. 5 marksRead the model answer
-
ii Explain the role of Finite automata in compiler design 5 marksRead the model answer
-
iii Explain different issues in code generation. 5 marksRead the model answer
Q4 B Q4 B (Solve any One, 10 marks) 10 Marks
-
i Explain working of Direct Linking loader with example showing entries in different database built by DLL 10 marksRead the model answer
-
ii What is the need of Intermediate Code Generation? Explain any 2 intermediate code generation forms with example 10 marksRead the model answer
Read from the scan above, so a character or two may differ. The scan is the original.
What do you need?
Tap one.
The answers are on this page
You can read the first answer here. The box further down shows how to read all of them.
Read it here, any time
We keep checking and updating our papers and notes, and adding more. A saved copy would be an old version. Reading on munotes.in always gives you the latest one.
I paid, but I can't open it
Please type an email, or a 10-digit phone number.
Done
If we find your payment, we send a link to the email you paid with. Open it to read.
Check your email in 2 minutes. Also check Spam.
No email after 10 minutes?
Something else
Please write a little more, so we can help.
Your email app opens with this. You can add more there. We reply by email.
Something wrong on this page? Report it and we will check it against the scan.
Quick Help
Related Resources
Something wrong with this paper? Report it.