Download PTU B.Tech 2021 Jan IT 3rd Sem 76392 Object Oriented Programming Question Paper

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


Roll No.
Total No. of Pages : 02
Total No. of Questions : 18
B.Tech. (IT) (2018 Batch) (Sem.?3)
OBJECT ORIENTED PROGRAMMING
Subject Code : BTIT-302-18
M.Code : 76392
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
Answer briefly :
1.
What is the use of constructors?
2.
How is (ios::app) mode different from (ios::ate mode)?
3.
What is function overloading?
4.
What is a virtual class?
5.
What is a friend functions?
6.
How is object different from a class?
7.
What is meant by initialization of a variable?
8.
What is polymorphism?
9.
What is advantage of scope resolution operator?
10. Explain the difference between abstraction & data hiding.
1 | M-76392
(S2)- 430


SECTION-B
11. Explain how memory is allocated to classes & objects?
12. How are destructors invoked in derived classes?
13. What is the overloading of function? How does a compiler execute an overloaded
function?
14. What are the various access mechanisms available for inheritance?
15. Why is it necessary for constructors to know the order to declaration in base class?
SECTION-C
16. What are the steps in the design of a program using object oriented techniques.
17. What are the various File Opening modes? Explain various file pointer manipulators
available in CPP. Mention various file error handling functions available in CPP.
18. Write a program to copy the content of two data file to third file. Make use of the
exception handling conditions also.
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-76392
(S2)- 430

This post was last modified on 26 June 2021