END SEMESTER EXAMINATIONS – MAY 2026
Programme & Batch: [Link].(RAI) – 6 Semester : IV
Course Name : Java Programming Course Code : 244DS1A44TD
Duration : 3 hours Maximum Marks: 100 marks
Instructions:
1. Before attempting any question paper, ensure that you have received correct question paper.
2. The missing data, if any, may be assumed suitably.
3. Use the sketches wherever necessary.
4. No Codes / Tables / Charts / Data book is permitted.
Question
Mark BTL CO
No Question
PART A (20×1 = 20 Marks) Answer all the Questions
(Multiple Choice Questions)
(Lower / Intermediate cognitive type Questions)
Which of the following is a platform-independent feature of
Java?
a) Code dependent
1 1 K1 CO1
b) Compile once, run everywhere
c) Pointers
d) Platform-dependent
Which of the following is a platform-independent feature of
Java?
a) Code dependent
2 1 K2 CO1
b) Compile once, run everywhere
c) Pointers
d) Platform-dependent
What is the extension of a compiled Java class file?
a) .java
3 b) .js 1 K1 CO1
c) .class
d) .txt
What does JDBC stand for?
a) Java Database Connectivity
4 b) Java Data Binary Connection 1 K2 CO1
c) Joint Database Connectivity
d) Java Database Connection
Which component is used to compile, debug and execute the
java programs?
a) JRE
5 1 K1 CO2
b) JIT
c) JDK
d) JVM
A class is a
a) Object
6 b) Blueprint 1 K2 CO2
c) Variable
d) Method
7 Inheritance allows 1 K1 CO2
a) Code deletion
b) Code reuse
c) Compilation
d) Execution
Which data type is used for decimal values?
a) int
8 b) float 1 K2 CO2
c) char
d) boolean
JRE stands for
a) Java Runtime Environment
9 b) Java Runtime Execute 1 K1 CO3
c) Javascript Runtime Environment
d) Javascript Runtime Execute
Polymorphism means
a) Duplicate form
10 b) Many form 1 K2 CO3
c) Single form
d) None of the above
Who invented Java Programming?
a) Guido van Rossum
11 b) James Gosling 1 K1 CO3
c) Dennis Ritchie
d) Bjarne Stroustrup
Which of these is not a primitive data type in Java?
a) int
12 b) boolean 1 K2 CO3
c) char
d) String
Which keyword is used to inherit a class in Java?
a) inherits
13 b) extends 1 K1 CO4
c) implements
d) using
Which block is always executed, whether an exception occurs
or not?
a) catch
14 1 K2 CO4
b) try
c) finally
d) except
Thread lifecycle includes
a) Start
15 b) Run 1 K1 CO4
c) Dead
d) All
Interface supports
a) Single inheritance
16 b) Multiple inheritance 1 K2 CO4
c) No inheritance
d) Partial inheritance
17 Keyword used to refer current object 1 K1 CO5
a) super
b) this
c) static
d) final
A destructor is a special member function that is
automatically called when an object goes out of scope or is
18 explicitly deleted. 1 K2 CO5
a) True
b) False
Package is
a) Class
19 b) Collection of classes 1 K1 CO5
c) Method
d) Variable
Thread is
a) Program
20 b) Process 1 K2 CO5
c) Lightweight process
d) Compiler
PART B (5×14 = 70 Marks) Answer all the Questions
Detailed Answer Type Question (Either or choice)
(Both subdivision to have same / Intermediate / Higher order cognitive type Questions)
21 (a) Explain the different OOPS concept in detail. 14 K2 CO1
(OR)
What is Array? How array can be declared and initialized in
21 (b) 14 K4 CO1
java? Explain it.
22 (a) Write a Java program to describe constructor and destructor. 14 K3 CO2
(OR)
22 (b) Write a Java program to implement method overloading. 14 K4 CO2
What is inheritance? Explain the different types of inheritance
23 (a) 14 K2 CO3
with neat diagram.
(OR)
23 (b) Explain the Interface concept and method overriding in java. 14 K2 CO3
Explain the following with example
a) try
24 (a) 14 K2 CO4
b) catch
c) finally
(OR)
24 (b) How will you create and use package in Java? Explain it. 14 K2 CO4
What is Thread? Explain the thread life cycle with neat
25 (a) 14 K2 CO5
diagram.
(OR)
Explain the following
25 (b) a) Thread Priority 14 K2 CO5
b) Thread Synchronization
PART C (1×10 = 10 Marks) Answer the Question
(Application / Analysis / Evaluation / Design / Creativity / Case Study Type Question)
Write a java program to calculate the gross salary of an
employee when Basic Salary = Rs.8600, DA = 20% of Salary,
26 10 K6 CO6
HRA = 10% of Salary, CTA = 12% of the Salary.
Gross Salary = (Salary + DA + HRA + CTA)
Knowledge Level as per Bloom Taxonomy
K1- Remember; K2- Understand; K3- Apply; K4- Analyse; K5- Evaluate; K6- Create