How To Exam?

a knowledge trading engine...


SKR Engineering College 2007 B.E Information Technology IF 144 - OBJECT ORIENTED PROGRAMMING - Question Paper

Wednesday, 06 February 2013 03:50Web

SKR ENGINEERING COLLEGE
DEPARTMENT OF info TECHNOLOGY

IF 144 - OBJECT ORIENTED PROGRAMMING

MODEL examination

MAXIMUM MARKS: 100 TIME DURATION: three Hrs
ans ALL ques..
PART A - (10 ´ two = 20 marks)
1. How is data hiding implemented in C++?
2. Compare overloading and overriding of functions.
3. What are the functions of new and delete operators?
4. What is the need for friend functions?
5. Why do we need virtual functions?
6. How do you overload a postfix and a prefix increment operator?
7. When do we declare a coust member function?
8. What are the properties of a static class member?
9. What does system out represent in Java? How is it used?
10. What is an abstract method in Java?
PART B - (5 ´ 16 = 80 marks)
11. What are the basic principles of Object Oriented Programming? discuss with examples, how they are implemented in C++?
1) (a) Create a class vector to represent an 1 dimensional vector with addition operator + to represent and a scalar product operator to represent . Use them in a main program.
Or
(b) Can the insertion operator << and the extraction operator >> be members of a class? provide examples to justify your ans.
1. (a) What are the various types of inheritance? discuss them with suitable examples.
Or
(b) Define a class Cartesian to represent a point in Cartesian co-ordinates and class polar to represent it in polar co-ordinates . Use constructor conversion and operator conversion functions in class Cartesian to convert object of 1 kind into a different. Use them in a main program.
2. (a) Write a Java program to illustrate the difference ranging from an instance variable and a class variable.
Or
(b) Write a Java program that creates a Date class and use it with improper members and methods.
3. (a) Write a Java applet that asks the user to enter 2 floating point numbers, find the 2 numbers from the user and draws the sum and product of the 2 numbers.
Or
(b) Define a Java method to obtain the greatest among 3 numbers. Write a Java applet that finds 3 numbers from the user and displays the largest using the method.
-------

**************************************************************************************************************






( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER SKR Engineering College 2007 B.E Information Technology IF 144 - OBJECT ORIENTED PROGRAMMING - Question Paper