KNS INSTITUTE OF TECHNOLOGY
DEPARTMENT OF ARTIFICIAL INTELLIGENCE & MACHINE LEARNING
QUESTION BANK -1
Academic Year (2025– 2026)
Semester III Subject Code BCS306A Subject Name OOPS WITH JAVA
COURSE OUTCOMES:
CO1: Demonstrate proficiency in writing simple programs involving branching and looping
structures.
CO2: Design a class involving data members and methods for a given scenario.
L1 Remember L2 Understand L3 Apply L4 Analyze L5 Evaluate L6 Create
QUESTIONS FROM MODULE-1, 2 Knowled
Q. NO CO ge
level
MODULE -1
1. Define Object-Oriented Programming, Explain Two Paradigms? 1 L1
2. Explain object-oriented principles. 1 L2
i) Abstraction
ii) Encapsulation
iii) Inheritance
iv) Polymorphism
3. Explain different lexical issues in java? 1 L1
4 Explain java keywords and separator 1 L1
5 Explain all the primitive data types in java? With the help of program and with 1 L3
syntax of how to declare a data type.
6 Explain all Literal Type with its description and example? 1 L1
7 What is variable? also mention its syntax, and a program and how does 1 L2
Dynamic initialization work? And what is the scope and lifetime of
variables.
8 What is Type Conversion and Casting? Explain both type of type 1 L3
conversion?
9 Define Arrays? And explain the following with the help of programs 1 L3
a) One-Dimensional Arrays
b) Multidimensional Arrays
c)Alternative Array Declaration Syntax
10 Explain all the following operators and subtype of each with the help of program 1 L2
a) Arithmetic operators
b) Bitwise Logical Operators
c) Bitwise Operator Compound Assignments
d) Relational Operators
e) The ? operator
f) The Assignment Operator
11 Briefly describe Operator Precedence? 1 L3
12 With help of Java Syntax and program supports explain two selection statements: if 1 L1
and switch
13 Explain the following with help of program 1 L2
a) Nested if
b) The if-else-if Ladder
c) Nested switch Statements
d) Nested Loops
14 Explain Iteration Statements for, while, and do-while with the help of program 1 L2
15 Explain three jump statements: break, continue, and return 1 L2
16 Write code for the following: 1 L6
a) Write a Java program to sort the elements using a for loop.
b) Write a Java program to implement the addition of two matrixes
c) Write a Java program to Convert Celsius temperature to Fahrenheit.
17 Justify the statement “Compile once and run anywhere” in Java? L3
MODULE -2
18 Define Class, and explain Class Fundamentals, The General Form of a Class and a 2 L3
program?
19 What is Object? and explain declaring an object with program and a block 2 L3
diagram? And explain Assigning Object Reference Variables how it work with help
of block diagram
20 Define Methods , Explain General form of a method and write a program to 2 L3
explain methods
21 Define Constructor and explain with the help of program? 2 L4
22 Describe the following with the help of program: 2 L3
1. Parameterized Method
2. Non-Parameterized Method
3. Parameterized Constructors
4. Zero-Parameterized Constructors
23 Explain the following with the help of program: 2 L2
1. The this Keyword
2. Instance Variable Hiding:
3. Garbage Collection
4. A Stack Class
24 Explain the following with the help of program: 2 L4
a) Method Overloading
b) Constructor Overloading
c) Using Objects as Parameters
d) Call by Value
e) Call by Reference
f) Access Control
g) Access modifier
h) Final Keyword
i) Static Keyword
j) Returning objects
25 What is Recursion with help of following program: 2 L6
a) computing factorial of a number
b) printArray()
26 Describe the following terms in details with the help of program 2 L2
a) Array Revisited
b) Nested and Inner Classes
Faculty-in-charge HOD