0% found this document useful (0 votes)
6 views2 pages

2019JAN2NDSEMBECS202

Uploaded by

bkcreation65
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

2019JAN2NDSEMBECS202

Uploaded by

bkcreation65
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Exam.

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

I. Attempt the following:-


a) What is voidpointer?
b) How data hiding is implemented in OOPS?
c)Why Inline functions are called macros?
d) What is generic programming?
e) Name some operators that can't be overloaded.
1) What is Containership?
g)What is the use of THIS' pointer?
h) Explain Pure Virtual Functions.
i) Name two new data types introduced in C++.
j)What is meant by ofstream in C++?
(10x1)
UNIT-I

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.

b) How Object Oriented Programming is different from Module Programming?


(7,3)
III. a) Write a program to exchange private variables between two classes using concept
of Friend function and pass the values by reference.

b) Write a program to overload logical operator for string concatenation.


(5,5)

P.T.O.
Sub. Code: 6678

(2)
Write a program to demonstrate
primitive data types?
IV. a) What are primitive and non

non-primitive to non- primitive data type.

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.

b) List different types of STL containers. (5,5)

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy