B.TECH - Semester 6 principles of programming languages Question Paper 2021 (dec)
Practice authentic previous year university questions for better exam preparation.
Sample Questions
- What is a frame pointer? What is its use?
- Differentiate between strongly typed and statically typed languages.
- What do you mean by holes in a record? What is packing?
- Distinguish between enumeration controlled and logically controlled loops.
- How are registers saved and restored during a subroutine call?
- Distinguish between private, protected and public class members in C++ with examples.
- What is a Vtable? What is its use?
- Give the common characteristics of scripting languages.
- Describe the behaviour of a test and set instruction? How can it be used to build a spinlock?
- What is symbolic debugging? $$ \text { ( } 10 \times 4=40 \text { Marks) } $$ (Answer one full question from each module)
- (a) Write short notes on expression evaluation. 10
- (b) Differentiate between structured and unstructured flow. 10
- (a) What are dangling references? Explain two mechanisms for avoiding them.
- (b) Explain the different garbage collection techniques.
- Explain the following terms in PROLOG with examples. (a) Clauses
- Explain the following terms in PROLOG with examples. (b) Terms
- Explain the following terms in PROLOG with examples. (c) Facts
- Explain the following terms in PROLOG with examples. (d) Rules
- Explain the following terms in PROLOG with examples. (e) Queries. OR
- (a) Briefly explain multiple inheritance in object oriented languages.
- (b) Write short notes on object initialization and finalization.
- (a) Describe the three ways in which processes commonly name their communication partners.
- (b) Differentiate between explicit and implicit message receipt. OR
- (b) Compare the numeric types of popular scripting languages. thes ways communication pariers.
- (b) Differentiate between explicit and implicit message receipt. OR D ( $3 \times 20=60$ Marks)