oops qp
oops qp
No
N 5104 - ARUNAI Reg. No:
ENGINEERING COLLEGE 5104 - ARUNAI ENGINEERING COLLEGE
TIRUVANNAMALAI TIRUVANNAMALAI
104-COMPUTER SCIENCE AND ENGINEERING 104-COMPUTER SCIENCE AND ENGINEERING
YEAR: II SET-B SEMESTER: III YEAR: II SET-B SEMESTER: III
MODEL EXAMINATION - NOV/DEC 2023 MODEL EXAMINATION - NOV/DEC 2023
CS3391 – OBJECT ORIENTED PROGRAMMING CS3391 – OBJECT ORIENTED PROGRAMMING
__________________________________________________________________ __________________________________________________________________
Date: 02-01-2024 (FN) Maximum: 100 Marks Date: 02-01-2024 (FN) Maximum: 100 Marks
Time: 9.30am to 12.30pm Time: 9.30am to 12.30pm
Answer ALL questions. Answer ALL questions.
PART – A (10X2 =20 Marks) PART – A (10X2 =20 Marks)
1. Define encapsulation in Java. 1. Define encapsulation in Java.
2. What is a constructor? 2. What is a constructor?
3. Exemplify the use of super keyword. 3. Exemplify the use of super keyword.
4. What are the differences between classes and interfaces? 4. What are the differences between classes and interfaces?
5. What is the purpose of finally clause? Give example. 5. What is the purpose of finally clause? Give example.
6. What are the uses of streams? What are the two types of streams? 6. What are the uses of streams? What are the two types of streams?
7. What is the need for synchronization? How it can be implemented? 7. What is the need for synchronization? How it can be implemented?
8. Differentiate Multithreading and Multitasking 8. Differentiate Multithreading and Multitasking
9. Short note on JavaFX event and event Handling. 9. Short note on JavaFX event and event Handling.
10. Enlist any two features of JavaFX. 10. Enlist any two features of JavaFX.
11.a) What are the three categories of control statements used 11.a) What are the three categories of control statements used
in Java? Explain each category with example. in Java? Explain each category with example.
OR OR
b) (i) Discuss the OOP principles in detail. (7) b) (i) Discuss the OOP principles in detail. (7)
(ii)Discuss in detail about constructor concept with example(6) (ii)Discuss in detail about constructor concept with example(6)
2.Ms.M.Sowndharya,AP/CSE HOD/CSE
12.a)(i)Discuss in detail about interface with example. (6) 12. a)(i)Discuss in detail about interface with example (6)
(ii) Explain in detail any three types of inheritance with example.(7) (ii)Explain in detail any three types of inheritance with example.(7)
OR OR
b) (i)Illustrate how to add classes in package and how to access these b) (i)Illustrate how to add classes in package and how to access
classes in another package. (7) these classes in another package. (7)
(ii)Explain java final with inheritance (6) (ii)Explain java final with inheritance (6)
13.a)(i)Discuss in detail about try,catch and finally keywords in 13.a)(i)Discuss in detail about try,catch and finally keywords in
exception handling with examples. (7) exception handling with examples. (7)
(ii)List and explain data types and their corresponding class(6) (ii)List and explain data types and their corresponding class.(6)
OR OR
b) What is Inter thread communication? Explain suspending, resuming b) What is Inter thread communication? Explain suspending, resuming
and stopping threads in java and stopping threads in java
14.a) Explain in detail about the following : 14.a) Explain in detail about the following :
i) Buffered Inputstream (7) i) Buffered Inputstream (7)
ii) Buffered Outputstream (6) ii) Buffered Outputstream (6)
OR OR
b) Explain in detail about String handling functions with example b) Explain in detail about String handling functions with example
15. a) Enlist the JavaFX UI controls along with their purpose 15.a) Enlist the JavaFX UI controls along with their purpose
OR OR
b) Describe handling keys and Mouse events b) Describe handling keys and Mouse events
PART – C (1X15=15 Marks) PART – C (1X15=15 Marks)
16. a)(i) Label the different states of threads with example.(8) 16. a)(i) Label the different states of threads with example.(8)
(ii) Discuss in detail about Streams. (7) (ii) Discuss in detail about Streams (7)
OR OR
b) Create a bank database application program to illustrate the use of b) Create a bank database application program to illustrate the use of
Multithreads. Multithreads.