Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Object Oriented: CS/ Bca/ Sem-4 - B'Ca-4O? I 20 13 20L3 Programming With C++

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

14)

RollNo. : ....

: . . .. (. Signature' Inuigilator's

I 2013 cs/ BcA/ sEM-4 | B'CA-4O? 20L3 OBJECT ORIENTED PROGRAMMING WITH C++
TimeAllotted: 3 Hours ' FUUMarlcs :7O

Thefigures in the margin indicatefull marks. Candidatesare requiredto giue their answers in their own words as far as practicable.
GROT'P - A

( MultlPle Choice TYPe Questlons )


1. Choosethe correct alternatives for any ten of,the following : 10 x 1 = 10 i) Friend function cannot overload... a)++b)*
c) == d) + Which of the following enables the code reusability ? a) c) Function overloading Exception handling b) d) Inheritance Template.
I

'. operator.

ii)

iii)

Which operator cannot overload ? a) c) + ++

ir')

The static member function can manipulate only on a) cl

Global data Private data

b) d)

Local data Static data.

4132

I Turn over

cs / BcA/ sEM-4 / BCA-402 I 2013


v) Function Overloading is an example oi a) bi c) d) vi) Runtime polymorphism Compile time polymorphism Pointer to a constant None of these

Template is used for a) b) c) Memory space Programming language Variable value Variable address.

, vii)

d)

Constructor can return value a) c) Not always true Never true b) d) Ahvavs true None of these.

viii) When a function call itself is called a) c) ix) Inline function Recursive lunction Statical Virtual b) d) Virtual function None of these.

To make any value constant in C+* \\'e use a) c) b) d) Const all of these.

x)

Which one of the following is an access specifier ? a) c) Private Static b) d) Virtual None of thses.

xi)

Narriespace is a a) c) Declarative Region Property of C++ b) d) Virtual Class None of these.

4L32

cs / BCA/ SEM-4/ BCA-4O2 I 2OL3


, I thort GROUP - B Answer Type Questions ) 3 x 5 = 15

Ansrver any three of the following.

W-

& rc make a virtual function "public" ? What are the of making a function pure virtual function ? the drfference between classes and structures in

;rtrn-;mq

3.

R'i3 Cr+-

ct

4.

IE' trrcr

L pornter arithmetic ? How is it performed ? Support uith an example. erplain constructor and destructor with suitable

5.

Igcq
Ffi-s-

Ub

is manipulator

? What do you mean by type cast

qpGrdor ? IVhat is copy constructor ?

GROUP - C ( Long Answer Type Questions I Answer any three of the following.
7. aJ
bq

3 x 15 = 45

Drfierentiatebetweenmacros and functions.


I[-hen should one use references, and when should I use pointers ?

Cr

Explarn Function overloading with simple examples. \\-hat do you mean by new and delete operators ?

3 2

d,,
.+la,)

I T\rrn over

cs/ BcAI SEM-4 I 2OI3 I BCA-4O2


B. a) b) What is the order that local objects are destructed ? What is the significance of access specifiers rn a class ? 5

3
c) d) Explain the role of file iostream.h in C+*. Explain the

3
'4

difference between prefui and postfix

incremental operator.

9.

a) b)
c)

What is File handling in C++ ? What is Stream Class ? Describe the stream class levels in C++ with the diagram. What is the difference between private and public ' member variables ? 3' 2+3+2+5

d) 10. a)

Define Friend class with an example.

what are the differences of c and c+* ? \\'hat is class in C++ ? What do you mean by data hiding and data abstraction 4 + 2+2+7 and howisitimplementedin g++ ? 3x5

b)

1 1. Write a short note on any three of the follou:ng : a) b) c) d) e) Template Class Abstract Class Operator Overloading Sequential and Random Access file. Overloading of [] oPerator.

You might also like