APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : SEMESTER 4

Year : 2019

Term : DECEMBER

Scheme : 2015 Full Time

Course Code : CS 206

Page:1





PDF Text (Beta):

D D192057 Pages:3

Reg No.:_ Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FOURTH SEMESTER B.TECH DEGREE EXAMINATION(S), DECEMBER 2019

Course Code: CS206
Course Name: OBJECT ORIENTED DESIGN AND PROGRAMMING

Max. Marks: 100 Duration: 3 Hours
PARTA

Answer all questions, each carries 3 marks. Marks
1 Distinguish between structural and behavioural UML diagrams. (3)
2 Illustrate how information hiding is achieved in Java. (3)
3 Define Testing. What are the major differences between Verification and Validation (3)

Testing?

4 With a simple example, explain the argument passing mechanism used in Java to (3)

pass an instance of a class as argument to a method.
PART B
Answer any two full questions, each carries 9 marks.
5 9) What are the notations used to represent a public, private, protected and package (3)
scope members in a class diagram?
b) What is the syntax for representing a method and a data member in aclass diagram? (2)
c) Model a Java class in such a manner that it is restricted to have only one instance (4)
throughout the program in which it is used.
6 9) Illustrate the major functionalities of the ‘Class Loader’ component within the JVM _ (2)
architecture.
b) Consider a scenario where a class ‘Rectangle’ with two data members ‘Length’, (5)
‘Breadth’ has to be defined and initialized. Sometimes there would be a need that
the instance initialization should happen by copying the value from an already
initialized instance to the new instance. Model such a class with appropriate
constructors and illustrate the working of the class.
7 2) Why is that, in Java the size of ‘char’ datatype is of 2 bytes while that in Cis of (1)
byte?
b) Illustrate the different steps in the design phase of the Object Oriented Software (3)
Development Process.
c) Write a Java program with a class ‘Complex’ to represent complex numbers. Model (5)

the class in such a way that it uses constructor overloading aspects to initialize its

Page 1 of 3

Similar Question Papers