This download link is referred from the post: PTU B.Tech 3rd Semester Last 10 Years 2011-2021 Previous Question Papers|| Punjab Technical University
Roll No.
Total No. of Questions : 18 Total No. of Pages : 02
B.Tech. (CSE) (2018 Batch) (Sem.-3)
--- Content provided by FirstRanker.com ---
OBJECT ORIENTED PROGRAMMING
Subject Code : BTCS-302-18
M.Code : 76437
Time: 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
--- Content provided by FirstRanker.com ---
- 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.
SECTION-A
Write briefly :
--- Content provided by FirstRanker.com ---
- 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 ---
1 | M-76437 (S2)-433
SECTION-B
- 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.
--- Content provided by FirstRanker.com ---
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.
2 | M-76437 (S2)-433
--- Content provided by FirstRanker.com ---
This download link is referred from the post: PTU B.Tech 3rd Semester Last 10 Years 2011-2021 Previous Question Papers|| Punjab Technical University
--- Content provided by FirstRanker.com ---