USN BPLCK105C/BPLCKC105
First Semester B.E./[Link]. Degree Examination, Dec.2023/Jan.2024
Basics of Java Programming
Time: 3 hrs. Max. Marks: 100
Note: 1. Answer any FIVE full questions, choosing ONE full question from each module.
2 . M : Marks , L: Bloom’s level , C: Course outcomes.
Module – 1 M L C
Q.1 a. Explain the basic principles of object oriented programming. 6 L1 CO1
b. Explain primitive data types used in java. 8 L1 CO1
c. What is type conversion and type casting? Explain with an example. 6 L1 CO1
OR
Q.2 a. Explain two control statements used in Java with syntax and example. 6 L1 CO1
b. What is multidimensional array? Explain with an example program. 8 L1 CO1
c. Explain lexical issues used in java. 6 L1 CO1
Module – 2
Q.3 a. Write a java program to show the use of the following operators: 6 L3 CO2
i) << ii) >> iii) >>>
b. Explain logical operators with example program. 8 L1 CO2
c. Explain for each version of for loop with an example. 6 L3 CO2
OR
Q.4 a. Write a note on: i) Break ii) Continue. 6 L1 CO2
b. Explain different types of if statement with example program. 8 L3 CO2
c. Write a program to demonstrate the use of ternary operator. 6 L3 CO2
Module – 3
Q.5 a. Explain two ways of argument passing methods with example. 6 L1 CO3
b. What are constructors? Explain two different types of constructors with 8 L3 CO3
example program.
c. Define method overloading. Explain constructor overloading with an 6 L2 CO3
example.
1 of 2
BPLCK105C/BPLCKC105
OR
Q.6 a. Write a program to perform stack operations using proper class and 6 L3 CO3
methods.
b. What is recursion? Explain with an example program. 8 L1 CO3
c. Explain: i) This keyword ii) The finalize( ) 6 L1 CO3
Module – 4
Q.7 a. What is Inheritance? Explain how a super class variable can reference a 6 L2 CO3
subclass variable.
b. Explain method overriding with example program. 8 L3 CO4
c. Describe the two uses of super keyword with example. 6 L3 CO4
OR
Q.8 a. Write a note on: i) Final class ii) Final method. 6 L1 CO4
b. Explain dynamic method dispatch with example. 8 L3 CO4
c. What is abstract class? Explain with an example program. 6 L3 Co4
Module – 5
Q.9 a. Define package. Explain with an example program. 6 L3 CO4
b. What is an exception? Explain different mechanisms of handling the 8 L3 CO4
exceptions in java.
c. Explain nested interfaces with example. 6 L1 CO4
OR
Q.10 a. Describe different access specifiers used in java. 6 L1 CO4
b. Define Interface. Demonstrate the working of interface. 8 L1 CO4
c. Explain how one interface can be extended by another with an example 6 L3 CO4
program.
*****
2 of 2