0% found this document useful (0 votes)
1 views

Question Bank(C++)

Uploaded by

inrjhony258
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Question Bank(C++)

Uploaded by

inrjhony258
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Model Question Paper(C++)

Unit-1

1. Differentiate between OOPs and Procedure oriented programming.


2. Explain features of OOPs.
3. Differentiate between :-
(a)class and structure (b)C and C++
4. Write a program to implement new and delete operator.
5. Explain bitwise and conditional operator.
6. Write short notes on:-
(a)Tokens (b)scope resolution operator
(c)Output and Input operator (d)Data Types

Unit-2

1. What do you mean by call by value and call by reference ?Explain


with example.
2. Write a program to implement inline function.
3. What do you mean by function overloading ?Explain with example.
4. Write a program to define member function outside the class
definition and inside the class definition.
5. Write short notes on:-
(a)Function prototyping (b) Function with default argument
(c)array of object (d)Friend function

Unit-3
1. What do you mean by Constructor and Destructor

? Explain Default Constructor example.

2. Write a program to implement Parameterized Constructor.


3. Write a program to implement Copy Constructor.
4. What do you mean by operator overloading ?Explain binary
operator overloading with example.
5. Explain unary operator overloading with example.
6. Write short notes on:-
(a) Rules for overloading operator (b) overloading using Friend
Function (c) access modifiers
Unit-4

1. What do you mean by inheritance? Write structure of each


inheritance.
2. Write a program to implement multiple inheritance.
3. Write a program to implement multilevel inheritance.
4. What do you mean by hierarchical inheritance ?Explain hybrid
inheritance with example.
5. Explain virtual base class with example.
6. Write short notes on:-
(a) base class (b) derived class (c)abstract class
Unit-5

1. Differentiate between virtual function and pure virtual function .


2. Write a program to implement virtual function
3. Write a program to implement pure virtual function .
4. What do you mean by file handling? Explain with example.
5. What do you mean by mode in file handling? Explain file stream
class.
6. Write short notes on:-
(a)eof() (b)put() and get()
(c)seekg() and seekp() (d)tellg and tellp()

You might also like