Thanks to visit codestin.com
Credit goes to www.scribd.com

100% found this document useful (1 vote)
2K views2 pages

Oops Laboratory Question Paper

This document outlines the lab experiments for the Object Oriented Programming course. It includes 17 questions to be completed in C++ and Java. Each question is worth 45 marks for parts A and B, and 10 marks for part C which involves a viva voce or oral examination. The questions cover a range of OOP concepts including classes, inheritance, polymorphism, templates, exceptions, interfaces and multithreading. Students are expected to complete programs that demonstrate their understanding of these core object oriented principles in both C++ and Java.

Uploaded by

Vasantha Kumari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views2 pages

Oops Laboratory Question Paper

This document outlines the lab experiments for the Object Oriented Programming course. It includes 17 questions to be completed in C++ and Java. Each question is worth 45 marks for parts A and B, and 10 marks for part C which involves a viva voce or oral examination. The questions cover a range of OOP concepts including classes, inheritance, polymorphism, templates, exceptions, interfaces and multithreading. Students are expected to complete programs that demonstrate their understanding of these core object oriented principles in both C++ and Java.

Uploaded by

Vasantha Kumari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

ANNA UNIVERSITY : CHENNAI – 600 025

B.E. / B.Tech. DEGREE EXAMINATIONS, APRIL / MAY 2016


Regulations – 2013
FOURTH SEMESTER
ELECTRICAL AND ELECTRONICS ENGINEERING
CS6461: OBJECT ORIENTED PROGRAMMING LABORATORY
DATE:27.04.16
TIME: 3 HOURS MARKS: 100

1. a) Write a C++ program using functions for default arguments. (45)


b) Write a JAVA program using interfaces to calculate the area of rectangle and circle.
(45)
c) Viva-voce (10)

2. a) Develop a C++ program using classes and member functions to find area of circle and
rectangle. (45)
b) Develop a JAVA program to perform sorting. (45)
c) Viva-voce (10)

3. a) Write a C++ program to swap two values using call by value. (45)
b) Develop a Java application to illustrate how user-defined exceptions are handled. (45)
c) Viva-voce (10)

4. a) Write a C++ program for various types of constructors. (45)


b) Develop a JAVA program to perform various strings functions. (45)
c) Viva-voce (10)

5. a) Develop a C++ program for constructor overloading. (45)


b) Develop a JAVA program for generating threads. (45)
c) Viva-voce (10)

6. a) Develop a C++ program to overload unary operators. (45)


b) Write a JAVA program with packages to arrange the list of numbers in ascending
order. (45)
c) Viva-voce (10)

7. a) Write a C++ program for file handling using sequential file access. (45)
b) Write a JAVA program to implement exception handling for dividing 2 numbers. (45)
c) Viva-voce (10)

8. a) Write a C++ program for file handling using random file access. (45)
b) Write a JAVA program to handle division by zero exception. (45)
c) Viva-voce (10)

9. a) Develop a C++ program for multi-level inheritance. (45)


b) Write a JAVA program to create two packages and import these packages in main
class and show the result. (45)
c) Viva-voce (10)
10. a) Write a C++ program to find area of circle and rectangle using virtual function. (45)
b) Write a JAVA program to sort the numbers in ascending and descending order. (45)
c) Viva-voce (10)

11. a) Write a C++ program to overload insertion and extraction operator. (45)
b) Write a JAVA program with three threads named as “one”,” two”, “three” and initiate
these threads from the main thread and show the result (45)
c) Viva-voce (10)

12. a) Develop a C++ program using class concept with static data member and member
function. (45)
b) Write a JAVA program to illustrate multilevel inheritance. (45)
c) Viva-voce (10)

13. a) Write a C++ program for function overloading. (45)


b) Write a JAVA program to design a simple calculator. (45)
c) Viva-voce (10)

14. a) Write a C++ program to perform complex number subtraction by overloading an


operator using friend function. (45)
b) Develop a JAVA program using the concept of multithreading. (45)
c) Viva-voce (10)
15. a) Write a C++ program to find the biggest of two integer, two floating point numbers
using function templates. (45)
b) Write a JAVA program with a class named as “circle” that implements an interface
named as “circleinterface” and define the methods named as “area” and “circum” in the
class to find the area and circumference of the circle. (45)
c) Viva-voce (10)

16. a) Write a C++ program for runtime polymorphism. (45)


b) Write a JAVA program to perform the concept to single inheritance. (45)
c) Viva-voce (10)

17. a) Write a C++ program to swap two numbers using call by reference. (45)
b) Develop a java program to perform various string operations such as string compare,
string length and string concatenation. (45)
c) Viva-voce (10)

You might also like