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)

Saturday, July 19, 2008

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.

No comments:

Post a Comment