Cst205 Object Oriented Programming Using Java, December 2021
Cst205 Object Oriented Programming Using Java, December 2021
Reg No.:
PART A
Answer all questions. Each question carries 3 marks Marks
I What is Just-In-Time compiler? (3)
2 Why Java is said to be a secure programming language? (3)
3 Does Java support multiple inheritance? Justify your answer. (3)
4 Why is the 'main' method in Java qualified as public, static, and void? (3)
5 Explain any three Byte Stream classes in Java. (3)
6 What are Checked Exceptions? Give an example. (3)
7 List any six Event Listener interfaces. (3)
8 Explain any three special string operations in Java (3)
9 Summarize any three features of Swing API. (3)
10 Differentiate between Components and Containers in Swing. (3)
PART B
Answer any onefull questionfrom each module. Each question cawies 14 marks
Module I
11 a) Explain Lexical issues in Java with examples. (6)
b) Differentiate between function oriented and object orientedsoftware design
approaches using a suitable example. (8)
12 a) Construct a UML Class diagram for Online Movie Ticket Booking System. The (8)
various entities involved in the system are Admin, Registered User, Visitor /
Guest User, Movie, Book Ticket, Make Payment.
(6)
b) Construct a UML Activity diagram for Food Ordering System, which shows the
flows between the activity of Order, De)ivery, Food ltem, Category, Payment.
Module 2
13 a) Explain different data types in Java. Give exa:nples. (8)
b) Write a Java program to reverse bits of a given integer. (6)
14 a) Demonstrate how objects are passed as function parameters with a suitable (8)
example.
b) Write a Java program to find the frequency (count the occurrence) of each (6)
element in an integer afiay.
Module 3
15 a) Devblop aJavapackage named 'evenpackage', with a class Even containing a (8)
static method that check whether a number is even or not. and returns that
Page I of2
Downloaded from Ktunotes.in
0800csr205122002
Page2 of2
Downloaded from Ktunotes.in