Roll No. __________________________________________________ Total No. of Pages : 02
Total No. of Questions : 18 B.Tech. (CSE) (2018 Batch) (Sem.-3)
OBJECT ORIENTED PROGRAMMING
--- Content provided by FirstRanker.com ---
Subject Code : BTCS-302-18
M.Code : 76437
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
- SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each.
- SECTION-B contains FIVE questions carrying FIVE marks each and students have to attempt any FOUR questions.
- SECTION-C contains THREE questions carrying TEN marks each and students have to attempt any TWO questions.
--- Content provided by FirstRanker.com ---
SECTION-A
Write briefly :
- Define inheritance. Name various types of inheritance.
- What is a pure virtual function?
- What is Data hiding? How it is achieved in C++?
- What do you understand by array of class objects? Discuss with example.
- What is function overloading? Give example.
- Discuss the declaration and usage of static data members.
- What are basic data types supported by C++?
- Compare private, protected and public visibility modes.
- Discuss C++ stream classes.
- What are recursive functions? Give example.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
--- Content provided by FirstRanker.com ---
- What is a friend function? Explain its importance with an example.
- What do you mean by Multi level Inheritance? Explain with the help of an example.
- Explain various types of constructor with examples.
- Explain the declaration, accessing and usage of static data members with the help of suitable examples.
- Show and explain how to open, close, read and write a file?
--- Content provided by FirstRanker.com ---
SECTION-C
- Explain various control statements of C++ with suitable examples.
- Define Polymorphism. Explain its types. How polymorphism is implemented in C++? Give suitable examples.
- What do you mean by exception handling in C++? Write a program that throws an arithmetic exception as and when a number input is a negative number.
NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any page of Answer Sheet will lead to UMC against the Student.
--- Content provided by FirstRanker.com ---
For more previous year question papers visit: FirstRanker.com
This download link is referred from the post: PTU B.Tech 2021 January Previous Question Papers || PTU Punjab Technical University
--- Content provided by FirstRanker.com ---