APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : SEMESTER 4

Year : 2018

Term : APRIL

Scheme : 2015 Full Time

Course Code : CS 206

Page:1





PDF Text (Beta):

D D4809 Pages: 2

Reg No.: Name:

APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FOURTH SEMESTER B.TECH DEGREE EXAMINATION, APRIL 2018

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 Marks
1 Briefly explain the primitive data types used in Java. (3)
2 Why Java is called pure object-oriented language? (3)
3 Explain how access modifiers are used to control the visibility of identifiers. (3)
4 Write a note on Java Virtual Machine. (3)
PART B
Answer any two full questions, each carries 9 marks
5 ஐ _ Draw the Use case diagram of a movie reservation system. (4)
b) Write a program to check whether a string is palindrome or not. The input is to (5)
be accepted through command line parameter.
6 2) Describe the following statements in Java.: (4)
i) switch and for ii) break and continue
b) Define a Java class having overloaded methods to calculate area of rectangle (5)
and circle.
7 8) What is the use of constructor in Java? Give examples. (4)
b) 15 it possible to create an object for class A using, A ob = new A(); if the class (5)
contains only parameterized constructor? Why?
PART C
Answer all questions, each carries 3 marks
8 What is the use of interface in Java? Give example. (3)
9 With the help of examples, explain how inheritance is implemented in Java. (3)
10 Write a note on byte stream and character stream related classes. (3)
11 Define package. How is a class within a package compiled and executed? (3)
PART 0
Answer any two full questions, each carries 9 marks
12 a) Explain the different ways of creating threads in Java. (4)
b) Write a Java program that accepts N integers through console and compute their (5)
average.
13 Develop a java package named primepackage, with a class Prime containing a (9)

static method that check whether a number is prime or not and returns that
information. Import this package in another class and use to check a number is
prime or not.

Page 1௦12

Similar Question Papers