Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

What is the difference between structure and class in C++? Explain the role of the 'this' pointer with an example program.

class-objectthis-pointer
2long10 marks

Explain multiple and hybrid inheritance. What is the diamond problem? How is it resolved using virtual base classes? Illustrate with a program.

inheritancevirtual-base
3long10 marks

What are class templates? Write a C++ program to implement a generic 'Stack' class using templates with push and pop operations.

templatesdata-structure
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

What are the benefits of object-oriented programming over procedural programming?

oop-concepts
5short5 marks

Explain the syntax of a class template.

templates
6short5 marks

What is the use of the const keyword with member functions?

syntax
7short5 marks

Differentiate between compile-time and run-time polymorphism.

polymorphism
8short5 marks

Explain the role of the access specifier in inheritance.

inheritance
9short5 marks

What is a nested class? Give an example.

class-object
10short5 marks

Write a short note on operator overloading using friend function.

operator-overloading
11short5 marks

What is the difference between throw and rethrow?

exception-handling
12short5 marks

Explain the use of default and copy constructor together.

constructor