MODEL QUESTION PAPER : 2022-23
Course Code: 21CS33
VIDYAVARDHAKA COLLEGE OF ENGINEERING
Autonomous Institute, Affiliated to Visvesvaraya Technological University, Belagavi
Gokulam, 3rd Stage, Mysuru 570 002
Third Semester B.E. Examinations
Object Oriented Programming with Java
Duration: 3 hours Max. Marks: 100
INSTRUCTIONS TO STUDENTS
1) Answer One Full question from each module
2) Three module questions are compulsory and remaining two modules will have internal choice
Q. No.
Module-I Marks BL CO
1.(a) Explain the primitive data types. 5 L2 CO1
1.(b) Explain for and foreach loop with suitable example. 8 L2 CO1
1.(c) Illustrate operators available in Java with suitable code snippet. 7 L3 CO2
Module-II
2.(a) Compare the different types of constructors in Java. 7 L2 CO1
2.(b) Illustrate the usage of final keyword with suitable Java program. 6 L3 CO2
Develop a Java Program that has a superclass called Figure which stores the dimensions 7 L3 CO2
of a two-dimensional object. It also defines a method called area() that computes the
2.(c) area of an object. Derive two subclasses from class Figure. The first is Rectangle and
the second is Triangle. Apply Method overriding in which each of these subclasses
overrides area() so that it returns the area of a rectangle and a triangle, respectively.
OR
3.(a) Interpret method overloading with suitable example. 7 L2 CO1
3.(b) Illustrate the usage of static keyword with suitable Java program. 6 L3 CO2
3.(c) Illustrate the usage of parameterized constructors with suitable Java program. 7 L3 CO2
Module- III
Demonstrate how user defined Packages can be created in Java. 6 L3 CO2
4.(a)
Apply the concept of Exception handling to handle divide by zero error and 7 L3 CO2
4.(b)
array out of bound exception.
Develop a Java Program to simulate Access protection. 7 L4 CO3
4.(c)
OR
1
MODEL QUESTION PAPER : 2022-23
Course Code: 21CS33
5.(a) Demonstrate the working of nested try catch block with a suitable Java Code. 6 L3 CO2
5.(b) Apply the concept of Interface to handle multiple inheritance situation with a 7 L3 CO2
suitable Java program.
5.(c) Develop a Java Program to demonstrate Multiple catch clauses. 7 L4 CO3
Module-IV
Demonstrate the usage of isAlive() and join() methods in Java with a code 10 L3 CO2
6.(a)
snippet.
6.(b) Develop a Java Program that creates multiple threads. 10 L4 CO3
Module-V
7.(a) Explain the types of JDBC drivers. 7 L2 CO1
7.(b) Develop a Java program that uses scrollable virtual cursor to show the working 13 L4 CO3
of the result set object methods.