ITT202 - Ktu Qbank
ITT202 - Ktu Qbank
ITT202 - Ktu Qbank
Preamble:
This course is intended to make the students capable of
1. Compare the capabilities of Object oriented and Procedure oriented programming
languages.
2. Model the problem scenarios using object oriented concepts and UML.
3. Develop robust programs by optimally utilising the capabilities JAVA programming
language.
Prerequisite: Programming Concepts
Course Outcomes: After the completion of the course the student will be able to
PO PO PO PO PO PO PO PO PO PO PO PO
COs
1 2 3 4 5 6 7 8 9 10 11 12
CO 1 2 3 3 - 2 - - - - - - 1
CO 2 2 3 3 - 2 - - - - - - -
CO 3 2 3 3 - 2 - - - - - - -
CO 4 2 3 3 - 2 - - - - - - -
CO 5 2 3 3 - 2 - - - - - - -
3/2/1: high/medium/low
INFORMATION TECHNOLOGY
Assessment Pattern
Mark distribution
Attendance : 10 marks
Continuous Assessment Test (2 numbers) : 25 marks
Assignment/Quiz/Course project : 15 marks
End Semester Examination Pattern: There will be two parts; Part A and Part B. Part A
contain 10 questions with 2 questions from each module, having 3 marks for each question.
Students should answer all questions. Part B contains 2 questions from each module of which
student should answer any one. Each question can have maximum 2 sub-divisions and carry
14 marks.
2. Explain how encapsulation helps in data security. Justify your answer by comparing
the scenario in procedure oriented languages.
1. Explain the difference between the object oriented design concepts of generalisation
and specialisation, and describe how these relate to the inheritance feature in object
oriented programming languages.
2. Describe how is-a and has-a inter-class relationships may be implemented in object
oriented programming, giving code examples to support your answer.
3. What is multiple inheritance? Discuss how multiple inheritance is implemented in
Java.
PART A
Part B
Answer any one Question from each module. Each question carries 14
Marks
11.a) Compare and contrast the implementation of data abstraction in procedure
oriented and object oriented language. 7Marks
b) Discuss how encapsulation helps in data security. Justify your answer by
comparing the scenario in procedure oriented languages. 7 Marks
OR
12. a) Write a short note on garbage collection in java. 6 Marks
b) Describe with example, TWO features of object oriented programming
languages that promote code reuse. 8 Marks
INFORMATION TECHNOLOGY
13. a) Compare and contrast overriding and overloading with examples.
6 Marks
b) With an example, discuss the use of passing objects as parameters.
8 Marks
OR
14.a) Discuss the uses of „static‟ keyword with example scenarios. 7 marks
b) Examine the use of „final‟ keyword in the context of access control.
7Marks
15.a) Explain the difference between the object oriented design concepts of
generalisation and specialisation, and describe how these relate to the inheritance
feature in object oriented programming languages. 6 marks
b) Describe how is-a and has-a inter-class relationships may be implemented in
object oriented programming, giving code examples to support your answer.
8 Marks
OR
16.a) What is multiple inheritance? Discuss how multiple inheritance is
implemented in Java. 7 marks
b) Compare and contrast the usage of abstract class and interface in Java. Give
examples of each. 7 Marks
17.a) Discuss the difference between runtime and compile time errors. Would
you rather have an error discovered at run time or compile time? 8 Marks
b) Explain out of bound exception with example code. 6 marks
OR
18. a) Explain the use of following constructs in Java with example.
i)try {}
ii)catch {}
iii)throw() 6 Marks
b) Elaborate on the interprocess communication mechanism in java.
8 Marks
19. a) Discuss how to implement a multithreaded applet with an example.
6 Marks
b) Explain with an example the event model in Java. 8 Marks
OR
20. a) Differentiate between static and dynamic models in UML. 4 Marks
INFORMATION TECHNOLOGY
b) Draw a class diagram of the following System: Vending Machine. A vending
machine sells small, packaged, ready to eat items (chocolate bars, cookies,
candies, etc.). Each item has a price and a name. A customer can buy an item,
using a smart card (issued by the vending machine company) to pay for it. No
other payment forms (i.e. cash, credit card) are allowed. The smart card records
on it the amount of money available .The functions supported by the system
are:Sell an item(choose from a list of items, pay item, distribute item)Recharge
the machine Set up the machine (define items sold and price of items)Monitor
the machine (number of items sold, number of items sold per type, total
revenue)The system can be used by a customer, a maintenance employee (who
recharges items in the machines), an administrator (who sets up the machine).
10 Marks
Syllabus
Derived Class and Base Class, Usage of super keyword, Creating a 8 hours
Multilevel Hierarchy, Method Overriding, Dynamic Method Dispatch,
Using Abstract Classes, Using final with Inheritance, Definition and
appliction of Packges and Interfaces
Module 4
Text Books
1. Herbert Schildt, Java: The Complete Reference, 8/e, Tata McGraw Hill, 2011.
2. Bahrami A., Object Oriented Systems Development using the Unified Modeling
Reference Books
4. Barclay K., J. Savage, Object Oriented Design with UML and Java, Elsevier, 2004.
3.2 Dynamic Method Dispatch, Using Abstract Classes, Using final 4 hours
with Inheritance, Definition and application of Packages and
Interfaces
4
Exception handling and Multithreaded Programming 9 Hours
4.1
Fundamentals of exception handling, Exception Types, Using try
and catch, throw, throws, finally, Java‟s Built-in Exceptions, 4 hours
Creating Exception subclasses.
4.2 The Java Thread Model, Creating a Thread, Creating Multiple
Threads, Thread Priorities, Synchronization, Interthread
5 hours
Communication
5 Event Handling, AWT and UML 10 Hours
5.1 Event Handling-delegation event model, event classes, sources,
3 hours
listeners. String class – basics. Applet basics and methods
5.2 AWT- working with frames, graphics, color, font. AWT Control
3 hours
fundamentals. Swing overview