0% found this document useful (0 votes)
13 views

Btech All 3 Sem CPP and Object Oriented Programming Becs2212 2020

Uploaded by

kanhapadhi2429
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Btech All 3 Sem CPP and Object Oriented Programming Becs2212 2020

Uploaded by

kanhapadhi2429
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

http://www.bputonline.

com

Registration No :

Total Number of Pages : 01 B.Tech


BECS2212
3rd Semester Back Examination 2019-20
C++ AND OBJECT ORIENTED PROGRAMMING
BRANCH : AEIE, BIOMED, BIOTECH, CHEM, CIVIL, ECE, EEE, EIE, ELECTRICAL, ENV,
ETC, FASHION, FAT, IEE, MANUFAC, MANUTECH, MECH, METTA, MINERAL, MINING,
MME, PE, PLASTIC, TEXTILE
Time : 3 Hours
Max Marks : 70
Q.CODE : HB883
Answer Question No.1 which is compulsory and any FIVE from the rest.
The figures in the right hand margin indicate marks.

Q1 Answer the following questions : (2 x 10)


a) How Abstraction is different from Encapsulation?
b) What is Polymorphism?
c) Determine how scope of a variable is differentiated from life of a variable.
d) Specify the use of finalize method?
e) Define the term Object Slicing.
f) Distinguish between overloading and overriding.
g) What are the access modifiers? What is ‘this’ pointer?
h) What do you mean by catch-all exception handler?
i) What are command line arguments?
j) Define the term wild pointer.

Q2 a) Distinguish between static binding and dynamic binding. (5)


b) Write a Friend function for adding two different subject marks and display its (5)
sum using two classes.

Q3 a) What is Inheritance? Explain Multiple and Multilevel Inheritance with suitable (5)
example.
b) Explain copy constructor with an example. (5)

Q4 a) Define the term Virtual Base class and its implementation in C++. How it is used (5)
in function Overloading?
b) What is class template? Write the syntax with an example. (5)

Q5 a) Write a program to read data from a file and then copy it to another file. (5)
b) Discuss the use of exceptional handling in programming. (5)

Q6 List out the rules of operator overloading. Write a program to overload “+” (10)
operator.

Q7 Define virtual function. How pure virtual function is differentiated from it? Explain (10)
with an example.

Q8 Write short Notes on any TWO : (5 x 2)


a) Inline function
b) Templates
c) Dangling pointer

http://www.bputonline.com

You might also like