Accounting and Financial Management (3) Analog and Digital Communication (2) Artificial Intelligence (2) BE(Civil) (2) BE(CSE) (83) BE(ECE) (11) BE(Mech) (10) Business Processes (3) C# and .NET Framework (2) Communication Skills (1) Compiler Design (1) COMPONENT BASED TECHNOLOGY (1) COMPUTER ARCHITECTURE (1) COMPUTER GRAPHICS and MULTIMEDIA SYSTEMS (6) COMPUTER INTEGRATED MANUFACTURING (1) Computer Networks (9) Computer Organization (2) Computer Programming (1) Consumer Behaviour (1) Control Systems (1) Cryptography and Network Security (3) Datastructures and Algorithms (10) Datawarehousing and Mining (1) DBMS (5) DESIGN AND ANALYSIS OF ALGORITHMS (9) DESIGN OF MACHINE ELEMENTS (1) DIGITAL PRINCIPLES AND SYSTEMS DESIGN (3) Discrete Mathematics (1) DISTRIBUTED COMPUTING (2) DSP (8) DYNAMICS OF MACHINERY (2) Economic Foundations (1) ELECTRICAL ENGINEERING (1) ELECTRICAL ENGINEERING AND CONTROL SYSTEMS (1) Electromagnetic Fields (3) ELECTRONIC CIRCUITS (1) ELECTRONIC COMMERCE (4) ELECTRONIC DEVICES AND CIRCUITS (1) EMBEDDED SYSTEMS (1) FUNDAMENTALS OF COMPUTING (2) Graphics and Multimedia (3) HEAT AND MASS TRANSFER (1) HUMAN RESOURCE MANAGEMENT (1) Internet Programming (9) INTRODUCTION TO FINITE ELEMENT ANALYSIS (1) Legal Aspects of Business (1) MANAGEMENT INFORMATION SYSTEMS (1) Marketing Management (1) MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE (4) MATHEMATICS - I (1) MBA (9) MCA (83) MCA QUESTION BANK (2) MECHATRONICS (1) MicroProcessor and Controllers (4) MICROPROCESSORS AND APPLICATIONS (5) MIDDLE WARE TECHNOLOGIES (3) MOBILE COMPUTING (5) NETWORK PROGRAMMING (1) NUMERICAL METHODS (1) OBJECT ORIENTED ANALYSIS AND DESIGN (5) Object Oriented Programming (18) Operating System (2) OPERATING SYSTEMS (9) Organizational Behaviour (2) POWER ELECTRONICS (1) Principles of Management (8) PROBABILITY AND QUEUEING THEORY (2) Probability and Statistics (1) PROBLEM SOLVING AND PROGRAMMING (2) PROCESS PLANNING AND COST ESTIMATION (1) PROFESSIONAL ETHICS AND HUMAN VALUES (1) RANDOM PROCESSES (1) RESOURCE MANAGEMENT TECHNIQUES (2) ROBOTICS (1) Security analysis (1) Service Marketing (1) SIGNALS AND SYSTEMS (1) Software Engineering (8) SOFTWARE PROJECT MANAGEMENT (4) SOFTWARE QUALITY MANAGEMENT (2) System Software (2) TCP/IP PROTOCOL SUITE (3) Theory of Computation (4) Total Quality Management (2) UNIX AND NETWORK PROGRAMMING (4) Visual Programming (2) WEB GRAPHICS (2) WEB TECHNOLOGY (2) XML AND WEB SERVICES (4)
Showing posts with label Object Oriented Programming. Show all posts
Showing posts with label Object Oriented Programming. Show all posts

Wednesday, December 8, 2010

CS1204 OBJECT ORIENTED PROGRAMMING NOV/DEC 2010 - previous year anna university question papers

CS1204 OBJECT ORIENTED PROGRAMMING NOV/DEC 2010


Sunday, December 5, 2010

CS 1204 OBJECT ORIENTED PROGRAMMING MAY/JUNE 2009 - previous year anna university question papers

CS 1204 OBJECT ORIENTED PROGRAMMING MAY/JUNE 2009


CS 1204 OBJECT ORIENTED PROGRAMMING NOV/DEC 2009 - previous year anna university question papers

CS 1204  OBJECT ORIENTED PROGRAMMING NOV/DEC 2009

CS 1204 OBJECT ORIENTED PROGRAMMING APRIL/MAY 2008 - previous year anna university question papers

CS 1204 OBJECT ORIENTED PROGRAMMING APRIL/MAY 2008


CS 1204 OBJECT ORIENTED PROGRAMMING APRIL/MAY 2010 - previous year anna university question papers

CS 1204 OBJECT ORIENTED PROGRAMMING APRIL/MAY 2010

CS 1204 OBJECT ORIENTED PROGRAMMING MAY/JUNE 2007 - previous year anna university question papers

CS 1204 OBJECT ORIENTED PROGRAMMING MAY/JUNE 2007

CS 2203 OBJECT ORIENTED PROGRAMMING NOV/DEC 2009 - previous year anna university question papers

CS 2203 OBJECT ORIENTED PROGRAMMING NOV/DEC 2009


Thursday, December 2, 2010

MC 9222 OBJECT ORIENTED PROGRAMMING JUNE 2010 - Previous year anna university question paper

MC 9222 OBJECT ORIENTED PROGRAMMING JUNE 2010

MC 1652 OBJECT ORIENTED PROGRAMMING NOV/DEC 2009 - Previous year anna university question paper

MC 1652 OBJECT ORIENTED PROGRAMMING NOV/DEC 2009



MC 1652 OBJECT ORIENTED PROGRAMMING MAY/JUNE 2007 - Previous year anna university question paper

MC 1652 OBJECT ORIENTED PROGRAMMING MAY/JUNE 2007


MC 1652 OBJECT ORIENTED PROGRAMMING NOV/DEC 2008 - Previous year anna university question paper

MC 1652 OBJECT ORIENTED PROGRAMMING NOV/DEC 2008

Tuesday, October 26, 2010

CA5152 OBJECT ORIENTED PROGRAMMING JULY 2009

M.C.A DEGREE EXAMINATION JUNE/JULY 2009
2ND SEMESTER
CA5152 OBJECT ORIENTED PROGRAMMING
(REGULATION 2007)

PART A – [10 X 2 = 20 marks]

1.What do you mean by data abstraction?
2. Give the advantages of object oriented programming.
3. What are friend functions?
4. How does an Inline function differ from a preprocessor macro?
5. What are copy constructors?
6. What is pure virtual function?
7. Write the function template for swap.
8. What are lists in C++?
9. What is purpose of ‘this’ pointer?
10. List the functions used with I/O stream.

PART B – [5 X 16 = 80 marks]

11.Explain the features of object oriented programming with examples.
Or
Compare the features of different programming paradigms.

12. Explain the various file stream classes needed for file manipulation.
Or
Explain the concept of passing an object by reference and return an object by reference with suitable example.

13.(a) Explain constructor with default arguments. (8)
(b) Describe the use of copy constructors. (8)
Or
(a) Explain overloading of unary operators (post ++, pre ++) with example. (8)
(b) Explain multiple inheritance with example. (8)

14.(a) write a program to create a string class and include member functions to add two string objects and to display string object. (10)
(b) write a note on exceptions. (6)
Or
(a) What is a nested class? Explain with an example. (8)
(b) what is meant by Map? Explain with an example. (8)

15. Explain the role and different types of classes with an example.
Or
(a) Write a program to calculate the sub totals of products sales in 5 different zones. Each zone has 5 sales persons. Finally print total sales amounts along with subtotals of each zone. And also print the total sale of each sales person. Use static members. (10)
(b) Write a C ++ program to print the calendar of months Jan-May of a given year.

Saturday, July 19, 2008

CS 237-OBJECT ORIENTED PROGRAMMING/DEC04

B.E/B.Tech DEGREE EXAMINATION,NOV/DEC 2004
CS 237-OBJECT ORIENTED PROGRAMMING
PART A
1.Differentiate Object Oriented Object Based Programming Langauages.
2.Comment on the following overloaded function
Void inc(int i)
{
i=i+1;
}
Void inc(int i, int diff =1)
{
i=i+diff;
}
3.What is the ouput of the following program?
#include
main()
{
int i=3,j=5;
double x=33.5,y=10.0;
cout<<10+j%1<<”\n”;
cout<<<”\n”;
cout<<(19+i+j)/(2*j+2)<<”\n”);
cout<<<”\n”;
cout<<<”\n;
}
4.What is error in the following class declarations?
Class string{
Char *str;
Unsigned len;
String();
String(string& s);
String(unsigned size char = ‘ ‘);
String(unsigned size);
String & assign (Strong& s);
~String();
Unsigned getlen() const;
Char * getString();
}
5.Differentiate Overloaded and overriden funcions.
6.Consider the following program
Class fun
{
Public:
fun(void)
{
Cout<<”1”;}
fun(fun &x)
{ cout<<”2”;}
fun operator-(fun y)
{ fun test; return(test); }
};
If the function main is coded as fun a,b; what is its output?
7.What is the main purpose of a template in C++? Give an example.
8.Give any two examples of expressions.
9.Differentiate instance members and static members.
10. In java, Can a class be defined inside a method? If so,what rule governs access to the variables of the enclosing method? If not, give reasons.
PART B
11 (i) Define a class Counter to model a counter in its general form, Define classes to model special forms like Cyclic counter,down counter and step 2 down counter. Provide methods for the following opeations-step,display,reset.Write a JAVA program to test the classes

(ii)Differentiate abstract classes and interfaces.
12(a) Explain the following characteristics of object oriented programming with examples.
(i) Data Encapsulation
(ii) Polymorphism
(iii) Genericity
(iv) Inheritance.
13(a) (i) What are the characteristics of constructor functions? Describe various of constructors with examples.
(ii) Create a class that keeps track of its number of instances.
(b) Define a C++ class Matrix to describe a matrix.Equip the class with functions for addition and multiplication.Overload operators suitably for input and output of the matrix.
14 (a) (i) What are friends functions? Give an example to highlight its need? What is its limitations?
(ii)What are virtual functions? Give an example to highlight its need?
(b) Give an applications that fits the following inheritance hierarchy and write the program for the same. Each class should have atleast two data members and two functions members.
15.(a) Give the syntax of functions template.Write template functions for bubble sort.Write a test program to illustrate its use.

(b) (i) Give the hierarchy of console stream classes.
(ii) Explain how exceptions are handled in C++, Give examples to support your answer.

CS 237-OBJECT ORIENTED PROGRAMMING/MAY05

B.E/B.Tech DEGREE EXAMINATION,APRIL/MAY 2005
CS 237-OBJECT ORIENTED PROGRAMMING
PART A
1.Why is OOP methodology considered to be the better approach for real life problems?
2.What are the use of pointers in C++?
3.How do objects interact?
4.What is the differences between a constructor and destructor?
5.Give atleast two examples of compile time polymorphism.
6.Why is the derived class constructor called before the base class
Constructor?
7.Give the syntax of declaring a function template.
8.What are input and ouput streams?
9.What are the three kinds of class members?
10.What is meant by member access modifiers?
PART B
11 (i) Write a program that generates a template class by which one can perform integer type data addition and float type data addition also.
(ii) How are unusaul error conditions avoider using C++?
12(a) What are the elements of object oriented programming? Discuss them in detail.
(b) What are the various data types allowed in C++? Give one example for each type.
13 (a) (i) Using the concept of function overloading,write a program in C++ to find the maximum of three integers and three float numbers
(ii) Which are the C++ operators which cannot be overloaded.
14.(a) (i) Write a program which initialised 10 and 200 to member data and then calculate the sum of these.
(ii) Write a program which reads a complex number copy that into another. Use copy constructor for writing program.
(b) (i) What is the function of this pointers?
(ii) What do you understand by static member and static function? How to declare them?
15.(a) (i) Specify the accesss modifiers of the class members.
(ii) Give the general form of an interface and how is it implemented.
(b) (i) Give two parts of method declaration. How is a static method invoked? When will the method complete execution and return to the caller? How will methods return more than one result?
(ii) Write a program to compute the volume of a box.

CS237-OBJECT ORIENTED PROGRAMMING/MAY04

B.E/B.Tech DEGREE EXAMINATION,APRIL/MAY 2004
CS237-OBJECT ORIENTED PROGRAMMING
PART A
1.What is meant by data hiding.
2.Name atleast two OOPS languages other than C++.
3.How is “This pointer”useful in programming?
4.What is meant access specifier?
5.What is friend function?
6.Name the various types of multiple inheritance.
7.Is template a basic feature of C++.Justify your answer.
8.What are the classes in iostream.h header files?
9.Does Java support multiple inheritance justify your answer.
10.What is abstact class in Java?
PART B
11 (i) What is the main draw-back of structured programming? How OOP address this issue?
(ii) What are the elements of OOPS? How do these make OOPS approach best suited to address real world problems?
(iii)Briefly explain the Java runtime environment.
12(a) Explain copy constructor.
Write a program which reads a complex number and copy that into another. Use copy constructor for writing program.
(b) (i) What is the difference between register variable and automatic
Variable explain with example? What are other stroage classes for variables?
(ii)What is inline funtions? Explain with example.
What is the output of the following segment.
Void f1()
{
Int n=1;
n++;
cout<<”N:”<<<<”m:”<<
#include
Void main()
{
void f1();
void f2();
f1();
f2();f2();
f2();
getch();
}
13 (a) (i) Write a program which reads the bio-data and records of two
Sessional and then print final result. Make seperate class for bio-data,sessional 1, sessional 2 and final result. Sessional 1 and sessional 2 classes are derived form bio-data class. Find result in defined from sessional 1 and sessional 2 classes.
(ii) Explain the concepts identify in the program.
(b) (i) What is meant by overloading? How is operator overloading works?
(ii) Write a program to add 2 complex numbers using operator overloading. What are the operators that cannot be overloaded in C++?
14 (a) (i) Write a program which generate a template class by which one can perform integer type data addition and float type data additio also.
(ii) What is the need for and advantages of templates? What is the difference between function templates and class template?
(b) (i) What is exception handling? Explain
(ii) For handling exception what type of construct are available in C++.
(iii) Explain the concept of streams in C++ and give the hierarchy of different types of stream.
15 (a) Defines interfaces in Java. How interfaces are implemented? How they can be accessed? How to apply interfaces? What is meant by extension of interfaces? Explain with an example.
(b) (i) How is object class created in Java environment? Discuss on objects in Java.
(ii) What is meant by overloading objects? How are rested classes used in Java?


CS237—OBJECT ORIENTED PROGRAMMING/DEC05

B.E/B.Tech DEGREE EXAMINATION,NOV/DEC 2005
CS237—OBJECT ORIENTED PROGRAMMING
PART A
1.Which feature of object oriented programming provides(a) data hiding (b) reusability?
2.List any two drawbacks of procedures oriented languages.
3.What is unique about this pointer?
4.What is a default constructor?When is it used?
5.What effect does inheritance have on the working of constructors and be overloaded only by friend functions?
6.What effect does inheritance have on the working of constructors and destructors?
7.Write a function templates to swap two variables.
8.What is the differences between the statements? Cin>>ch;ch=cin.get();
9.List out any two salient differences between C++ and Java.
10.Differentiate overloading and overriding.
PART B
11. (i) Design template classes such that they support the following statements:
Rupeer1,r2;
Dollard1,d2;
d1=r2;11 converts rupee to dollar(US)
(ii) Explain the exception handling model of C++ with various constructs
Supported by it. Write a program which transfers the control to userSupported by it.Write a program which transfers the control to user defined terminate function when raised exception is uncaught.
12(a) What is object oriented paradigm? Explain the various features of Paradigm.
(b)Define the following terms related to OO paradigm:
(i) Message passing
(ii)Delegation
(iii)Genericity
(iv)Persistance
13(a)(i)Write a program for manipulating coordinates in polar coordinate system.Represent points as objects.The class polar must include data members such as radius and theta and member functions such as add(),sub(),angle()etc.
(ii)What are the rules associated in defining constructors and destructors?
(b)(i) Write a program to read a matrix of size m x n from the keyboardadn display the same on the screen. Made row parameter as default argument.
(ii) Waht are(1) static(*2)constan members? Give examples to support your explanation.
14(a) Create two classes DM an DB to store the value of distances.DM stores distances in meters and centrimeters and DB in feet and inches. Write a program that can read values for the class object and add one object of DM with antother object of DB.Use a friend function to carry out the addition operation.The object that stores the results may be a Dm or DB object depending on the units in which the results are required. Tyhe display should be in ft-inches or mt-cm depending on the object of display.
(b)Write a C++ program to model the following inheritance hierarchy.

15.(a)Define an interface that declares the methods count and print for a collection of items. Define another interface that declares a method to search for an item. Define a class integer collection to represent a collection of integers and provide methods to count the number of items,print the number of items, search for an item and find the sum of all integers int the collection. Define another class string set that implements all the methods defined in both these interfaces on a collections of strings. Write a test program to test these classes.
or
(b) (i) How are abstact classes different from interfaces?
(ii) Create a class to model entries in a telephone directory (name address,phone,number).Define suitable classes and inheritance hierarchy.Write a program to test these classes.

Friday, July 4, 2008

OBJECT ORIENTED PROGRAMMING 2007 - B.TECH IT

PART A
1. Define the terms (a) data abstraction (b) inheritance.
2. What are the types of variables in C++ that can have floating point values? Write the range of each type of variable.
3. What are wild pointers?
4. What are inline functions? What are their advantages?
5. Is the following statement correct? Give reasons.
Destructors can be overloaded.
6. How are interfaces different from classes?
7. What is a thread? Compare a thread with a process.
8. List any 4 methods of class applet.
9. What are the different forms of comment statements in Java?
10. What is an I/O stream?
PART B
11. Explain the elements of object oriented programming. Describe how these elements are implemented in C++ and Java.
12. (a) Write a C++ program to read the elements of a 2D matrix and display them. Arrays should not be used. Dynamically allocate space for the elements of the matrix. Provide function for release of memory. Write a program to test the functions.
Or
(b) Model a complex number as a class. Provide constructors to initialize either with (0, 0) or with values given. Overload and <<>
13. (a) What are the different forms of inheritance supported in C++? Discuss on the visibility of the base class members in privately and publicly inherited classes.
Or
(b) What are virtual function? What are the rules associated with them? What are abstract classes? Give an example (with the program) to illustrate the use of abstract classes.
14. (a) Explain the life cycle of a thread. List any 4 methods of class thread in Java. With examples, illustrate ways of creating threads in a Java program.
Or
(b) Define an interface to declare methods to increment time and to display time. Define another interface that declares methods to set time. Define class digital clock that represents time in the format hr/min/sec. and another class minute clock to represent time in format hr/min. Have these two classes to implement methods defined in both interface. Write a test program.
15. (a) Write the syntax of applet tag in HTML. How are parameters passed to an applet? Write an applet to display the age of the user passed as the parameter to it.
Or
(b) Define an inheritance hierarchy to represent quadrilateral, trapezoid, rectangle and square. ( , ) co-ordinates of four end points of the shape should be taken as points in the super class. Write methods to display the co-ordinates and areas of shapes. Write a test program to create a set of shapes and display their area. Explain the object oriented features used.

Monday, June 23, 2008

object oriented programming

Third Semester(Regulation 2004)Computer Science and EngineeringCS 1204—OBJECT ORIENTED PROGRAMMING(Common to Information Technology )(Common to BE (Part-Time) Second Semester Regulation 2005)
Time : Three hours Maximum : 100 marks
Answer ALL questions
PART A—(10 x 2 = 20 marks)
1. What is object oriented paradigm?2. What is the use of 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 is type of inheritance is supported in Java?9. What is java virtual machine?10. What is multithreading?
PART B—(5 x 16 = 80 marks)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 (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 the followed while overloading an operator. Write a program to illustrate overloading. (8)
Or
(b) (i) Discuss about polymorphism and its advantages. (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 both 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. (4)
(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?Describe 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)
(ii) Give an example that fits the following inheritance hierarchy. (10)
Write a Java program to implement this example.

15. (a) Explain about exception handling in Java with suitable examples. (16)
Or
(b) What is a thread? State how synchronization is dealt while using multithreading. (16)