Professional Documents
Culture Documents
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?
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 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:
CO2 : Understand & Program the Concepts of inheritance and Polymorphism in C++
CO4 : Understand the concepts of Virtual machine, Packages & Interfaces in Java
UEE1304 3