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


1.Differentiate Object Oriented Object Based Programming Langauages.
2.Comment on the following overloaded function
Void inc(int i)
Void inc(int i, int diff =1)
3.What is the ouput of the following program?
int i=3,j=5;
double x=33.5,y=10.0;
4.What is error in the following class declarations?
Class string{
Char *str;
Unsigned len;
String(string& s);
String(unsigned size char = ‘ ‘);
String(unsigned size);
String & assign (Strong& s);
Unsigned getlen() const;
Char * getString();
5.Differentiate Overloaded and overriden funcions.
6.Consider the following program
Class fun
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.
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.

No comments:

Post a Comment