© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu

B.E/B.Tech DEGREE EXAMINATION Nov/Dec 2007

      Third Semester

Computer Science and Engineering

CS 1204 - Object Oriented Programming

(Regulation 2004)

Time: 3 hours                                                           Maximum marks: 100


Answer ALL questions

PART A (10 x 2 =20 marks)

1.What is object oriented paradigm?

2.What is the use of the scope resolution operator : : in C++?

3.What are the operators of C++ that cannot be overloaded?

4.How does constructor differ from normal functions?

5.What is the default access mode for class members?

6.What is an I/O stream?

7.What is the type of class for which objects cannot be created?

8.What type of inheritance is supported in java?

9.What is java virtual machine?

10.What is multithreading?

PART B (5 x 16 = 80)

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)
         
        

 


bottom