CS-403 (N) B.E. (Forth Semester) 
EXAMINATION, June-2011
OBJECT ORIENTED TECHNOLOGY CS-403
Time : Three Hours     Max. Marks : 100      Min Marks : 35
Note :Thus attempt five questions in all .All questions carry equal marks. Assume suitable data whenever necessary .
Unit-I
Q.1  (a) Discuss the non-object oriented features of C++ with programming examples. Also state the merits and demerits of object oriented methodology .  7
       (b) Explain Inline functions & the situations where inline expansion may not work and why?  7
       (c) What is the main drawback of structured programming ?How OOP address this issue? 6
                                                                                 Or
Q.2 (a) Define the following terms & give an example to show its realization in C++:10
            (i) Encapsulation
           (ii) Class variables and class functions
           (iii) Repeated inheritance
           (iv) Overloading
      (b) What is the differences between register variable and automatic variable ? Explain with example. What are other storage classes for variables ?     10
                                                                              Unit-II
Q.3 (a) Discuss the advantages of scope resolution operator. Is it useful when the member data of a class whose member function is invoked in derived class is public or private ?    10
      (b) Explain with example as to how would you be able to identify objects and classes in program ?    10
                                                                                  Or
Q.4 (a) Write a C++ program to convert the polar co-ordinates into rectangular co-ordinates. (Hint : Polar co-ordinates (radius, angle) and rectangular co-ordinates (x, y) where x= r*cos(angle) and y=r*sin(angle)      10
      (b) Discuss in brief the following :
           (i) Association
          (ii) Recursive association
          (iii) Many to many association
          (iv) Argument passing
                                                                               Unit-III
Q.5  (a) Discuss the role of inheritance in object oriented programming . What is public and private derivation ? 10
       (b) Explain the concept of operator-overloading . Illustrate operator-overloading concept to concatenate strings ? 10
                                                                                   Or
Q.6  (a) Explain the meaning of polymorphism . How is polymorphism achived at run time ? Explain with coding ?  10
       (b) Define a class Date with three variables for day, month and year.

            (i) Overload the operators << , >> to read and print Date object.

            (ii) Overload > to compare two dates.



           Unit-IV

Q.7  (a) Describe how can files be opened and closed explicitly in a program ?     6
        (b) Write a Program which asks for a file name from the keyboard , opens a file with that name for output reads a line from the keyboard character by character and write the line ontothe file ?     7
      (c) The keyword "virtual" can be used for functions as well as classes in C++ . Explain the two different uses. Give an example of each.   7
                                                                                     Or
Q.8  (a) Explain the concept of  streams in C++ and give the hierarchy of different types of stream ?   10
       (b) Write a program to create a file to store the information "Data Structure" , In the same program, read the information in the created file ?   10                                                                      
 Unit-V 
Q.9 (a) Explain method Overloading and method overriding with giving suitable example  ?   5
      (b) What is the need for and advantages of templates ? What is the difference between functions templates and class templates ?     5      
     (c) Write a program to read three numbers x, y, and z and evaluate R given by : 10             
                       R = z / (x-y)
          Use exception handling to throw an exception in case division by zero is attempted ?  
                                                                                     Or
Q.10 (i) Compare the features of C++ verse Java .       5
         (ii) Define classes and methods in Java                5
         (iii) Explain the interface concepts in Java.            5
         (iv) What is the purpose of package ? Name some packages. 5

META TAGS:-RGPV 4TH SEMESTER PAPERS I RGPV 4TH SEM PREVIOUS YEAR PAPERS I RGPV COMPUTER SCIENCE 4TH SEM PAPERS I RGPV CS 4TH SEM OOT PAPERS I OBJECT ORIENTED THEORY PREVIOUS YEAR PAPERS I RGPV CS 4TH SEM OOT PREVIOUS YEAR PAPERS I RGPV CS 4TH SEM OOT OLD PAPERS I RGPV CS 4TH SEM OOT GUESS PAPERS I RGPV OOT OLD PAPERS I RGTU CS 4TH SEM PAPERS I RGTU 4TH SEM CS OOT PREVIOUS YEAR PAPERS I RGTU CS OOT PAPERS I OBJECT ORIENTED PROGRAMMING PREVIOUS YEAR PAPERS I CS 4TH SEM PREVIOUS YEAR PAPERS I RGPV COMPUTER SCIENCE PREVIOUS YEAR PAPER I RGTU OOT OLD YEAR PAPERS I RGTU OOT LAST YEAR PAPERS I RGTU CS 4TH SEM OOT PAPERS I DOWNLOAD RGPV CS 4TH SEM OOT PAPERS

0 comments

Post a Comment

Followers