Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Define class and object. Write a C++ program to create a class 'Student' with data members and member functions to read and display student information.

class-object
2long10 marks

What is inheritance? Explain the different types of inheritance with diagrams. Write a program to demonstrate multilevel inheritance.

inheritance
3long10 marks

What are virtual functions? Explain runtime polymorphism with a C++ program demonstrating the use of virtual functions and pointers to base class.

polymorphismvirtual-function
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

What is encapsulation? Why is it important?

encapsulation
5short5 marks

Define a pointer. How are objects accessed using pointers?

pointers
6short5 marks

What is a pure virtual function?

polymorphism
7short5 marks

Differentiate between a base class and a derived class.

inheritance
8short5 marks

What is the use of the 'protected' access specifier?

access-specifiers
9short5 marks

Write a short note on constructor overloading.

constructor
10short5 marks

What is a reference variable? Give an example.

references
11short5 marks

Explain the difference between struct and union.

data-types
12short5 marks

What is a manipulator? Name any two.

io