This download link is referred from the post: PTU B.Tech 3rd Semester Last 10 Years 2011-2021 Previous Question Papers|| Punjab Technical University
Firstranker's choice
--- Content provided by FirstRanker.com ---
Roll No. | Total No. of Pages : 02 | Total No. of Questions : 09 |
B.Tech.(EIE) (2011 & Onwards) (Sem.-3)
OBJECT ORIENTED PROGRAMMING
Subject Code : CS-252
M.Code : 56511
--- Content provided by FirstRanker.com ---
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
1. Answer briefly :
- Describe data types in C++.
- Define Bit Field integer.
- What is the concept of abstract class?
- What do you mean by data hiding in C++?
- Discuss copy constructor.
- What is a scope resolution operator?
- Discuss static binding.
- What is the necessity of exception handling?
- Write the need of file positioning function.
- What do you mean by generic function?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
1| M-56511 (S2)-2507
--- Content provided by FirstRanker.com ---
Firstranker's choice
SECTION-B
--- Content provided by FirstRanker.com ---
2. Write a program in C++ to check whether the given number is prime or not.
3. Give the steps of declaration of user defined data types. Explain with example.
4. What is function overloading? Write an example using C++ to illustrate the concept of function overloading.
5. Explain the following :
- Copy constructor with an example
- Virtual Base Class
--- Content provided by FirstRanker.com ---
6. What is polymorphism? Explain the different types of polymorphism.
SECTION-C
7. Explain public, private and protected access specifier and show their visibility when they are declared in inheritance.
8. Explain in detail about the use of streams and stream classes in C++ by taking an example.
--- Content provided by FirstRanker.com ---
9. What is file handling in C++? Write syntax for closing the file using file operations.
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-56511 (S2)-2507
--- 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