Tagore Engineering College, Chennai – 600127
Internal Assessment Test -II
Degree / Branch / Sem: B.E & B.Tech / CSE & IT/ III SEM
Date / Session / Duration:10.10.2022/1 Hr 30 mins
Sub. Code / Name / Total Marks: CS3391/Object Oriented Programming /50
marks
PART – A 05 x 02 = 14
1. What is Dynamic method dispatch?
2. When to use the keyword final ,finally and finalize in java?
3. How to declare a nested class? Give an example?
4. What is use of the super keyword in java?
5. Sketch the life cycle of thread.
6. What happens when the statement:
int a[] = new int[5];
a[6] = 9; is executed?
7. What is synchronization in thread model?
PART –B 3 x 12 = 36
8.(a) (i) Explain passing objects and returning object to method with suitable example. (6)
(ii) Differentiate early binding and late binding. (6)
(Or)
(b).Make a class Student. Student class has the data members such as roll number, name, and
branch. Create a class called Exam with data members roll no and six subject marks. Derive
the Result class from Exam which has its own data member such as total marks, average and
grade. Write a program to calculate the grade of a student based on the marks entered by user
in each subject and print the student name and their grade based on this logic.
If the average of marks is >= 90 then prints Grade ‘O’
If the average of marks is >= 80 then prints Grade ‘A+’
If the average is <80 and >=70 then prints Grade ‘A’
If the average is <70 and >=60 then prints Grade ‘B+’
If the average is <70 and >=60 then prints Grade ‘B’
If the average is <60 and >=45 then prints Grade ‘C’
else prints Grade ‘U’
9. (a) Explain an exception types in detail with an example code.
(Or)
(b) (i) Explain in detail the priority of thread.(4)
(ii) Describe the creation of single and multi thread model with an example program (8)
10. (a) (i)How will you implement the concept of multiple inheritance using interfaces? (8)
(ii) Illustrate how the members of a package can be accessed by other package. (4)
(Or)
(b). Explain in detail an Exception handling mechanism.
Course Outcomes
After successful Completion of the Course, the Students should be able to
CO
To know the principles of packages, inheritance and interfaces
2
CO
To develop a java application with threads and generics classes
3
Knowledge Level (Blooms Taxonomy)
K Remembering K Understanding K Applying (Application of
1 (Knowledge) 2 (Comprehension) 3 Knowledge)
K Analysing K K
Evaluating (Evaluation) Creating (Synthesis)
4 (Analysis) 5 6
Part Part - A
Question No. 1 2 3 4 5 6 7
CO CO
Course Outcome CO2 CO2 CO2 CO2 CO3
3 3
Knowledge Level K1 K4 K1 K1 K4 K2 K3
Part Part - B
9.
Question No. 8. (a) 8. (b) 9. (a) 10. (a) 10.(b)
(b)
Course Outcome CO2 CO2 CO3 CO3 CO2 CO3
Knowledge Level K3 K6 K3 K3 K4 K4