11(a)(i) Explain object oriented paradigm with all its essential elements.(12)
(ii)State the merits and demerits of object oriented methodology(4)
(or)
(b)Explain the following concepts of object oriented programming in detail with an example (4*4)
(i)Data abstraction
(ii)Inheritance
(iii)Polymorphism
(iv)objects
12(a)(i) Write a C++ program to extract the elements placed in the odd position of the array (8)
(ii)State the rules to be followed while overloading an operator. Write a program to illustrate overloading (8)
(or)
(b)(i)Discuss about polymorphism and its advantage (8)
(ii)Write a C++ program that will give the conditions of environment required,food habits and unique characteristics of pet animals fish and dog.Define a base class called pet that describe any common household pet:two derived classes called fish and dog with items specific to that type of animal.Write pure virtual functions in the base class for operations that are common to types of animals.write a program to test the usage of classes.(8)
13(a)(i)Explain the 4 functions Seekg,Seekp,tellg,tellp used for setting pointers during file operation and show how they are derived from fstream class (6)
(ii)Write a program to append to the contents of a file (10)
(or)
(b)(i)Write a program to write the text in a file. Display the contents of file in reverse order. (8)
(ii)What are the keywords used in C++ for exception handling? Describer their usage with suitable example (8)
14(a)(i)Explain the interface concepts in java (8)
(ii)Write a java program to compute the area of rectangle and square using interface.(8)
(or)
(b)(i)Compare the features of C++ versus Java. (6)
15(a) Explain about exception handling in Java with suitable examples. (16)
(or)
(b)What is thread? State how synchronization is dealt while using multithreading. (16)
|