You are on page 1of 3

Register No:

Sri Sivasubramaniya Nadar College of Engineering, Kalavakkam – 603 110


(An Autonomous Institution, Affiliated to Anna University, Chennai)
B.E. / B.Tech. End Semester Theory Examinations, November / December 2022
Third Semester
Electrical and Electronics Engineering
UEE1304 OBJECT ORIENTED PROGRAMMING
(Regulations 2018)
Time: Three Hours Answer ALL Questions Maximum:100 Marks
K1: Remembering K2: Understanding K3: Applying K4 :Analyzing K5: Evaluating

PART – A (10 × 2 = 20 Marks)

01. K2 What is meant by an object? CO1


02. K1 Write two characteristics of a constructor? CO1
03. K2 Can a destructor be overloaded? CO2
What do you mean by reusability? How is it achieved in object-oriented
04. K2 CO2
programming?
How many blocks are contained in an exception handling model? List all of
05. K1 CO3
them
What is a standard template library? Write the fundamental components of
06. K1 CO3
STL?
07. K2 What gives java it’s “write once and run anywhere” nature? CO4
08. K1 Explain the usage of java packages. CO4
09. K1 Dose java support multiple inheritance of classes? CO5
10. K2 What is the difference between an interface and an abstract class? CO5

PART – B (5 × 6 = 30 Marks)

11. K2 Explain the use of each access specifiers in object oriented programming. CO1
Explain the concepts of static binding and late binding of objects by writing a
12. K3 CO2
C++ Code.
Write a detailed note on exception handling in C++ with a simple example
13. K2 CO3
code.
14. K1 Write a note on strings, garbage collection and arrays in java. CO4

1
UEE1304

What is a thread in java? Explain the use of the methods sleep (), resume (),
15. K4 CO5
suspend () and join () of the thread class.

PART – C (5 × 10 = 50 Marks)
Explain the different ways of calling a function. Write a C++ program to
16. K2 CO1
swap to numbers by using function call by reference.
OR
What do you mean by dynamic initialization of objects and how it is
17. K2 achieved in C++? Explain with a program in C++ how objects are CO1
destroyed dynamically?

What is function overloading? Explain with a C++ code how constructor


18. K2 CO2
overloading is performed.
OR
What is inheritance? What are the different types of inheritance supported
19. K2 CO2
in C++? Explain them with a neat diagram?

Write a program in C++ that writes objects into a file and reads objects
20. K3 CO3
from a file.
OR
What is the difference between namespace (using -directive) and
namespace (using -declaration)? Determine the output of the C++ Code
given below?

#include <iostream>
using namespace std;
namespace first {int x = 4; int y = 7;}
21. K3 namespace second {double x = 4.1; double y = 3.7;} CO3
void main (){
using first::x;
using second::y;
bool a, b;
a = x > y;
b = first::y < second::x;
cout << a << b; }

UEE1304 2
UEE1304

What is package in java? What are the important features of packages?


22. K3 CO4
Explain with a java program the concept of packages.
OR
Write a program to replace a substring of a string by another substring
23. K3 CO4
using the methods of string class in java.

What is java lambda expression? Explain the use of it in any one of the
24. K4 CO5
built-in functional interfaces of java?
OR
Write a java program that inherits the thread class and creates a child
25. K4 thread, and control both the main thread and child thread with sleep () CO5
method.

Course Outcomes:

CO1 : Understand the Basic concepts of Object-Oriented Programming

CO2 : Understand & Program the Concepts of inheritance and Polymorphism in C++

CO3 : Build C++ applications using exceptions and I/O streams

CO4 : Understand the concepts of Virtual machine, Packages & Interfaces in Java

CO5 : Develop Java applications with threads and generics classes

UEE1304 3

You might also like