(SEM V) THEORY EXAMINATION 2018-19 PRINCIPLES OF PROGRAMMING LANGUAGES
PRINCIPLES OF PROGRAMMING LANGUAGES (RCS-503)
B.Tech | Semester V | Section-wise Important Questions & Notes
SECTION A – Very Short Answer (2 × 7 = 14 marks)
This section focuses on basic concepts, definitions, and differences. Answers should be short and precise.
Important Questions
Differentiate between Error and Exception. Define Class and Object briefly.
List different times at which Binding can take place. Explain Aliasing for Data Objects with an example.
Differentiate between Widening and Narrowing Conversion.
What is Type Conversion? Define Referencing Environment.
Key Notes
Error: Compile-time or logical mistake; Exception: Runtime abnormal condition.
Class is a blueprint; Object is an instance of a class.
Binding times: Language design time, compile time, load time, run time.
Aliasing occurs when two names refer to the same memory location.
Widening is safe conversion (int → float), Narrowing may cause data loss.
SECTION B – Short Answer (5–7 marks)
This section requires explanation with examples and sometimes diagrams.
Important Questions
Explain Binding and Binding Time with examples.
Describe Aliasing and its advantages and disadvantages.
Explain Type Checking and Type Conversion. Discuss Scope and Lifetime of Variables.
Explain Static and Dynamic Binding.
Key Notes
Binding: Association between an entity and its attribute.
Static binding happens before runtime; Dynamic binding occurs during execution.
Scope refers to visibility of a variable, while lifetime refers to duration in memory.
Type checking ensures correctness of operations at compile or runtime.
SECTION C – Long Answer (Compulsory / High-Weight)
This section tests deep conceptual understanding and program analysis.
Most Important Question
Explain Associations and Referencing Environment.
Also explain different components of the referencing environment with respect to the given program.
Program Given (From Paper)
program main; var A, B, C: real; procedure S1(A: real); var D: real; begin Statements end; begin Statements S1(A); Statements end;
Key Notes for Answer
Association: Relationship between names and memory locations.
Referencing Environment: Set of variable names visible at a given point in the program.
Components include:
Local variables
Non-local variables
Global variables
Parameters
For main: A, B, C are visible.
For S1: Local variable D, parameter A, and global variables are considered based on scope rules.
Explain with static vs dynamic scoping.
Related Notes
BASIC ELECTRICAL ENGINEERING
ENGINEERING PHYSICS THEORY EXAMINATION 2024-25
(SEM I) ENGINEERING CHEMISTRY THEORY EXAMINATION...
THEORY EXAMINATION 2024-25 ENGINEERING MATHEMATICS...
(SEM I) THEORY EXAMINATION 2024-25 ENGINEERING CHE...
(SEM I) THEORY EXAMINATION 2024-25 ENVIRONMENT AND...
Need more notes?
Return to the notes store to keep exploring curated study material.
Back to Notes StoreLatest Blog Posts
Best Home Tutors for Class 12 Science in Dwarka, Delhi
Top Universities in Chennai for Postgraduate Courses with Complete Guide
Best Home Tuition for Competitive Exams in Dwarka, Delhi
Best Online Tutors for Maths in Noida 2026
Best Coaching Centers for UPSC in Rajender Place, Delhi 2026
How to Apply for NEET in Gurugram, Haryana for 2026
Admission Process for BTech at NIT Warangal 2026
Best Home Tutors for JEE in Maharashtra 2026
Meet Our Exceptional Teachers
Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication
Explore Tutors In Your Location
Discover expert tutors in popular areas across India
Discover Elite Educational Institutes
Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies