1 a)What is type conversion?
[1]
b) List the various operators in Java. [1]
c) What is an abstract class? [1]
d) Can a class extend multiple interfaces
2.a) Discuss the various data types available in Java, with examples.
b) Describe the key features of classes and objects in Java. [5+5]
3.a) Write the summary of OOP concepts.
b) Explain the control statements in Java. [5+5]
4.a) Explain the purpose of the CLASSPATH and how it is used in Java.
b) Illustrate the use of the super and this keyword in a Java program. [5+5]
5.a) Explain the process of defining, creating, and accessing a package in Java.
b) Write a Java program that uses the final keyword in the context of Hirarchical inheritance. [5+5]
6a)Explain java Buzz words.
b)Explain the types of inheritance with example.
7a)List and Explain various operators.
b)Explain Constructor Overloading,Method Overloading and Method Overriding with example.
8a)Explain how to achieve Polymorhism in java.
Question Paper Mapping Table
Course Program
Q.
Question Marks Bloom's Level Outcome Outcome
No.
(CO) (PO)
L1
1.a What is type conversion? 1 CO1 PO1
(Remember)
List the various operators L1
1.b 1 CO1 PO1
in Java. (Remember)
Course Program
Q.
Question Marks Bloom's Level Outcome Outcome
No.
(CO) (PO)
L1
1.c What is an abstract class? 1 CO2 PO1
(Remember)
Can a class extend L2
1.d 1 CO2 PO1
multiple interfaces? (Understand)
Discuss the various data
L2
2.a types available in Java, 5 CO1 PO1, PO2
(Understand)
with examples.
Describe the key features
L2
2.b of classes and objects in 5 CO1 PO1, PO2
(Understand)
Java.
Write the summary of L2
3.a 5 CO1 PO1, PO2
OOP concepts. (Understand)
Explain the control L2
3.b 5 CO1 PO1, PO2
statements in Java. (Understand)
Explain the purpose of
L2
4.a the CLASSPATH and how 5 CO1 PO1, PO2
(Understand)
it is used in Java.
Illustrate the use of the
super and this PO1, PO2,
4.b 5 L3 (Apply) CO2
keyword in a Java PO3
program.
Course Program
Q.
Question Marks Bloom's Level Outcome Outcome
No.
(CO) (PO)
Explain the process of
defining, creating, and L2
5.a 5 CO3 PO1, PO2
accessing a package in (Understand)
Java.
Write a Java program
that uses the final PO1, PO2,
5.b 5 L3 (Apply) CO2
keyword in the context of PO3
Hierarchical inheritance.
L2
6.a Explain Java Buzzwords. 5 CO1 PO1, PO2
(Understand)
Explain the types of
L2
6.b inheritance with 5 CO2 PO1, PO2
(Understand)
example.
List and Explain various L2
7.a 5 CO1 PO1, PO2
operators. (Understand)
Explain Constructor
Overloading, Method PO1, PO2,
7.b 5 L3 (Apply) CO2
Overloading, and Method PO3
Overriding with example.
Explain how to achieve
8.a 10 L3 (Apply)
Polymorphism in Java.
b)Explain briefly about Accessing and implementing Interface.
1. Which of the following is NOT a primitive data type in Java?
a) int
b) float
c) String
d) boolean
Answer: c) String
2. Which keyword is used to create an object in Java?
a) class
b) new
c) create
d) object
Answer: b) new
3. Encapsulation is achieved using:
a) Inheritance
b) Polymorphism
c) Data hiding
d) Abstraction
Answer: c) Data hiding
4. Which control statement is used to repeat a block of code?
a) if
b) switch
c) loop
d) break
Answer: c) loop
5. CLASSPATH is used to:
a) Compile Java program
b) Locate class files
c) Run Java code
d) Debug program
Answer: b) Locate class files
6. The super keyword is used to:
a) Call parent class constructor
b) Create object
c) Define class
d) Stop execution
Answer: a) Call parent class constructor
7. Which keyword prevents inheritance?
a) static
b) final
c) super
d) private
Answer: b) final
8. Java supports how many types of inheritance?
a) 2
b) 3
c) 4
d) 5
Answer: d) 5
9. Which operator is used for comparison?
a) =
b) ==
c) :=
d) equals
Answer: b) ==
10. Constructor name must be:
a) Different from class
b) Same as class
c) Any name
d) main
Answer: b) Same as class
11. Method overloading is:
a) Same method name with different parameters
b) Same method name with same parameters
c) Different method name
d) None
Answer: a) Same method name with different parameters
12. Method overriding occurs in:
a) Same class
b) Different packages
c) Parent and child class
d) Static method
Answer: c) Parent and child class
13. Which is not a Java buzzword?
a) Secure
b) Portable
c) Pointer-based
d) Robust
Answer: c) Pointer-based
14. Which loop executes at least once?
a) for
b) while
c) do-while
d) foreach
Answer: c) do-while
15. Which access modifier provides maximum accessibility?
a) private
b) protected
c) public
d) default
Answer: c) public
16. Package is used to:
a) Store variables
b) Organize classes
c) Execute program
d) Compile program
Answer: b) Organize classes
17. Which operator is used for logical AND?
a) &
b) &&
c) ||
d) !
Answer: b) &&
18. Default value of boolean is:
a) true
b) false
c) 0
d) null
Answer: b) false
19. Object is an instance of:
a) Method
b) Class
c) Package
d) Constructor
Answer: b) Class
20. final method cannot be:
a) Called
b) Defined
c) Overridden
d) Inherited
Answer: c) Overridden
✅ Part B: Fill in the Blanks (20 Questions)
1. Java is an ______ oriented programming language.
Answer: Object
2. The size of int data type is ______ bytes.
Answer: 4
3. The keyword used to inherit a class is ______.
Answer: extends
4. The ______ statement is used for decision making.
Answer: if
5. Java does not support multiple inheritance using ______.
Answer: classes
6. The default superclass in Java is ______.
Answer: Object
7. The keyword used to refer current class object is ______.
Answer: this
8. A constructor has the same name as the ______.
Answer: class
9. The ______ keyword is used to stop inheritance.
Answer: final
10. Packages are declared using the keyword ______.
Answer: package
11. The ______ loop is entry controlled loop.
Answer: while
12. The operator used to assign value is ______.
Answer: =
13. Overriding requires same method name and ______.
Answer: parameters
14. CLASSPATH is an ______ variable.
Answer: environment
15. Java is ______ independent language.
Answer: platform
16. The ______ keyword is used to access parent class variables.
Answer: super
17. The break statement is used to ______ the loop.
Answer: terminate
18. Method overloading is an example of ______ polymorphism.
Answer: compile-time
19. Inheritance promotes code ______.
Answer: reusability
20. Java programs start execution from ______ method.
Answer: main