OOPJ Question Paper4
OOPJ Question Paper4
BABASAHIEB AMBEDKAR
TECHNOLOGICAL, UNIVERSITY, LONERE
Winter Examination - 2022
Course: B. Tech,
Branch :Computer Science & Engincering Semester :III
Subject Code & Name: BTCOC305(B) Objcct Oriented Programming in Java
Max Marks: 60 Date: Duration: 3 Hr.
Tnstructions to the Students:
1. All the questions are compulsory.
2. The level of question/expected answer as per OBEor the Course Outcome(CO) on
which the question is based is mentioned in () in front of the question.
3. Write proper Syntax, example and program wherever necessary.
4 Assume suitable data wherever necessary and mention it clearly.
(Level/CO) Marks
12
01 Solve Any Two of the following.
Remember 6
MDefine Class, Method and Object? Show the syntax to define these in
java.
6
BExplain parameterized constructor with java program. Apply
Understanding 6
What are get () and set () method in java? State advantages of get () and
set ) method.
12
0.2 Solve Any Two of the following,
6
A) Write a program in Java to display n terms of natural numbers and their Apply
Sum.
B) What is static variable and static function? State difference between Understan ding
static method and instance method.
12
Q.3 Solve Any TwO of the following.
A) What is an Array? How do you declare and initialize`an Array in java? Analysis
What are the disadvantages of Array?
B) How to pass Arrays to method and return from method in
Java? Understanding
C) What is a Multidimensional array? Write ajava program for addition of Apply
two dimensional arrays.
O|What is an abstract class in java? What is an interface? List the rules to Understaading
create an interface in java with example.
12
following.
Q.5| Solve AnyTwo of the in Remember
state benefits of exception handling
6
A) What is exceptions handling and
Keywords.
java? Explain Java Exception Harndling Analysis 6
user defined package in
B) What is package? Write a program to create
java.
C) How to declare variables in JavaScript? Write a Java script Program to Understanding
add two numbers by using on click event, form and text boOx.
k** End **
The grid and the borders of the table will be hidden before final printing.