You are on page 1of 2

Reg. No.

:
Name :

MODEL QUESTION PAPER


Programme : Semester :
Course : Object Oriented Programming in Java Code : ITA5004
Faculty : Slot :
Time : Max. Marks :

Answer ALL Questions

Sub.
Q.No. Question Description Marks
Sec.

1. Hero Honda motor bike company is planning for “Bikes for the Future” in which they are [12]
going to launch Low Cost to high cost bikes with Ultra Low emission to Low Emission
vehicles. The bikes are also designed to run under Petrol. The Cubic capacity varies from
99.2cc to 120.9cc. Create a class BikeDesign with data members like bike model, cost and no.
of gears as class variables. Store the details of bikes using array of objects. Write a java
program that accepts inputs as cost and number of gears and displays the model of the bike
with all its features. ( Abstract Class is Mandatory).

2. FastTrack Taxi is a small cabs operators in Chennai. Cab operators approach you to develop a [12]
system that calculates the rental for the cab service. Design a class CarRental that computes
the cost of renting a car for a day, based on the type of the car (economy, medium, and
Costly) and type(Non-a/c and a/c). Include a constructor that requires the car type. Design a
subclass for the cars in such a way that this class should calculate the CalculateRent() method
by adding 25% extra charges to base rental. Write a java application that reads several objects
of CarRental and its sub class and finally display them.

Type of Cab A/C cab Non-A/C


cab
Maruthi Rs.50/hr Rs.65/hr
Indica Rs.80/hr Rs.100/hr
Innova Rs.90/hr Rs.130/hr

3. A DVD that carries some sensitive information in the form of files. Source1.txt and [12]
Source2.txt have information that has to be copied to the hard disk of another computer. Write
a Java application that takes data from source1.txt from 15th Character to entire length and all
Page 1 of 2
the information from file source2.txt has to be copied to Destination.txt. Display the copied
information in Uppercase format.
4. The chemical substances such as Hydrogen, Oxygen, Zinc etc are called Elements. They have [12]
the fields like atomic weight, name, atomic number etc. Create a Database table called
Element with the above mentioned fields. Write a JDBC application to Insert and fetch the
details from the Database table and also write a procedure to create data source name using
MS-Access Drivers.

5. Write a TCP Server Socket program (Temperature converter) which listens at a specified port [15]
for service request. When the service request inputs the temperature in centigrade, it converts
into Fahrenheit and responds to the client. Also Write a TCP Client Socket program to get the
input (Temperature in Centigrade) from the user, looks up the Server program and gets it
converted to Fahrenheit. Design the interactions between TCPClient and TCPServer with TCP
Socket flow diagram.
6. In a company the salary structure is based upon the position of the employ and the basic pay. [15]
The Employee table has the following fields: Empid, First name, Last name, Designation,
Basic pay, department name. Create a Java Servlet to fetch the list of employees based on the
departments and having Basic pay more than Rs.10000 from the Employee Table using JDBC
7. Design a Multithreaded application for 3 threads using Java where each thread reads a number [12]
and prints Multiplication table of that number. When the user enters an invalid number (any
negative number) it has to raise an exception.
8. Lenovo company is selling the following laptop models: [10]
LENOVO LAPTOP PRICE
MODEL
Lenovo G550 Rs.30000
Lenovo Z580 Rs.39,234
Lenovo Z570 Rs.42,590
Lenovo G450 Rs.29,250
Lenovo U310 Rs. 50,990
Lenovo B460 Rs.32,000

Design an AWT Window with six buttons called G550,Z580,Z570, G450,U310,B460. When
we click a button the details of the particular laptop model must appear in an exclusive
background color, textcolor and font.

Page 2 of 2

You might also like