0% found this document useful (0 votes)
21 views4 pages

Java I Mid QB

Uploaded by

xivoja3870
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views4 pages

Java I Mid QB

Uploaded by

xivoja3870
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

OOPS THROUGH JAVA I MID QUESTION BANK

UNIT-I

PART A

SNO QUESTION MARKS RBT CO

1 What is importance of Unicode in java? Explain. 2 Level 1 1

2 What is the significance of Java’s byte code? 2 Level 1 1

3 Compare inheritance with polymorphism 3 Level 2 1

4 What is byte code? How it will be generated? 3 Level 1 1

5 Illustrate type casting in java with an example. 3 Level 2 1

6 Explain briefly history of Java. 3 Level 5 1

7 Explain the basic program structure of Java. 3 Level 5 1

8 What are the different data types used in Java? 3 Level 1 1

PART B

SNO QUESTION MARKS RBT CO


What are the problems with procedure languages? How object oriented
1 7 Level 1 1
languages overcomes the problems of procedural languages?
2 List and explain the applications of OOPs 7 Level 4 1

3 What are java Buzzwords? Explain about them. 8 Level 5 1

4 Explain iteration statements in detail with examples. 8 Level 5 1

5 Discuss the principles of object oriented languages in detail. 8 Level 6 1


What is the role and responsibility of JVM in program execution?
6 6 Level 1 1

7 Explain Primitive type conversion and casting with examples. 7 Level 5 1

8 Explain precedence rules and associativity concept. 7 Level 5 1

9 Discuss in detail about java operators with examples. 10 Level 6 1


Illustrate the usage of jump statements in Java with example.
10 8 Level 2 1
UNIT II

PART A

SNO QUESTION MARKS RBT CO


1 Define class and object in java 3 Level 1 1
2 Discuss about local class. 3 Level 6 1
3 List the various ways of ‘static’ keyword usage. 3 Level 4 1
4 Discuss about garbage collection 4 Level 6 1
5 How to allocate memory for objects? 2 Level 1 1
6 List out the characteristics of the static method. 3 Level 4 1
7 What is ragged array? 3 Level 1 1
4 Level 2 2
8 Illustrate with a program the use of command line arguments.

What is a constructor? When does the compiler supply default


9 constructor for a class? 3 Level 1 1

PART B

SNO QUESTION MARKS RBT CO


1 7 Level 4 2
Distinguish non static inner class and static inner class with examples.
2 Discuss about method overloading with example. 7 Level 6 2

What is an array? How one dimension and two dimension arrays are
3 8 Level 5 2
declared and initialized? Explain with example.

4 Explain the different types of constructors with example. 8 Level 5 2

5 Explain this keyword with example. 7 Level 5 2

6 Explain the concept of variable length arguments with example. 7 Level 5 2

7 Illustrate constructor overloading with example. 7 Level 2 2

Demonstrate a Java program to find the sum of the squares of the


8 7 Level 2 2
diagonal elements of a square matrix.

Demonstrate a Java program to sort a given set of strings in the


10 alphabetical order where the strings are supplied through the command 7 Level 2 2
line.
UNIT-III

PART A

SNO QUESTION MARKS RBT CO


1 How java supports multiple inheritance? 3 Level 1 1
2 Compare class, abstract class and interface. 3 Level 2 1
3 What is an assertion? What is its use in programming? 3 Level 1 1
4 What are the benefits of inheritance? 3 Level 1 1
5 What are the various types of exceptions available in Java? 3 Level 1 1
6 Explain various access specifiers supported by Java. 3 Level 5 1
7 List the basic keywords used in exception handling. 3 Level 4 1

8 Demonstrate short notes on Java built in exceptions. 4 Level 2 1

9 Why to use finally block in java exception handling? 3 Level 1 1

PART B

SNO QUESTION MARKS RBT CO

What is an exception? Explain exception handling in java with


1 7 Level 5 2
examples.

2 How to define a user exception in a program? Illustrate with an 7 Level 2 2


example?
Compare and contrast method overloading with method overriding
3 8 Level 2 2
with examples.

What is interface? How to create it and access it? Explain with


4 8 Level 1 2
example.

5 How to handle multiple catch blocks for a try block? Explain with an 7 Level 5 2
example.
6 8 Level 1 2
What is the importance of abstract classes? Show it with an example.
7 Explain various forms of inheritance with suitable code segments. 10 Level 5 2
a)Simple b)Multilevel c)Hierarchial d)Multiple
8 8 Level 5 2
What is the use of super keyword in Java? Explain in detail.
9 Explain usage of following words in exception handling: throw, 7 Level 5 2
throws, finally.
10 With suitable code segments illustrate various uses of ‘final’ keyword. 7 Level 2 2

You might also like