B.E/B.Tech Degree Examinations, Nov/Dec 2021 - Feb 2022: Reg. No

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Reg. No.

Question Paper Code 21098

B.E/B.Tech DEGREE EXAMINATIONS, NOV/DEC 2021 - FEB 2022


Third Semester

Computer Science and Engineering

(Common to Information Technology)

20CSPC301 - OBJECT ORIENTED PROGRAMMING

(Regulations 2020)

Duration: 3 Hours Max. Marks 100

Answer ALL Questions

PART-A (10 x 2 = 20 Marks)

K-Level CO No.
Why “static” access modifier is specified in “public static void CO1
1. main(String a[])” K1

2. State the conditions for method overriding in Java. K1 CO1

3. Define Package in Java with an example K2 CO2

Articulate the syntax to access the same variable defined in two CO2
4. interfaces implemented by the same class? K2

5. What happens when statement int digit=36/0; is executed? K2 CO4

6. Specify the Java API’s that contains all classes for handling IO-streams K1 CO4

7. Sketch the life cycle of the thread. K2 CO5

8. List any two limitations of generic programming K2 CO5

9. List the components of Java Lambda Expression. K2 CO6

10. Define Reactive Programming in java. K2 CO6

K1 – Remember; K2 – Understand; K3 – Apply; K4 – Analyze; K5 – Evaluate; K6 - Create


1
PART- B (5 x 13 = 65 Marks)

Mark
K-Level CO No.
Split up
11. a) Explain the concepts of object oriented programming with an
13 K2 CO1
example.
OR
b) i) Point out the justification of the statement “Java is platform 2 K1
independent”. CO1
ii) Articulate the concept of Java package with suitable program. 11 K3

12. a) Explain types of inheritance supported by java and demonstrate the


13 K1 CO2
execution order of constructors in these steps.
OR
b) i) Illustrate with an example to demonstrate abstract class and 6 K4
abstract method. CO2
ii) Summarize the concept of interface with an example. 7 K5

13. a) Explain the different types of Exceptions and the keywords associated
13 K1 CO4
in Java Exception with suitable programs.
OR
b) i) List the streams used in java. 2 K1
ii) What exception is thrown when Reading is not done properly in 1 K4
file.
CO4
iii) Explain in detail about the following with sample program 10 K1
a)Reading from a file b)Writing in a file.

14. a) (i) Describe the creation of single thread and multiple thread using a 7
suitable example. K1 CO5
(ii) Explain the various thread methods with suitable examples. 6
OR
b) i) Using a simple example, explain Synchronization concept in java 7 K2
ii) Illustrative a Generic Method for sorting an array of integer 6 K2 CO5
objects.

15. a) Correlate the implementation of interface with and without using


13 K2 CO6
lambda expression with necessary java program.
OR
b) Explain the concepts of reactive programming with suitable example. 13 K2 CO6

PART- C (1 x 15 = 15 Marks)

Mark
Split up K-Level CO No.
16. a) i) Elaborate the concept of Inner class. 5
ii) Define object cloning and state the difference between shallow 10 K4 CO3
and deep cloning with suitable program.

OR

K1 – Remember; K2 – Understand; K3 – Apply; K4 – Analyze; K5 – Evaluate; K6 - Create


2
b) Write a Java program to create student examination database system
that prints the mark sheets of students. Input Students name, marks in
6 subjects. This mark should be between 0 and 100.

If the average of marks is >=80 then prints Grade 'A'


15 K6 CO3
If the average of marks is <80 and >=60 then prints Grade ‘B'

If the average of marks is <60 and >=40 then prints Grade ‘C'

else prints Grade 'D'

Distribution of COs (Percentage wise)


CO No. CO1 CO2 CO3 CO4 CO5 CO6
% 16.67 16.67 16.67 16.67 16.67 16.67

K1 – Remember; K2 – Understand; K3 – Apply; K4 – Analyze; K5 – Evaluate; K6 - Create


3

You might also like