Download PTU B.Tech 2021 Jan CSE 3rd Sem 76437 Object Oriented Programming Question Paper

Download PTU (Punjab Technical University) B.Tech (Bachelor of Technology) / BE (Bachelor of Engineering) 2021 January CSE 3rd Sem 76437 Object Oriented Programming Previous Question Paper


Roll No.
Total No. of Pages : 02
Total No. of Questions : 18
B.Tech. (CSE) (2018 Batch) (Sem.?3)
OBJECT ORIENTED PROGRAMMING
Subject Code : BTCS-302-18
M.Code : 76437
Time : 3 Hrs. Max. Marks : 60
INST RUCT IONS T O CANDIDAT ES :
1 .
SECT ION-A is COMPULSORY cons is ting of TEN questions carrying TWO marks
each.
2 .
SECT ION-B c ontains F IVE questions c arrying FIVE marks eac h and s tud ents
have to atte mpt any FOUR q ues tions.
3 .
SECT ION-C contains THREE questions carrying T EN marks e ach and s tudents
have to atte mpt any T WO questio ns.
SECTION-A
Write briefly :
1.
Define inheritance. Name various types of inheritance.
2.
What is a pure virtual function?
3.
What is Data hiding? How it is achieved in C++?
4.
What do you understand by array of class objects? Discuss with example.
5.
What is function overloading? Give example.
6.
Discuss the declaration and usage of static data members.
7.
What are basic data types supported by C++?
8.
Compare private, protected and public visibility modes.
9.
Discuss C++ stream classes.
10. What are recursive functions? Give example.
1 | M-76437
(S2)- 433


SECTION-B
11. What is a friend function? Explain its importance with an example.
12. What do you mean by Multi level Inheritance? Explain with the help of an example.
13. Explain various types of constructor with examples.
14. Explain the declaration, accessing and usage of static data members with the help of
suitable examples.
15. Show and explain how to open, close, read and write a file?
SECTION-C
16. Explain various control statements of C++ with suitable examples.
17. Define Polymorphism. Explain its types. How polymorphism is implemented in C++?
Give suitable examples.
18. 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.
2 | M-76437
(S2)- 433

This post was last modified on 26 June 2021