You are on page 1of 12

JNTU World

TU

or

ld

www.alljntuworld.in

PART A (Short Answer Questions)


S. No
Question

Blooms
Course
Taxonomy Level Outcome
UNIT - I

Define OOP?
Distinguish between procedural language and OOPs?
Define Encapsulation?

Understand
Understand
Understand

2
8
4

4
5
6
7
8
9

Define Inheritance?
Define Polymorphism?
List advantages of OOP?
List disadvantages of OOP?
Write history of java?
Describe a data type?

Understand
Understand
Understand
Understand
Knowledge
Understand

2
3
2
2
8
4

10
11
1
2

Describe a constant?
Describe scope and life time of variables?
List types of operators?
Define type conversion?

Understand
Understand
Understand
Understand

2
3
2
8

JN

1
2
3

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

Question

3
4
5
6

Define type casting?


Define enumerated types?
Define an array?
Define this reference?

7
8
9

Define constructor?
Define recursion?
Define garbage collection?

Blooms
Course
Taxonomy Level Outcome
Understand
4
Understand
2
Understand
3
Understand
5

UNIT II

Understand
Understand
Understand

5
5
5

Understand
Understand

3
3

Remember
Understand
Understand
Understand
Understand
Understand

3
3
2
8
4
2

ld

S. No

Define Inheritance?
List types of inheritances in java?

3
4
5
6
7
8

Write Member access rules


Write Uses of Super keyword
Write using final keyword with inheritance
Write about Object class
Define abstract classes?
Define polymorphism?

9
10
11
12
13
14

Define dynamic binding?


Define method overriding?
Difference between interfaces vs. Abstract classes
Define interface?
Define inner classes?
Define static inner classes?

Understand
Understand
Understand
Understand
Understand
Understand

3
5
5
5
5
2

15
16
17
18
19
20

Define a package?
Write creating, importing packages?
Define abstract methods?
Define CLASSPATH?
List advantages of inheritance?
Write implementing an interface

Understand
Understand
Understand
Understand
Understand
Understand

8
4
2
3
3
3

TU

or

1
2

UNIT - III

Define Exception?
Distinguish between exception and error?
Write benefits of exception handling
Write the classification of exceptions
Define checked exceptions?

Understand
Understand
Understand
Understand
Understand

5
2
8
4
2

6
7
8
9
10
11

Define unchecked exceptions?


Define built in exceptions?
Write the usage of try and catch
Write the usage of throw, throws and finally
Distinguish between throw and throws?
Distinguish between process and thread?

Understand
Understand
Understand
Understand
Understand
Understand

3
5
5
5
5
10

12

Write thread states

Understand

10

JN

1
2
3
4
5

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

S. No

Question

Blooms
Course
Taxonomy Level Outcome
Understand
10
Understand
2
Understand
8
Understand
4

13
14
15
16

Write creation of thread?


Define producer consumer problem?
Define inter-thread communication?
Write How threads are synchronized?

17
18
19
20

Write thread priorities


How many ways can thread be Created?
Write the alive() and join() method
Write thread class implements Runnable interface

Define collections?

2
3
4
5
6
7

Define Java collection Frame work.


Define Array List with syntax
Define Vector with syntax.
Define hash table with syntax.
Define stack with syntax.
Define enumeration with syntax.

8
9
10
11
12
13

2
3
10
10

Understand

11

Understand
Understand
Understand
Understand
Understand
Understand

11
11
11
2
8
4

Write Iterator.
Write the function of stringTokenizer.
Define random class.
Define Scanner class.
Define Calendar class.
Define Properties class

Understand
Understand
Understand
Understand
Understand
Understand

2
3
11
11
2
8

14
15
16
17
18
19

Define Stream?
Define byte stream?
Define character stream?
Define text input/output file?
Define JDBC?
List types of JDBC drivers.

Understand
Understand
Understand
Understand
Understand
Understand

4
2
3
11
7
7

20

Define random access file?

Understand

11

TU

or

UNIT IV

ld

Understand
Understand
Understand
Understand

UNIT - V

Define AWT class hierarchy?


Distinguish between swings Vs AWT?
Write hierarchy for swing?
Define components?

Understand
Understand
Understand
Understand

2
8
4
2

5
6
7
8
9
10

Define containers?
Define JFrame, JApplet, JDialog and Jpanel?
Define some of swing components?
Define Jbutton, JLabel, JTextField and JtextArea?
Define Layout management?
List Layout manager types border and grid flow?

Understand
Understand
Understand
Understand
Knowledge
Understand

3
8
8
8
2
8

11

Write Events, Event sources, Event classes

Understand

JN

1
2
3
4

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

S. No

Question
Write Event Listeners
Describe the relationship between Event sources and Listeners?
Define Delegation event model?
Describe events for handling a button click?

16
17
18
19
20

Describe events for handling mouse events?


Define adapter class?
Distinguish between applet and application?
Write applet life cycle
Describe applet security issues?

or

PART B (Long Answer Questions)

Understand
Knowledge
Understand
Understand
Understand

8
4
2
3
9

ld

12
13
14
15

Blooms
Course
Taxonomy Level Outcome
Understand
2
Understand
3
Knowledge
8
Understand
2

Question

Blooms
Course
Taxonomy Level Outcome

UNIT I
Describe the characteristics of object oriented programming concepts?

Understand

2
3
4
5
6
7

Describe the features (buzzwords) of Java Programming language?


Write the Differences between Java and C++.
Write Java is a pure object oriented programming language
Distinguish between applications and applets in Java?
Write about this reference.
Write about the method overloading with an example.

Understand
Understand
Understand
Understand
Understand
Understand

8
4
2
3
1
1

8
9
10
11
12
13
14

Write about the constructor overloading with an example.


Write the concept of arrays with an example.
Write about string class with an example.
Write about the console input and output with an example.
Write about simple stand alone programs.
Write about conditional statements.
Write about loops with an example.

Understand
Understand
Understand
Apply
Apply
Understand
Understand

2
8
4
2
3
1
1

15
16
17
18

Write about the break and continue statements with an example.


Write about the operator hierarchy with an example.
Write about all the operators in java with an example.
Define static field? Write with an example.

Understand
Understand
Understand
Knowledge

1
1
2
8

JN

TU

S. No

19

Define static method? Write with an example.

Knowledge

20

Define type conversion, type casting with an example?

Knowledge

UNIT II

Define Inheritance? Discuss its uses and Hierarchical abstractions?

Knowledge

2
3
4

List types of inheritances in java? Write each of them in detail.


Write about Object class in detail
Write Uses of Super keyword , discuss accessing the member of a

Understand
Understand
Understand

3
2
8

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

S. No

Question

Blooms
Course
Taxonomy Level Outcome

super class
Define package? Discuss its advantages?
Write different Types of Packages?
Define dynamic binding? Write with an example?

Knowledge
Understand
Knowledge

4
2
3

Define method overriding? Write with an example?

Knowledge

Define Abstract classes? Write with an example?

Knowledge

10

Define interface? Write with an example?

Knowledge

11

Define inner classes? Write with an example?

Knowledge

12
13
14
15

Write in detail about creating , importing packages


Write how packages are accessed
Write extending interfaces with an example
Define interface? Write Differences between classes and interfaces?

Understand
Understand
Understand
Knowledge

2
3
12
2

16
17
18
19
20

Write final classes , methods with an example


Write inheritance with an example
Write how to prevent inheritance
Write Member access rules with an example
Write working procedure of CLASSPATH

Understand
Understand
Understand
Understand
Understand

8
4
2
3
3

1
2
3
4
5
6

UNIT - III
Write about exception handling mechanisms
Write try, catch , and finally with an example
Define throw keyword? Write with an example
Define throws keyword? Write with an example
Write a program to implement built in exceptions?
Write creation of thread

Understand
Understand
Understand
Understand
Apply
Understand

2
8
4
2
3
3

7
8
9
10

Write with an example how java performs thread synchronization?


Write producer consumer problem with an example
Write about multithreading
Write the life cycle of a thread

Apply
Apply
Understand
Understand

8
4
2
3

UNIT IV
Write the Java Collection frame work with an example.

Understand

2
3
4
5
6
7

Write ArrayList with an example.


Write Vector with an example.
Write hash table with an example.
Write stack with an example.
Write enumeration with an example.
Write iterator with an example.

Remember
Remember
Remember
Remember
Remember
Remember

8
4
2
3
11
11

8
9

Write String Tokenizer with an example.


Write Random with an example.

Remember
Remember

11
11

JN

TU

or

ld

5
6
7

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

S. No

Question

Blooms
Course
Taxonomy Level Outcome
Remember
11
Remember
2
Remember
8
Remember
4

Write Scanner class with an example.


Write Calender class with an example.
Write Properties class with an example.
Write text input/output file operations.

14
15
16
17
18
19

Write binary input/output file operations.


Write random access file operations.
Write File management using File class.
Write JDBC with an example.
Write different types of JDBC drivers with diagrams.
Write JDBC example for querying the database and processing the
results.

20

Write JDBC example for updating data.

Remember
Remember
Remember
Understand
Understand
Apply

2
3
11
11
11
11

Apply

11

or

ld

10
11
12
13

UNIT V

Write in detail about hierarchy for swing?


Write in detail about hierarchy for awt?

Understand
Understand

8
2

3
4
5
6
7
8

Write in detail about Layout management?


Write a program for handling a button clicks?
Write a program for handling mouse events?
Write in detail about Events, Event sources and Event classes
Write in detail about Event sources and Listeners
Write program for simple applet?

Understand
Understand
Understand
Apply
Apply
Apply

8
4
2
3
8
8

9 Write a program for passing parameters to applet?


10 Write a program to C a factorial of a number using swing
components?
11 Write a program to C a factorial of a number using awt components?

Apply
Apply

8
8

Apply

TU

1
2

PART C (Problem Solving and Critical Thinking Questions)


S. No

UNIT I
Student john12 = new Student(1001, "John", 12);
Student john13 = new Student(1002, "John", 13);
System.out.println("comparing John, 12 and John, 13 with compareTo
:" + john12.compareTo(john13));

JN

Question

predict the output of the code?


switch (N % 6)
{
case 3:System.out.println(Wednesday);
default: System.out.println (Sunday);
case 5: System.out.println (Friday);
}
In the above code if N = 27, then predict the output of the code?
for(i = 1;i < 3; i++)
{

Blooms
Course
Taxonomy Level Outcome
Understand

Understand

Apply

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

Question

for( j = 1; j < 3; j++


{
for(k = 1; k < 3; k++)
{
if(j == k)
break;
else
{
System.out.println (%d%d%d, i, j, k);
continue;
}
}
}
Predict the output of the above code.

or
Understand

Analyze

Understand

Understand

TU

Explain the following code whether it is legal in Java? Is it an example


of method overloading or overriding?
public String getDescription(Object obj)
{
return obj.toString;
}
public String getDescription(String obj)
{
return obj;
}
and
public void getDescription(String obj)
{
return obj;
}
Analyze the following program and find the output of the program?
public class CounterAtomic
{
private AtomicLong counter = new AtomicLong();

Blooms
Course
Taxonomy Level Outcome

ld

S. No

public void increment()


{
counter.incrementAndGet();
}
public long get()

JN

return counter.get();

1
2

UNIT - II
Write the java program to print the Armstrong number using method
overriding?
Explain the following code legal in Java?
class OuterClass
{
private int privInt = 10;
public void createInnerClass()
{

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

S. No

Question

Blooms
Course
Taxonomy Level Outcome

InnerClass inClass = new InnerClass();


inClass.accessOuter();

ld

}
class InnerClass
{
public void accessOuter()
{
System.out.println("The outer class's privInt is " +
privInt);
}
}

or

Analyze

Apply

}
public static void main(String[] args)
{
//create instance of outer class first:
OuterClass outClass = new OuterClass();
OuterClass.InnerClass inner = outClass.new InnerClass();
inner.accessOuter();
}
Analyze the following program and find the output of the program?
class A
{
//Members and methods declarations.

class B extends A {
//Members and methods from A are
inherited.

//Members and methods declarations of B.

JN

TU

}
class A {
public A() {
System.out.println("New A");
}
}
class B extends A {
public B() {
super();
System.out.println("New B");
}
}
Illustrate the output of the following program?
interface MyInterface
{
public void method1();
public void method2();
}
class XYZ implements MyInterface
{
public void method1()
{

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

S. No

Question

Blooms
Course
Taxonomy Level Outcome

Knowledge

Understand

Knowledge

Knowledge
Understand

1
1

}
Describe how do we set the path for class which is present in another
class?
UNIT - III
Explain the output of the following program?
import java.util.Scanner;
class Division
{
public static void main(String[] args)
{
int a, b, result;
Scanner input = new Scanner(System.in);
System.out.println("Input two integers");
a = input.nextInt();
b = input.nextInt();
result = a / b;
System.out.println("Result = " + result);
}
}
Write a java program to book the online cinema ticket by using thread
synchronization?

or

ld

System.out.println("implementation of method1");
}
public void method2()
{
System.out.println("implementation of method2");
}
public static void main(String arg[])
{
MyInterface obj = new XYZ();
obj. method1();
}

TU

Describe the need for rethrowing an exception in java


Explain the output of the following program?
class Exceptions
{
public static void main(String[] args)
{
String languages[] = { "C", "C++", "Java", "Perl", "Python" };
try
{
for (int c = 1; c <= 5; c++)
{
System.out.println(languages[c]);
}
}
catch (Exception e)
{
System.out.println(e);
}
}
}

JN

3
4

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

S. No

class Allocate
{
public static void main(String[] args)
{
try
{
long data[] = new long[1000000000];
}
catch (Exception e)
{
System.out.println(e);
}
finally
{
System.out.println("finally block will execute always.");
}
}
}
Predict the output of the following code?
UNIT IV
Describe fastest type of JDBC driver?
Analyze the following program and find the output of the program?
public class Test
{
public static void main(String[] args)
{
System.out.println(Math.min(Double.MIN_VALUE, 0.0d));
}
}
Analyze the following program and find the output of the program?
public class Test
{
public static void main(String[] args) throws Exception
{
char[] chars = new char[] {'\u0097'};
String str = new String(chars);
byte[] bytes = str.getBytes();
System.out.println(Arrays.toString(bytes));
}
}
Compare the output before adding and after adding?
import java.util.*;

Blooms
Course
Taxonomy Level Outcome
Understand
1

TU

2
2

Apply

Remember

JN

Remember
Apply

1
2

or

ld

Question

public class ArrayListExample


{
public static void main(String args[])
{
ArrayList<String> obj = new ArrayList<String>();
obj.add("Ajeet");
obj.add("Harry");
System.out.println("Currently the array list has following
elements:"+obj);
obj.add(0, "Rahul");

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

S. No

Question

Blooms
Course
Taxonomy Level Outcome

obj.add(1, "Justin");
obj.remove("Chaitanya");
obj.remove("Harry");
System.out.println("Current array list is:"+obj);
obj.remove(1);
System.out.println("Current array list is:"+obj);

UNIT - V
Predict the output using below code and what happens if below code is
not used in GUI programs?
public void windowClosing(WindowEvent e)
{
dispose();
System.exit(0);
}
Describe which containers use a border Layout as their default layout?
Compare Java applet and a Java application?
Explain the output of the following program?
import java.applet.*;
import java.awt.*;

Understand

Remember
Remember
Understand

8
9
9

Understand

2
3
4

11

ld

Remember

or

}
}
Find whether the JDBC-ODBC Bridge be used with applets?

TU

public class Main extends Applet


{
public void paint(Graphics g)
{
g.drawString("Welcome in Java Applet.",40,20);
}
}
<HTML>
<HEAD>
</HEAD>
<BODY>
<div >
<APPLET CODE="Main.class" WIDTH="800" HEIGHT="500">
</APPLET>
</div>
</BODY>
</HTML>
Explain the usage of the following code?
public void actionPerformed(ActionEvent ae)
{
try
{
num = Integer.parseInt(input.getText());
sum = sum+num;
input.setText("");
output.setText(Integer.toString(sum));
lbl.setForeground(Color.blue);
lbl.setText("Output of the second Text Box : "
+ output.getText());

JN

Downloaded From JNTU World (http://www.alljntuworld.in)

www.alljntuworld.in

JNTU World

S. No

Question

Blooms
Course
Taxonomy Level Outcome

}
catch(NumberFormatException e)
{
lbl.setForeground(Color.red);
lbl.setText("Invalid Entry!");
}

JN

TU

or

ld

Downloaded From JNTU World (http://www.alljntuworld.in)

You might also like