For More Question Papers Visit - www.pediawikiblog.com 108C665

USN

Sixth Semester B.E. Degree

.2015/,1an"2016

Programm Progamming in C++ Note: Answer any FIVE full questions, selecting stlesst TWO questions from each part" PAR.T

;r) -*Li troo .= c\

9il

Distinguish between static memory allocation and dynamic memory List the salient features of object oriented programming. Explain the following : #elif, # if def.

3 a"

Write the O/P of followings i) # define square(x) x * x void main( ) {

l

-o >r

ii) void main( ) t{

H=

,()

(08 Manks)

Write a C++ program to read integer numbers from keyboard until user enters zero and sum the even nur:rbers only and display the result. (05 Marks)

int i: 64lsquare (4) cout<
OO

:

:

int num, a: 15; num:----a--a

cout<(num{
.p

-=

{s6 Marksi (04 Marks)

What are variables? Describe with an example. {s6 Marks} Explain reference types and distinguish between reference tlpes and pointer types.

rj

iii) void rnain( I

)

I

int i;

w w

o= to atE 6c

(04 Marks) (06 N{arks)

2 a. b. c.

o:]

e-o.r o.a

allocation.

ib l

a.)

*.)

b. c. d.

ik

d

What are conlments? Explain different tlpes of comments in C++ with an exarnple"

ia w

a)

a.

ed

E

*A

og .co

(J

m

l\{ax. N,{arks:100

Tinae: 3 hrs.

for(i:0;I<5; i++)

oD-

troo '-a

b.

tt int i: 10; print("o%d", i); i++; ittt (06 Marks) Write a program to find the minimum of three numbers using conditional operator.

c.

Describe : break, continue and goto statements.

(S9

Describe call by value and call by reference with an example. Describe inline function with an example. Write a program to calculate sum of first n integers using recursion,.

(08 Marks)

6= !lo

U:

w

U< *C\ d)

z (o

(05 Marks)

lltarks)

o

0.

4 a. b. c.

I of 2

For More Question Papers Visit - www.pediawikiblog.com

{05 Marks) (&6 Marks)

For More Question Papers Visit - www.pediawikiblog.com 10E,C665

PART _ B

5a.

Describe exception handling in C++ with an example. Describe : Rethrow ii) Catch all handler.

b.

'

Write

a C++ program using class and explain

m

i)

(10 Marks)

public, private, object, class mernbers.

co

6a.

(10 Marks)

(10 Marks) (10 Marks)

a. b.

Discuss the principle of operator overioading with an example. Write a program to overload both prefix and postfix increment operator.

a. b.

Describe hase class access control with an example. With a program illustrate inheritance of multiple base classes.

ib

lo

g.

b.

Explain ftier:id function and friend class, with exarnple.

w

w w

.p

ed

ia

w

ik

* * *i'.,rB.*

2 of2

For More Question Papers Visit - www.pediawikiblog.com

(10 Marks) (10 Marks) (08 Marks) (12 Marks)

Programming in C++ Jan 2016 (2010 Scheme).pdf

i) # define square(x) x * x. void main( ) ... Describe hase class access control with an example. b. ... Displaying Programming in C++ Jan 2016 (2010 Scheme).pdf.

813KB Sizes 1 Downloads 171 Views

Recommend Documents

Programming in C++ Jan 2016 (2010 Scheme).pdf
Write a C++ program using class and explain public, private, object, class. Explain ftier:id function and friend class, with exarnple. (10 Marks). (10 Marks).

C# Programming & .Net Jan 2016 (2010 Scheme).pdf
www.pediawikiblog.com. Page 1. C# Programming & .Net Jan 2016 (2010 Scheme).pdf. C# Programming & .Net Jan 2016 (2010 Scheme).pdf. Open. Extract.

Programming in C & Data Structures Jan 2016 - 2015 Scheme.pdf ...
Programming in G ad Data ... Write a C program which takes as input p, t, r. ... Displaying Programming in C & Data Structures Jan 2016 - 2015 Scheme.pdf.

Programming in C++ July 2016 (2010 Scheme).pdf
www.pediawikiblog.com. Page 1 of 1. Programming in C++ July 2016 (2010 Scheme).pdf. Programming in C++ July 2016 (2010 Scheme).pdf. Open. Extract.

Programming the Web Jan 2016 (2010 Scheme).pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Main menu.

Mechatronics & Microprocessor Jan 2016 (2010 Scheme).pdf ...
Expiain static and dynamic characteristics of sensors. Explain workirlg principle of Hall effect sensor. Deftne following terms: i) Hysteresis error. ii) Repeatability.

Non Conventional Energy Sources Jan 2016 (2010 Scheme).pdf ...
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Main menu.

Power Electronics Jan 2016 (2010 Scheme).pdf
Z b. Explain the working of single phase semiconvert with neai circuit and waveforms. Derive ... Effiin the working of transistorized current source inverter.

Hydraulics & Pneumatics Jan 2016 (2010 Scheme).pdf
cylinder using a 412 solonoid acfuated spring retum cylinder. ^&-, (10 Marks). b. Explain the cylinder pneumatic circuit and its motion control diagraqffi (10 Marks).

Advanced Concrete Technology Jan 2016 (2010 Scheme).pdf ...
Page 1 of 2. USN 10cv81. Eighth Semester B.E. Degree Examination, Dec.2015 I J an.20l6. Advanced Goncrete Technology. Time: 3 hrs. Max. Marks:100.

Computer Networks 2 Jan 2016 (2010 Scheme).pdf
Try one of the apps below to open or edit this item. Computer Networks 2 Jan 2016 (2010 Scheme).pdf. Computer Networks 2 Jan 2016 (2010 Scheme).pdf.

Operations Research Jan 2016 (2010 Scheme).pdf
Following data fer. a. Draw the ... by simplex / Big-M method? If yes, ... You are given the following data regarding the processing times of some jobs on three.