B.TECH - Semester 6 principles of programming languages Question Paper 2020 (sep)
Practice authentic previous year university questions for better exam preparation.
Sample Questions
- Explain the allocation of an object on heap.
- Explain tail recursion. How can we remove tail recursion?
- Explain enumeration data type with example.
- What is a bit vector?
- How is an inline subroutine different from macro?
- What is an exception and how is it handled?
- What is a scope resolution operator? Explain with suitable code snippet.
- What is the difference between traditional programming languages and scripting languages?
- What is a thread? How is it different from a process?
- What is a Just-In-Time (JIT) compiler? What are its advantages over interpretation? ( $\mathbf{1 0} \boldsymbol{\times} \mathbf{4} \boldsymbol{=} \mathbf{4 0}$ Marks) P.T.O. Answer any one full question from each module. Each question carries 20 mar...
- Explain the following: (a) Static Allocation
- Explain the following: (b) Stack-Based Allocation
- Explain the following: (c) Scope rules
- Explain the following: (d) Garbage Collection. ( $\mathbf{4} \boldsymbol{\times} \mathbf{5} \boldsymbol{=} \mathbf{2 0}$ Marks)
- (a) With a suitable example explain code generation in the case of for loops. 10
- (b) Explain Type Systems in detail. 10
- (a) Explain the calling sequence and maintenance of calling stack depicting the basic structure of stack frame.
- (b) What is the difference between normal-order and applicative-order evaluation? What is strict and lazy evaluation?
- (a) Explain search/execution order in Prolog in the context of forward and backward chaining with suitable example.
- (b) Explain Dynamic Method Binding in detail 10
- (a) Explain in detail implementation of Synchronization. ..... 10
- (b) What is virtual Machine? Explain the architecture of the Java VirtualMachine.10
- (a) Explain Late Binding of machine code. What are its advantages? ..... 10
- (b) What is reflection? How does Java support Reflection? ..... 10