Download PTU B-Tech CSE-IT 2020 Dec 3rd Sem 56595 Object Oriented Programming Using C++ Question Paper

Download PTU (I.K.Gujral Punjab Technical University (IKGPTU)) B-Tech (Bachelor of Technology) (CSE-IT)- Computer Science Engineering -Information Technology 2020 December 3rd Sem 56595 Object Oriented Programming Using C++ Previous Question Paper


Roll No.
Total No. of Pages : 02
Total No. of Questions : 18
B.Tech. (CSE/ECE/IT/Electronics Engg/Electronics & Computer Engg)
(2012 to 2017) (Sem.?3)
OBJECT ORIENTED PROGRAMMING USING C++
Subject Code : BTCS-305
M.Code : 56595
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 an Abstract class?
2.
What is a Friend function? Why is it required?
3.
What are the properties of a static member function?
4.
What is meant by Overloading Operators?
5.
What are the differences between the Accesses specifies private and protected?
6.
Explain briefly what Exception Handling is.
7.
List the syntax of any two functions used to display output to the user in C++.
8.
What are the differences between sequential and random access files?
9.
What are Dangling Pointers?
10. What is the purpose of defining a Destructor function?
1 | M-56595
(S2)-525


SECTION-B
11. What is Object Oriented Programming? Distinguish between Procedure Oriented
Programming and Object Oriented Programming.
12. Write a program in C++ to print first N prime numbers, where N is the integer value
entered by user.
13. Explain the concepts of Function Overloading and Function Overriding with the help of
examples.
14. What is a Template? Explain with the help of an example how to create a Function
Template.
15. Explain the concept of Virtual and Pure Virtual Functions with the help of examples.
SECTION-C
16. Create a class which keeps track of the number of its instances and also assigns unique
identification to each of them. Use static data member, constructors and destructors to
maintain updated information about active objects.
17. What is inheritance? Explain with example how to inherit a class in C++. Also show in
what order the constructors are called in a class hierarchy when an object of a derived
class is created?
18. What are the two methods available for opening the files? Write a program to write
characters onto a file and to read characters from a file.
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-56595
(S2)-525

This post was last modified on 13 February 2021