0% found this document useful (0 votes)
24 views2 pages

Object Oriented Programming 2023

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Object Oriented Programming 2023

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Name of the Candidate: Reg. No.

:
22IT320
B.TECH. DEGREE– NOVEMBER 2023 –EXAMINATIONS
BRANCH: INFORMATION TECHNOLOGY
OBJECT ORIENTED PROGRAMMING
Duration : 3Hours Maximum: 100 Marks

Answer All Questions


PART – A (4 x 5 = 20) CO Marks
A1. a. Recall the syntax of class and object creation with example (2 marks) CO2 (5)
b. List the types of inheritance with an example diagram (3 marks)
A2. a. Define interface (2 marks) CO3 (5)
b. List the exception clauses (3 marks)
A3. Describe how the threads are created and executed with example. CO4 (5)
A4. Recall the steps of creating package and using the package with example. CO5 (5)
PART – B (2 x 10 = 20) CO Marks
B1. Perform the following operations using arrays and loops: CO1 (10)
a. Find the average of elements (2 marks).
b. Display the difference between the average and each element (3 marks).
c. Find the elements that are in the given range X and Y (5 marks)
B2. Demonstrate multi-threading to display the menus (food items, quantity, cost) of CO4 (10)
each shop in huge food court area.
PART – C (4 x 15 = 60) CO Marks
C1. Consider an asset management system of a college. Define a class called Asset CO2 (15)
which can be extended to specific assets such as lab equipment, furniture, vehicles
etc. Identify the classes and members.
a. Apply suitable inheritance to do the insert, display operations (5 marks).
b. Apply suitable polymorphism techniques (5 marks).
c. Apply array of objects and do a search operation to find a particular asset
(5 marks).
[OR]
C2. Consider a class namely TwoDimension that can store set of numbers, strings, or CO2 (15)
any objects in two dimensions. Extend this class based on the types of values it
can store and the operations specified. Perform the following operations with
different instances of the classes:
a. Find the sum of each row of elements of MxN size matrix (7 marks)
b. Store the marks in double values for 60 students of 5 subjects. Find the
failures in each subject (8 marks)
C3. Consider a billing application of a supermarket. Define two interfaces namely CO3 (15)
Cloths, Electronics. Implement these two interfaces in the billing class with
appropriate members (10 marks). Generate bill instances with user input for 5
customers (5 marks).
[OR]
C4. Consider a machine shop that produces bolts and nuts. Define a class and instance CO3 (15)
to store the order details of various consumer companies (5 marks). Define
NegativeValueException and InvalidDateException classes (5 marks) to
handle the order input mistakes of 5 different consumer companies (5 marks).
Contd…………
C5. Consider a text file that contains 20 CO5 (15)
words and its meaning like the given
figure. Perform the following
operations:
a. Find the meaning of the given word (5 marks)
b. Read all the words and store in one array (5 marks)
c. Read all the meanings and find the lengthiest meaning (5 marks)
[OR]
C6. Consider a gate pass entry system of an organization. Do the following operations: CO5 (15)
a. For each visitors coming to the organization, get necessary details in the
gate and store the details in Visitor class. Generate suitable log during the
operation (5 marks).
b. For each product/item coming in to the organization, store the details in a
Items class. Get suitable log during the operation (5 marks)
c. Create a items and visitors collection and perform any kind of search
operation in each of the collection (5 marks)
C7. Consider a patient registration application of a hospital. With appropriate awt tools CO6 (15)
do the following:
a. Design an UI (form) to get the necessary details of a patient (5 marks).
b. Store the patient details in a file when the button is pressed(10 marks)
[OR]
C8. Consider a billing application of a pharmacy. With appropriate awt tools do the CO6 (15)
following:
a. Design UI (form) to get the bill details of medicine (5 marks)
b. Validate the bill fields with 2 different test cases (5 marks)
c. Display the bill details with appropriate layout (5 marks)
***************

You might also like