Acharya Nagarjuna University (ANU) 2006 M.C.A II - Programming with C++ - Question Paper
M.C.A (Previous) Degree Examination, 2006
Paper II - Programming with C++
2
(DMCA 102)
M.C.A.(Previous) DEGREE EXAMINATION, MAY2006 PAPER - II - PROGRAMMING WITH C++
Time: Three hours Maximum: 75 mar
SECTION A - (3 X 15 = 45 marks)
Answer any THREE of the following
1. (a) What is 'call by value1 and 'call by reference? Explain each with an example. (7) (b) Write a C++ program to multiply two matrices. (8)
2. (a) What is overloading and overriding? Explain with an example. (7) (b) W rite a bo ut a n y five stri ng I ib ra ry f u n ctio n s alo n g with syste m an d u sa ge. (8)
3. (a) What are Virtual functions and Abstract classes? Explain with an example. (8) (b) W hat are p ointe rs a n d d yn am i c arrays ? Ex pla i n with a n exam pi e. (7)
4. (a) W hat a re class te m p lates a nd f u ncti on tem plate s? D iffe re nti ate wit h an exa m p le (b) Write C++ program explaining binary search.
5. (a) Explain about various conditional statements in C++ with an example. (7) (b) Write a program to overload ++ operator. (8)
6. (a) Explain what is the use of copy constructor with the example. (7)
(b) Explain what is object oriented concepts are available in C++. (8)
SECTION - B - (5 X 5 = 25 marks}
Answer any FIVE of the following
7. Write a C++ program to find the area of a triang le given three sides a. b, c by validating sides.
8. Write a C++ program for bubble sort.
9. Discuss about continue and break statements in C++ and differentiate.
10. Write a program using functions to find permutation function P(jt fc)=
(n-*)!
11. What are static data members and static member functions? Explain.
12. Write a program to append a string to another string.
13. What is iterator class? Explain with an example.
14. List and explain about any four library functions of mathematical and string each.
SECTION C - (5 X 1 = 5 marks)
Answer any ALL of the following
15. What is inline function?
16. What is the difference between reference and pointer variable?
17. What is protected data?
18. W hat is composition?
19. What is vector? Give an example.
Attachment: |
Earning: Approval pending. |