Nothing Special   »   [go: up one dir, main page]

ITL202 - Ktu Qbank

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

INFORMATION TECHNOLOGY

CODE COURSE NAME CATEGORY L T P CREDIT


OBJECT ORIENTED TECHNIQUES PCC 0 0 3 2
ITL202
LAB

Preamble:
This lab is intended to make the students capable of
Understanding the importance of Object Oriented Programming in designing the
Software applications,
Implementing programs using Object oriented concepts of inheritance and
polymorphism,
Analysing the given problem to design multithreaded programs,
Developing robust programs using exception handling features in Java.

Prerequisite: ITT202 PRINCIPLES OF OBJECT ORIENTED TECHNIQUES

Course Outcomes: After the completion of the course the student will be able to
Bloom’s
CO Course Outcome(CO)
No Category
Solve the given problem by applying Object oriented features and Apply
CO 1
Java concepts.
CO 2 Implement the concept of method and constructor overloading Apply
CO 3 Implement the concept of inheritance Apply Apply
Use the concept of multithreading and modify an existing program Apply
CO 4 with proper exception handling
CO 5 Build Robust programs in JAVA using AWT and SWING Apply

Mapping of course outcomes with program outcomes

PO PO PO PO PO PO PO PO PO PO PO PO
1 2 3 4 5 6 7 8 9 10 11 12
CO 1 3 2 2 1 2 - - - - - - 1
CO 2 2 2 2 - 2 - - - - - - 1
CO 3 2 2 2 - 2 - - - - - - 1
CO 4 2 3 3 1 2 - - - - - - 2
CO 5 2 3 3 1 3 - - - - - - 2
3/2/1: High/Medium/Low
INFORMATION TECHNOLOGY
Assessment Pattern

Mark distribution

Total CIE ESE ESE


Marks Duration

150 75 75 2.5 hours

Continuous Internal Evaluation Pattern:

Attendance : 15 marks
Continuous Assessment : 30 marks
Internal Test (Immediately before the second series test) : 30 marks

End Semester Examination Pattern: The following guidelines should be followed


regarding award of marks
(a) Preliminary work : 15 Marks
(b) Implementing the work/Conducting the experiment : 10 Marks
(c) Performance, result and inference (usage of equipments and trouble shooting) :25Marks
(d) Viva voce : 20 marks
(e) Record : 5 Marks

General instructions: Practical examination to be conducted immediately after the second


series test covering entire syllabus given below. Evaluation is a serious process that is to be
conducted under the equal responsibility of both the internal and external examiners. The
number of candidates evaluated per day should not exceed 20. Students shall be allowed for
the University examination only on submitting the duly certified record. The external
examiner shall endorse the record.

Course Level Assessment Questions

Course Outcome 1 (CO1):

1. Develop a program in Java to display the details of bank account using Class.

2. Develop a program in Java to implement Stack operations using Class.

3. Construct a Java class to store some employee details and provide methods to set and
get values.

Course Outcome 2 (CO2)


1. Develop a Java program to implement functions to display an input integer, string and
float values using the concept of method overloading
INFORMATION TECHNOLOGY
2. The Fibonacci sequence is defined by the following rule. The first 2 values in the
sequence are 1, 1. Every subsequent value is the sum of the 2 values preceding it.
Develop a Java program that uses both recursive and no recursive functions to print
the nth value of the Fibonacci sequence

Course Outcome 3(CO3):


1. Develop a Java program to read and print students data using inheritance Class
person: name, age, gender
Class student inherits from person: mark1, mark2, mark3, total marks, grade.

2. Develop a java program to create an abstract class named Shape that contains two
integers and an empty method named printArea(). Provide three classes named
Rectangle, Triangle and Circle such that each one of the classes extends the class
Shape. Each one of the classes contain only the method printArea( ) that prints the
area of the given shape.

3. Suppose your institution wishes to maintain a database of its employees. The database
is divided into a number of classes whose (Assistant Professor, Associate Professor,
Professor etc). Construct a Super Class Person to store personal information. Derive
all the above classes from the Class. Develop a Java program to specify all the classes
and define functions to create the database and retrieve individual information as and
when required. Support at least 5 employees on each category.

Course Outcome 4 (CO4):


1. DEvelop a Java application that executes two threads. One thread displays ―”Hello”
in every 1000 milliseconds and other displays ― “World” in every 3000 milliseconds.
Create the threads by extending the Thread class

2. Construct a Stack Class with proper exception handling mechanisms. While doing a
Pop operation, if the stack is empty then display an error message. While doing a
Push operation, if the stack is full then display corresponding error message.

3. Develop a java program that implements a multi-thread application that has three
threads. First thread generates random integer for every 1 second and if the value is
even, second thread computes the square of the number and prints and if the value is
odd, the third thread will print the value of cube of the number.

Course Outcome 5 (CO5):


1. Develop a java program that simulates a traffic light using AWT. The program lets
the user select one of three lights: red, yellow, or green with radio buttons. On
selecting a button, an appropriate message with “stop” or “ready” or “go” should
appear above the buttons in a selected colour. Initially there is no message shown.
INFORMATION TECHNOLOGY
2. Develop a program that creates a user interface to perform integer divisions. The user
enters two numbers in the text fields, Num1 and Num2. The division of Num1 and
Num2 is displayed in the Result field when the Divide button is clicked. If Num1 or
Num2 were not an integer, the program would throw a NumberFormatException. If
Num2 were Zero, the program would throw an Arithmetic Exception Display the
exception in a message dialog box

3. Develop a Java program that works as a simple calculator using SWING. Use a grid
layout to arrange buttons for the digits and for the +, -,*, % operations. Add a text
field to display the result. Handle any possible exceptions like divide by zero.

LIST OF EXPERIMENTS

Cycle Name of Experiment

I Program to implement Simple Classes for understanding objects, member


functions and Constructors. write Classes having:

(i) Methods without arguments


(ii) Methods with argument
(iii) Constructors
(iv) Methods with default arguments
II Programs to implement

(i) Method overloading


(ii) Constructor overloading
(iii) Static functions
(iv) Inner class
(v) Nested classes
III Programs to implement Inheritance

IV Programs to implement

(i) Multi threading


(ii) Exception handling
(iii) Thread synchronization
V Program to implement Graphical user Interface using:

(i) AWT
(i) SWING
INFORMATION TECHNOLOGY
Reference Books

1. Herbert Schildt, Java: The Complete Reference, 8/e, Tata McGraw Hill, 2011.

2. Flanagan D., Java in A Nutshell, 5/e, O'Reilly, 2005.

3. Sierra K., Head First Java, 2/e, O'Reilly, 2005.

4. Balagurusamy E., Programming JAVA a Primer, 5/e, McGraw Hill, 2014.

You might also like