MODEL PAPER
SECOND SEMESTER, M. Sc INFORMATION TECHNOLOGY

Paper - III (MIT - 203): Object Oriented Programming
First Semester
MIT - 101
MIT - 102
MIT - 103
MIT - 104
MIT - 105
MIT - 106
MIT - 107
MIT - 108
Second Semester
MIT - 201
MIT - 202
MIT - 204
MIT - 205
MIT - 206
MIT - 207
MIT - 208
Third Semester
MIT - 301
MIT - 302
MIT - 303
MIT - 304
MIT - 305
MIT - 306
MIT - 307
MIT - 308
Fourth Semester

Time: 3hrs Max. Marks: 75
Attempt any five questions.
All questions carry equal marks

  1. Question.

  2. What is Object Oriented Programming? How it differs from Structured Programming? Discuss characteristics of Object Oriented Languages.

  3. Question.

    1. What is function overloading? Illustrate with the help of an example. What precations must be taken while using function overloading?
    2. What is structure? How structures are defined and used? How structures can be nested?

  4. Question.

    1. What are Constructors and Destructors? Illustrate their usage with the help of examples.
    2. What is Operator overloading? Write a distance calss with data members for distance in metres, centimetres and millimetres. The class must be having overloaded operators + and - for addition and subtraction respectively.

  5. Question.

    1. Write a function called revsit() that reverses a string (an array of character). Use a for loop that swaps the first and the last characters, then the second and the next-to-last characters, and so on. The string should be passed to revrsit() as an argument.
    2. What is a friend function? Describe its use with the help of an example.

  6. Question.

    1. What is inheritance? What are different levels of inheritance? Discuss the role of inheritance in reusability of software.
    2. What is a this pointer? When is it used? Explain its use using an appropriate example.

  7. Question.

    1. What are virtual functions? What are pure virtual functions? Discuss with the help of an example.
    2. What are exceptions? How these are handled? Explain with the help of an example.

  8. Question.

    1. What are the command line arguments? Write a program in C++ to display the contents of a text file whose name is supplied by the user on the command line.
    2. What is a container calss? Describe its usage with the help of a C++ program.

  9. Question.

  10. Write short notes on any three: -
    1. Distributed Object Technology.
    2. Generic Classes.
    3. Object Oriented Analysis & Design.
    4. Windows API