munotes® Sign in

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.

System Programming And Compiler Construction Question Paper, 2022.pdf
CMPN · 776 KB · 1 May 2025

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 solutions

Q1 Q1 (Choose the correct option for following questions, all compulsory, equal marks, 2 marks each) 20 Marks

  1. 1. Forward Reference Table (FRT) is arranged like. Option A: Linked List. Option B: Stack. Option C: Queue. Option D: Double Linked List. 2 marks
    Read the model answer
  2. 2. Compiler can check ________ error. Option A: Logical. Option B: Syntax. Option C: Both A and B. Option D: Content. 2 marks
    Read the model answer
  3. 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 marks
    Read the model answer
  4. 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 marks
    Read the model answer
  5. 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 marks
    Read the model answer
  6. 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 marks
    Read the model answer
  7. 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 marks
    Read the model answer
  8. 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 marks
    Read the model answer
  9. 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 marks
    Read the model answer
  10. 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 marks
    Read the model answer

Q2 Q2 (Solve any Four out of Six, 5 marks each) 20 Marks

  1. A Describe Conditional Macro expansion with suitable example 5 marks
    Read the model answer
  2. B Explain the role of code optimization in compiler design 5 marks
    Read the model answer
  3. C Differentiate between Application Program and System Program 5 marks
    Read the model answer
  4. D Remove the left recursion from the grammar E -> E(T)|T ; T -> T(F)|F ; F -> id 5 marks
    Read the model answer
  5. E Explain Forward Reference Problem and how it is handled in assembler design 5 marks
    Read the model answer
  6. F Write note on Dynamic linking and Loading 5 marks
    Read the model answer

Q3 A Q3 A (Solve any Two, 5 marks each) 10 Marks

  1. i Explain Synthesized and inherited attributes 5 marks
    Read the model answer
  2. ii What are the types of Assembly Language statements? Explain. 5 marks
    Read the model answer
  3. iii Describe MNT, MDT and ALA with respect to macro processor with example 5 marks
    Read the model answer

Q3 B Q3 B (Solve any One, 10 marks) 10 Marks

  1. i Explain databases used in Two pass assembler design with suitable example 10 marks
    Read the model answer
  2. 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 marks
    Read the model answer

Q4 A Q4 A (Solve any Two, 5 marks each) 10 Marks

  1. i Explain the different ways of parameter passing in macros. 5 marks
    Read the model answer
  2. ii Explain the role of Finite automata in compiler design 5 marks
    Read the model answer
  3. iii Explain different issues in code generation. 5 marks
    Read the model answer

Q4 B Q4 B (Solve any One, 10 marks) 10 Marks

  1. i Explain working of Direct Linking loader with example showing entries in different database built by DLL 10 marks
    Read the model answer
  2. ii What is the need of Intermediate Code Generation? Explain any 2 intermediate code generation forms with example 10 marks
    Read the model answer

Read from the scan above, so a character or two may differ. The scan is the original.

Issue

Something wrong on this page? Report it and we will check it against the scan.

Quick Help

No. The full paper opens straight away, with no login and nothing to pay.

Something wrong with this paper? Report it.

Connected Papers
Engineering / B.E. (Computer Engineering) · 250 papers
Browse all →
Questions? Email contact@munotes.in
Done!
Done!