B.Tech. (Working Professional) III Semester
Examination, June 2025
Grading System (GS) / Working Professional
Max Marks:
70 | Time: 3 Hours
Note:
i) Answer any five questions.
ii) All questions carry equal marks.
a) Define the object model. What are the core elements of an object model in OOP? (Unit 1)
b) What are the main features of the object-oriented paradigm and how do they contribute to its advantages and disadvantages? (Unit 1)
a) How are objects constructed and destroyed in OOP and what are the key concepts involved in this process? (Unit 2)
b) Explain the concept of objects with respect to their state, behaviour and identify. (Unit 2)
a) Explain different types of loops in OOP. Give examples of for, while and do-while loops. (Unit 1)
b) What are static members of a class? How are they different from instance members? (Unit 2)
a) Explain the concept of the "is a" relationship in inheritance. (Unit 3)
b) Compare interfaces and abstract classes in terms of features, use cases and flexibility. (Unit 3)
a) How does a friend class in C++ access the private and protected members of another class and what are the implications of this access? (Unit 4)
b) Differentiate between compile-time (static) and run-time (dynamic) polymorphism with examples. (Unit 4)
What is a friend function in C++? Why and when is it used? What are the limitations of friend functions in terms of encapsulation and security? (Unit 4)
a) How do you handle exceptions in a program and what are some best practices for exception handling? (Unit 5)
b) What is the difference between throwing and catching an exception? Provide a code example. (Unit 5)
Write a short notes (any three)
i) Multi-threading (Unit 5)
ii) Virtual Friend function (Unit 4)
iii) Abstract classes (Unit 3)
iv) Data collection (Unit 5)
v) Type conversion (Unit 1)