Thursday, May 21, 2009

Question Paper for MCA - December 2006

Question Paper
DECEMBER 2006

Previous Next

MC1652 Object Oriented Programming


PART - A

MARKS 10 x 2 = 20


1.What is an abstraction?

2. State why class is user defined data type?

3. State any two ways as how inline functions speed up processing.

4. Give the syntax of the reference operator.

5. What operators can't be overloaded?

6. What is constructor overloading?

7. Can virtual functions be static? Is it possible to declare virtual function as friend for another class?

8. What is the role of throw and catch statement?

9. List out the uses of abstract type.

10. What is application framework?




PART - B

11. a)Compare the paradigms procedural programming and object oriented programming. (16)


OR


b). Explain the following object oriented features.

(i). Data abstraction

(ii). Concrete types

(iii). Abstract types and state how these features support the key features of object oriented paradigm. (16)






12. a) Write a program to declare friend function in two classes. Calculate the sum of integer data members of both the classes using friend sum() function. (16)


OR


b). i). What are inline functions? Discuss its advantages and disadvantages.(8)

ii). What is reference? Give the syntax of the referencing operator. (8)





13. a) Write a program using function overloading to compute the sum of the matrix and the sum of the diagonal elements of the given 3 x 3 matrix. (16)


OR


b) i). What is the difference between operator overloading and function overloading? (8).

ii). Describe the rules for operator overloading. (8).





14. a) With suitable examples, explain the different froms of inheritance in details (16)


OR



b) (i) What is a template ? Discuss about function template. (8)

(ii) Discuss the functions of keyworks tyr, catch and throw. (8)





15. a) (i) Compare the usage of concrete types and abstract type. (8)

(ii) explain the roles of classes. (8)

OR


b) (i) discuss the uses of handles. (8)

(ii) Write short notes on actions and interface class.(8)

No comments:

Post a Comment