Semester : SEMESTER 4
Subject : Object Oriented Design and Programming
Year : 2018
Term : DECEMBER
Branch : COMPUTER SCIENCE AND ENGINEERING
Scheme : 2015 Full Time
Course Code : CS 206
Page:1
Reg No.:
تم +~ +
0)
a)
b)
a)
b)
$2012 Pages: 2
Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FOURTH SEMESTER B.TECH DEGREE EXAMINATION, DECEMBER 2018
Course Code: CS206
Course Name: OBJECT ORIENTED DESIGN AND PROGRAMMING (CS)
Max. Marks: 100
PART A
Answer all questions, each carries 3 marks.
Draw the Use Case diagram of online railway ticket reservation system
Why are java programs said to be platform independent?
What is a constructor? What are its uses?
Why is the main method in java qualified as public, static, and void?
PART 8
Answer any two full questions, each carries 9 marks.
Represent the following class diagram as a java class.
Shape
- length
-breadth
-width
+638) )
#calculateArea( )
+calculateVolume( )
Write briefly about any fourfeatures of Java.
Write a java program to check whether a given number is prime or not.
Show the use of different types of shift operators in java with the help of suitable
examples.
Draw a table showing the visibility of all access specifiers available in java
language with respect to; same class, same package sub-class, same package non
sub-class, different package sub-class, different package non sub-class.
Is it possible create an object for a class A using, A ob = new A();
if the class contains only parameterized constructor? Justify.
PART C
Answer all questions, each carries 3 marks.
Does importing a package makes available all classes, interfaces and sub-
packages within it? Justify.
What are the uses of “finally” statement in exception handling?
Page 1 of 2
Duration: 3 Hours
Marks
(3)
(3)
(3)
(3)
(5)
(4)
(4)
(5)
(6)
(3)
(3)
(3)