2019JAN2NDSEMBECS202
2019JAN2NDSEMBECS202
Code:0906
Sub. Code: 6678
1019
B.E. (Computer Science and Engineering)
Second Semester
CS-202: Object Oriented
Programming
Time allowed: 3 Hours
Max. Marks: 50
NOTE: Atempt five questions in all,
including
selecting hwo questions from each Unit. Question
and No. I which is compulsory
x-X-x
II. a) Write a class ACCOUNT that represents your bank account and then use it. The
class should allow you to deposit money; withdraw money, calculate interest
(8%) and send you a message if money is not sufficient in the account. Use
constructor to provide initial amount in the account. Use pointers to access the
class members.
P.T.O.
Sub. Code: 6678
(2)
Write a program to demonstrate
primitive data types?
IV. a) What are primitive and non
Write a program to
find factorial using
Inheritance? List its types.
b)Whatis (5,5)
Inheritance.
UNIT-II
Write a program in C++ to
V. a) Explain class template using multiple parameters.
demonstrate the same.
VI. a) Write a program to copy a text file using command line arguments.
b) Explain seekg0, tellg(). read() with syntax. (6,4)
VII. a) What is exception Handling? How it is implemented in Ct++. Write a program to
nstrate the concept of rethrowing an
exception.
b) What are various file opening modes?
(6,4)
X-x-X