PTU Punjab Technical University B-Tech May 2019 Question Papers 6th Semester Electrical and Electronics Engineering (EEE)-EE-Electrical Engineering
Total No. of Pages : 02
Total No. of Questions : 09
B.Tech.(Electronics Engineering/Electrical & Electronics)
(E-1 2012 Onwards)
OBJECT ORIENTED PROGRAMMING
Subject Code : BTEEE-603C
M.Code : 72844
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
SECTION-B contains FIVE questions carrying FIVE marks each and students
have to attempt any FOUR questions.
SECTION-C contains T HREE questions carrying T EN marks each and students
have to attempt any T WO questions.
Answer briefly :
a. Differentiate between type conversion and type casting.
b. What is a static data member?
c. What is meant by Overloading Operators?
d. What do you understand by memory leaks?
e. What is an Abstract class?
f. What is Function Template?
g. List the syntax of any two functions used to display output to the user in C++.
h. What are the differences between sequential and random access files?
i. What is an Uncaught Exception?
j. What are C++ streams?
1 | M C o d e 7 2 8 4 4
( S 2 ) - 2 5 6 0
Write a program to find whether a given number is prime or not using a function.
Explain the concept of Function Overloading and Function Overriding with the help of
What is a constructor? Differentiate between Default and Parameterized Constructors
with the help of examples.
Explain the concept of Virtual and Pure Virtual Functions with the help of examples.
What is Dynamic Memory Allocation? Explain with the help of an example how to create
and destroy objects dynamically.
Explain in detail the different features of Object Oriented Programming.
What is polymorphism? Explain in detail the different methods of implementing
polymorphism in C++.
Write the different steps involved in processing a file. 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 C o d e 7 2 8 4 4
( S 2 ) - 2 5 6 0
This post was last modified on 04 November 2019