C++ program output - MCA question paper

MM.C.A. (Management Faculty) (Semester - II)


IT 21: Object Oriented Programming Using C ++ (2012 Pattern)


Time: 3 Hours] [Max. Marks: 70

Instructions to the candidates:

1 Question 1 is compulsory.
2 Answer any six questions from remaining questions.
3 Figures to the right indicate full marks

Q.1) What will be the output of following program?

a)




Output:

In question paper there is typing mistake as *.* , It should be int **c. Then the output will be as follows.

A=4
B=00000004

b)



Output:

6.25
2.25

c)



Output:

CCCC
LLLL
AAAA
SSSS
SSSS

d)



Output:

some’s destructor
some’s destructor

e)



Output:

x is a private data member of class base ,so you cannot access it. It will give compile time error.
Post your comment