AU - CS2311 Object Oriented Programming - Nov / Dec 2013 Important Questions

0
Anna University Logo

Anna University , Chennai

CS2311 Object Oriented Programming

November / December 2013 Important Questions

Common to Electrical and Electronics Engineering , Electronics and Instrumentation , Instrumentation and Control Engineering

Fifth Semester

Syllabus Reg : 2008

Unit 1
1.Illustrate the function overloading concept with a C++ program to find the volume of cube and cylinder
2.Explain the basic concepts of oops with suitable Examples
3.Write a C++ program to construct student mark list for three subjects.
Write the pgm to display name,rollno,marks,avg and total.Use clss and objects.
4. What is Dynamic Initialisation of objects?Give a program to illustrate your answer.
5.Write a program for manipulating coordinates in rectangular coordinate system.Represent points as object. The class point must include members such as x and y (as data members) and add(),sub() as member functions()
UNIT 2
1 Explain virtual function concept with a program to find the distance between two objects.
2 Explain the Inheritance and write an example pgm for hierarchical inheritance
3 Write a c++ program as follows to perform arithmetic operation on rational number of type    
a/b  where and b are integers using operator overloading with a sample o/p.
4 Write a program illustrating type conversion using constructor
5 Explain the Friend function concept with an example program.

UNIT 3
1 What are the types of exception handling. Write a program for array reference out of       
Bound.
2 Write a c++ program to demonstrate file handling as follows:get strings as i/p from user ,store them  in file ,retrieve them and display them.
3.What are the exception handling mechanism available in c++ with suitable eg.
4.Write a stl program illustrating the use of functions in it
5.Write a program illustrating binary file handling

UNIT 4
Explain Method overriding in Java with an eg.
2.Construct the pictorial representation of Java Virtual Machine.
3.Write a program in java using constructor concept.
4.What are the different statements and its use in java?
5.Illustrate Inheritance in Java with suitable program.

Unit 5
1.Explain the Life cycle of Thread with an eg
2.Describe package concept to perform arithmetic operations.Explain 
how to use it?
3.Explain the Inheritance with an example program
4.Define Interfaces?Explain the extension of interfaces,implementation and accessing it.
5.Explain try, catch and  finally statements with eg.
New Share your Study Materials with us : Click Here