APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : SEMESTER 4

Year : 2017

Term : JULY

Scheme : 2015 Full Time

Course Code : CS 206

Page:1





PDF Text (Beta):

D B4D0374

Total Pages: 2
Reg No.: Name:

APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FOURTH SEMESTER B.TECH DEGREE EXAMINATION, JULY 2017
Course Code: CS206
Course Name: OBJECT ORIENTED DESIGN AND PROGRAMMING (CS)

Max. Marks: 100 Duration: 3 Hours
PARTA
Answer all questions. Each carries 3 marks.
1 What are advantages of using UML? (3)
2 Illustrate the steps involved in Java compilation. (3)
3 Differentiate between a class and an object. (3)
4 Explain briefly about method overloading with an example. (3)
PART B
Answer any two questions. Each carries 9 marks.
5 Represent the following entities using UML class diagram (9)
i) Book ii) Employee 111) Vehicle
6 Construct Use Case diagrams for the following (9)
i) ATM ii) Library 111) Railway reservation
7 Write a Java program to calculate the area of different shapes namely circle, (9)

rectangle, and triangle using the concept of method overloading.

PART C
Answer all questions. Each carries 3 marks.

8 Differentiate between abstract class and an interface. (3)
9 What is an exception? How is it handled? (3)
10 Illustrate the character stream class hierarchy. (3)
11 What are the uses of synchronized keyword in Java? (3)
PART D
Answer any two questions. Each carries 9 marks.
12 a) What is a package? (2)
b) What are the advantages of using a package? (3)

€) Write the steps and java code for creating a package named “AdMath” containing (4)
a method to calculate the factorial of a number passed to it.
13 a) What are the advantages of inheritance? (3)

b) Show how the following inheritance hierarchy can be implemented in Java. (3)

Page 1 of 2

Similar Question Papers