Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Explain the access specifiers (public, private, protected) in C++ with examples. How do they affect inheritance?

access-specifiersinheritance
2long10 marks

What is a static member? Explain static data members and static member functions with a suitable C++ program.

static-members
3long10 marks

Explain stream classes in C++. Write a program to demonstrate formatted I/O using manipulators (setw, setprecision, setfill).

streamsio
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Differentiate between class and object with examples.

class-object
5short5 marks

What is the difference between malloc/free and new/delete?

memory
6short5 marks

Explain the concept of containership (composition).

composition
7short5 marks

What is the catch(...) handler used for?

exception-handling
8short5 marks

Write a short note on the friend function.

friend-function
9short5 marks

What is a virtual base class?

inheritance
10short5 marks

Explain the difference between ifstream and ofstream.

file-handling
11short5 marks

What is an inline function and when should it be avoided?

inline-function
12short5 marks

Differentiate between a member function and a friend function.

friend-function