PTU Punjab Technical University B-Tech May 2019 Question Papers 3rd Semester May Electronic and Communication Engineering (ECE)
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
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
1.
SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
each.
2.
SECTION-B contains FIVE questions carrying FIVE marks each and students
have to attempt any FOUR questions.
3.
SECTION-C contains T HREE questions carrying T EN marks each and students
have to attempt any T WO questions.
SECTION-A
1.
Answer briefly :
a) Describe data types in C++.
b) Define Bit Field integer.
c) What is the concept of abstract class?
d) What do you mean by data hiding in C++?
e) Discuss copy constructor.
f) What is a scope of resolution operator?
g) Discuss static binding.
h) What is the necessity of exception handling?
i) Write the need of file positioning function.
j) What do you mean by generic function?
1 | M-56511
(S2)-2507
SECTION-B
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 :
a) Copy constructor with an example
b) Virtual Base Class
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.
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
This post was last modified on 04 November 2019