programming in c++ jan 2014
TRANSCRIPT
USN
I ,Time: 3 hrs.
2a.b.
c.
3a.b.
c.
4a.
b.
c.
5a.b.
:.:::.Max. Marks:100
06E,C661
(08 Marks)(04 Marks)
x-y(08 Marks)
public, class(10 Marks)(05 Marks)(05 Marks)
that cannot be- ,
(05 Marks) ,,, ,,,,
Sixth Semester B.E. Degree Examination, Dec.2013/Jan.20l4Programming in G++
Note: Answer FIVE full questions, selecting
la.b.
c.
()oo
oo!
3q
de
bo 11
troa.=N(0+
g;i(Jg:eO
:e
o :,1
;Toa)
b0c
,Cg
!(d
3()'iaoi:
s6.tra.o.i
I 'i;aoi, qqE.i!o
>'hbovco0o=o. iitr>:oo-
\r<-cn()oz
Lo
at least TWO questions from esch part.
. PART -ANante any 5 kelrvords which are there in C++ but not in C. (05lvlarks)DistinguishbetweenLvalueandrvaluewithsuitableexamp1es.yT, ir^qtq,,ptg...ssor directive? What are the different types of preprocessor directives usedin C++? f@iu;each with example.
,, .,:..,..1,
'' ' (0e Marks)
State the syntax and explain the various program control loops available in C++. (12 Marks)What is a pointer? Explain with a program. (05 Marks)What is literal constan[? Give an example. (03 Marks)
Explain bitwise and bitset operators giving appropriate examples. (08 Marks)With a C** program to develop mini calculator to perform arithmetic operation. (08 Marks)With flowchart and psedocode, explain the following: i; Switch; ii) goto. (04 Marks)
With a program, explain the call-by-value and call-by-reference parameter technique.(10 Marks)
What is recursion? Write , p-,q;; to find the factorial of a given no. (06 Marks)What is 'inline' function? Explain with syntax. (04 Marks)
What are the exceptiol t *aurg? E"fflflor3..r, types of exceptions.Explain the meaning and syntax of a catch block and try block.
c. Write a C+,+4rogram to realize the expression and handle the exeeption R= Z
..,.,:.:,.
6 a. lVith a simple C++ program, using a class, explain the ter,,,,,," member and friend function.
b. Explain the characteristics of an object-oriented languagesc. Distinguish between a constructor and a destructor.
,,, , 7 a. What is operator overloading? Write the syntax and name theoverloaded.
b. Write a C++ program to add two complex numbers by overloading the operator +. (05 Marks)c. What are new and delete operator? Explain overloaded operator new and delete with
(10 Marks)example.
8 a. What is multiple inheritance? Explain with an example. (10 Marks)b. Explain what is the relationship between class base class, derived class and protected
members, with the help of examples. (10 Marks)
For More Question Papers Visit - www.pediawikiblog.com
For More Question Papers Visit - www.pediawikiblog.com
www.pediawikiblog.com