0% found this document useful (0 votes)
55 views

Adamas University: Supplementary Examination: March 2021

This document provides instructions and questions for a supplementary examination in Object Oriented Programming. It includes 8 questions across 3 groups (A, B, C). Group A contains 5 short answer questions worth 1 mark each. Group B contains 3 long answer questions worth 5 marks each, requiring explanations of byte code, exception handling, and method calling. Group C contains 2 long answer questions worth 10 marks each, involving object-oriented concepts like inheritance, method overriding, and method overloading applied to calculating distances and volumes. Candidates are instructed to answer all questions clearly showing their working and using assumptions where needed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

Adamas University: Supplementary Examination: March 2021

This document provides instructions and questions for a supplementary examination in Object Oriented Programming. It includes 8 questions across 3 groups (A, B, C). Group A contains 5 short answer questions worth 1 mark each. Group B contains 3 long answer questions worth 5 marks each, requiring explanations of byte code, exception handling, and method calling. Group C contains 2 long answer questions worth 10 marks each, involving object-oriented concepts like inheritance, method overriding, and method overloading applied to calculating distances and volumes. Candidates are instructed to answer all questions clearly showing their working and using assumptions where needed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

ADAMAS UNIVERSITY

SUPPLEMENTARY EXAMINATION: MARCH 2021


Name of the Program: Bachelor of Computer Application Semester: 3
Stream: Computer Science and Engineering
PAPER TITLE: Object Oriented Programming PAPER CODE: ECS32103
Maximum Marks: 40 Time duration: 3 hours
Total No of questions: 8 Total No of Pages: 3

Instruction for the Candidate:


1. At top sheet, clearly mention Name, Univ. Roll No., Enrolment No., Paper Name & Code, Date of Exam.
2. All parts of a Question should be answered consecutively. Each Answer should start from a fresh page.
3. Assumptions made if any, should be stated clearly at the beginning of your answer.

Answer all the Groups


Group A
Answer all the questions of the following 5 ×1=5

1. a) Which is a technique in Java in which a class can have any number of constructors that differ in
parameter lists?
b) Which method cannot be overridden?
c) Which class cannot be instantiated (can’t create object)?
d) Which modifier cannot be used for constructors?
e) Define the term Byte code

GROUP –B
Answer any three of the following 3 ×5=15

2. What is Byte code?? Why Java is called compiler-interpreter language.


3. Consider First n even numbers starting from zero(0) and calculate sum of all the numbers divisible by 3 from
0 to n. Print the sum.
4. Define Exception. Write the different type of Exception with example.
5. Call static and non-static methods namely sum( ) and multiply ( ) respectively. You have to call these methods
to find the sum and product of two numbers.

GROUP –C
Answer any two of the following 2 ×10=20

6.
a. Write the difference between this and super keyword.
b. Define a class Point with two fields x and y each of type double. Also , define a method
distance(Point p1, Point p2) to calculate the distance between points p1 and p2 and return the value in
double. Complete the code segment given below. Use Math.sqrt( ) to calculate the square root.
[2+8]

Page 1 of 2
7.
a. Explain how Dynamic Method Dispatch overcomes the problem of method overriding.
b. Write a class with the volume () using method overloading that computes the volume of
a cube, a sphere and a cuboid.
Volume of a cube (vc ) =s*s*s
Volume of a sphere (vs) = 4/3*pi*r*r*r
Volume of a cuboid (vcd)= l*b*h

Write a main method to create an object of a class and call the above member method

[4+6]

8.

a) Define Inheritance? How to implement multiple inheritance in Java?


b) Write a program to demonstrate multilevel inheritance for add, subtract and multiply of two
numbers using constructor with super keyword.
[3+7]

________________

Page 2 of 2

You might also like