PTU B.Tech Electrical Engineering 6th Semester May 2019 72844 OBJECT ORIENTED PROGRAMMING Question Papers

PTU Punjab Technical University B-Tech May 2019 Question Papers 6th Semester Electrical and Electronics Engineering (EEE)-EE-Electrical Engineering

Roll No.
Total No. of Pages : 02
Total No. of Questions : 09
B.Tech.(Electronics Engineering/Electrical & Electronics)
(E-1 2012 Onwards)
(Sem.?6)
OBJECT ORIENTED PROGRAMMING
Subject Code : BTEEE-603C
M.Code : 72844
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. 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

SECTION-B
2.
Write a program to find whether a given number is prime or not using a function.
3.
Explain the concept of Function Overloading and Function Overriding with the help of
examples.
4.
What is a constructor? Differentiate between Default and Parameterized Constructors
with the help of examples.
5.
Explain the concept of Virtual and Pure Virtual Functions with the help of examples.
6.
What is Dynamic Memory Allocation? Explain with the help of an example how to create
and destroy objects dynamically.

SECTION-C
7.
Explain in detail the different features of Object Oriented Programming.
8.
What is polymorphism? Explain in detail the different methods of implementing
polymorphism in C++.
9.
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