www.alljntuworld.in
JNTU World
PART – A A (Short Answer Questions) S. No Question
Blooms Course Taxonomy Level Outcome UNIT - I
1
Define OOP?
Understand
2
2
Distinguish between procedural language and OOPs?
Understand
8
3
Define Encapsulation?
Understand
4
4
Define Inheritance?
Understand
2
5
Define Polymorphism?
Understand
3
6
List advantages of OOP?
Understand
2
7
List disadvantages of OOP?
Understand
2
8
Write history of java?
Knowledge
8
9
Describe a data type?
Understand
4
10
Describe a constant?
Understand
2
11
Describe scope and life time of variables?
Understand
3
1
List types of operators?
Understand
2
2
Define type conversion?
Understand
8
Downloaded From JNTU World (http://www (http://www.alljntuworld.i .alljntuworld.in) n)
www.alljntuworld.in
JNTU World
S. No
Question
Blooms Course Taxonomy Level Outcome Understand 4
3
Define type casting?
4
Define enumerated types?
Understand
2
5
Define an array?
Understand
3
6
Define this reference?
Understand
5
7
Define constructor?
Understand
5
8
Define recursion?
Understand
5
9
Define garbage collection?
Understand
5
UNIT – II
1
Define Inheritance?
Understand
3
2
List types of inheritances in java?
Understand
3
3
Write Member access rules
Remember
3
4
Write Uses of ‘Super’ keyword
Understand
3
5
Write using ‘final’ keyword with inheritance
Understand
2
6
Write about Object class
Understand
8
7
Define abstract classes?
Understand
4
8
Define polymorphism?
Understand
2
9
Define dynamic binding?
Understand
3
10
Define method overriding?
Understand
5
11
Difference between interfaces vs. Abstract classes
Understand
5
12
Define interface?
Understand
5
13
Define inner classes?
Understand
5
14
Define static inner classes?
Understand
2
15
Define a package?
Understand
8
16
Write creating, importing packages?
Understand
4
17
Define abstract methods?
Understand
2
18
Define CLASSPATH?
Understand
3
19
List advantages of inheritance?
Understand
3
20
Write implementing an interface
Understand
3
UNIT - III
1
Define Exception?
Understand
5
2
Distinguish between exception and error?
Understand
2
3
Write benefits of exception handling
Understand
8
4
Write the classification of exceptions
Understand
4
5
Define checked exceptions?
Understand
2
6
Define unchecked exceptions?
Understand
3
7
Define built in exceptions?
Understand
5
8
Write the usage of try and catch
Understand
5
9
Write the usage of throw, throws and finally
Understand
5
10
Distinguish between throw and throws?
Understand
5
11
Distinguish between process and thread?
Understand
10
12
Write thread states
Understand
10
Downloaded From JNTU World (http://www.alljntuworld.in)
www.alljntuworld.in
JNTU World
S. No
Question
Blooms Course Taxonomy Level Outcome Understand 10
13
Write creation of thread?
14
Define producer consumer problem?
Understand
2
15
Define inter-thread communication?
Understand
8
16
Write How threads are synchronized?
Understand
4
17
Write thread priorities
Understand
2
18
How many ways can thread be Created?
Understand
3
19
Write the alive() and join() method
Understand
10
20
Write thread class implements Runnable interface
Understand
10
UNIT – IV
1
Define collections?
Understand
11
2
Define Java collection Frame work.
Understand
11
3
Define Array List with syntax
Understand
11
4
Define Vector with syntax.
Understand
11
5
Define hash table with syntax.
Understand
2
6
Define stack with syntax.
Understand
8
7
Define enumeration with syntax.
Understand
4
8
Write Iterator.
Understand
2
9
Write the function of stringTokenizer.
Understand
3
10
Define random class.
Understand
11
11
Define Scanner class.
Understand
11
12
Define Calendar class.
Understand
2
13
Define Properties class
Understand
8
14
Define Stream?
Understand
4
15
Define byte stream?
Understand
2
16
Define character stream?
Understand
3
17
Define text input/output file?
Understand
11
18
Define JDBC?
Understand
7
19
List types of JDBC drivers.
Understand
7
20
Define random access file?
Understand
11
UNIT - V
1
Define AWT class hierarchy?
Understand
2
2
Distinguish between swings Vs AWT?
Understand
8
3
Write hierarchy for swing?
Understand
4
4
Define components?
Understand
2
5
Define containers?
Understand
3
6
Define JFrame, JApplet, JDialog and Jpanel?
Understand
8
7
Define some of swing components?
Understand
8
8
Define Jbutton, JLabel, JTextField and JtextArea?
Understand
8
9
Define Layout management?
Knowledge
2
10
List Layout manager types – border and grid flow?
Understand
8
11
Write Events, Event sources, Event classes
Understand
4
Downloaded From JNTU World (http://www.alljntuworld.in)
www.alljntuworld.in
JNTU World
S. No
Question
Blooms Course Taxonomy Level Outcome Understand 2
12
Write Event Listeners
13
Describe the relationship between Event sources and Listeners?
Understand
3
14
Define Delegation event model?
Knowledge
8
15
Describe events for handling a button click?
Understand
2
16
Describe events for handling mouse events?
Understand
8
17
Define adapter class?
Knowledge
4
18
Distinguish between applet and application?
Understand
2
19
Write applet life cycle
Understand
3
20
Describe applet security issues?
Understand
9
PART – B (Long Answer Questions) S. No
Question
Blooms Course Taxonomy Level Outcome UNIT – I
1
Describe the characteristics of object oriented programming concepts?
Understand
2
2
Describe the features (buzzwords) of Java Programming language?
Understand
8
3
Write the Differences between Java and C++.
Understand
4
4
Write Java is a pure object oriented programming language
Understand
2
5
Distinguish between applications and applets in Java?
Understand
3
6
Write about this reference.
Understand
1
7
Write about the method overloading with an example.
Understand
1
8
Write about the constructor overloading with an example.
Understand
2
9
Write the concept of arrays with an example.
Understand
8
10
Write about string class with an example.
Understand
4
11
Write about the console input and output with an example.
Apply
2
12
Write about simple stand alone programs.
Apply
3
13
Write about conditional statements.
Understand
1
14
Write about loops with an example.
Understand
1
15
Write about the break and continue statements with an example.
Understand
1
16
Write about the operator hierarchy with an example.
Understand
1
17
Write about all the operators in java with an example.
Understand
2
18
Define static field? Write with an example.
Knowledge
8
19
Define static method? Write with an example.
Knowledge
4
20
Define type conversion, type casting with an example?
Knowledge
2
UNIT – II
1
Define Inheritance? Discuss its uses and Hierarchical abstractions?
Knowledge
3
2
List types of inheritances in java? Write each of them in detail.
Understand
3
3
Write about Object class in detail
Understand
2
4
Write Uses of ‘Super’ keyword
Understand
8
, discuss accessing the member of a
Downloaded From JNTU World (http://www.alljntuworld.in)
www.alljntuworld.in
JNTU World
S. No
Question
Blooms Course Taxonomy Level Outcome
super class 5
Define package? Discuss its advantages?
Knowledge
4
6
Write different Types of Packages?
Understand
2
7
Define dynamic binding? Write with an example?
Knowledge
3
8
Define method overriding? Write with an example?
Knowledge
3
9
Define Abstract classes? Write with an example?
Knowledge
2
10
Define interface? Write with an example?
Knowledge
8
11
Define inner classes? Write with an example?
Knowledge
4
12
Write in detail about creating , importing packages
Understand
2
13
Write how packages are accessed
Understand
3
14
Write extending interfaces with an example
Understand
12
15
Define interface? Write Differences between classes and interfaces?
Knowledge
2
16
Write final classes , methods with an example
Understand
8
17
Write inheritance with an example
Understand
4
18
Write how to prevent inheritance
Understand
2
19
Write Member access rules with an example
Understand
3
20
Write working procedure of CLASSPATH
Understand
3
UNIT - III
1
Write about exception handling mechanisms
Understand
2
2
Write try, catch , and finally with an example
Understand
8
3
Define throw keyword? Write with an example
Understand
4
4
Define throws keyword? Write with an example
Understand
2
5
Write a program to implement built in exceptions?
Apply
3
6
Write creation of thread
Understand
3
7
Write with an example how java performs thread synchronization?
Apply
8
8
Write producer consumer problem with an example
Apply
4
9
Write about multithreading
Understand
2
10
Write the life cycle of a thread
Understand
3
UNIT – IV
1
Write the Java Collection frame work with an example.
Understand
2
2
Write ArrayList with an example.
Remember
8
3
Write Vector with an example.
Remember
4
4
Write hash table with an example.
Remember
2
5
Write stack with an example.
Remember
3
6
Write enumeration with an example.
Remember
11
7
Write iterator with an example.
Remember
11
8
Write String Tokenizer with an example.
Remember
11
9
Write Random with an example.
Remember
11
Downloaded From JNTU World (http://www.alljntuworld.in)
www.alljntuworld.in
JNTU World
S. No
Question
Blooms Course Taxonomy Level Outcome Remember 11
10
Write Scanner class with an example.
11
Write Calender class with an example.
Remember
2
12
Write Properties class with an example.
Remember
8
13
Write text input/output file operations.
Remember
4
14
Write binary input/output file operations.
Remember
2
15
Write random access file operations.
Remember
3
16
Write File management using File class.
Remember
11
17
Write JDBC with an example.
Understand
11
18
Write different types of JDBC drivers with diagrams.
Understand
11
19
Write JDBC example for querying the database and processing the results.
Apply
11
20
Write JDBC example for updating data.
Apply
11
UNIT – V
1
Write in detail about hierarchy for swing?
Understand
8
2
Write in detail about hierarchy for awt?
Understand
2
3
Write in detail about Layout management?
Understand
8
4
Write a program for handling a button clicks?
Understand
4
5
Write a program for handling mouse events?
Understand
2
6
Write in detail about Events, Event sources and Event classes
Apply
3
7
Write in detail about Event sources and Listeners
Apply
8
8
Write program for simple applet?
Apply
8
9
Write a program for passing parameters to applet?
Apply
8
Apply
8
Apply
8
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?
PART – C (Problem Solving and Critical Thinking Questions) S. No
Question
Blooms Course Taxonomy Level Outcome UNIT – I
1
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)); predict the output of the code?
Understand
1
2
switch (N % 6) { case 3:System.out.println(“Wednesday”); default: S ystem.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++) {
Understand
1
Apply
1
3
Downloaded From JNTU World (http://www.alljntuworld.in)
www.alljntuworld.in
JNTU World
S. No
Question
Blooms Course Taxonomy Level Outcome
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. 4
5
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 o utput of the program? public class CounterAtomic { private AtomicLong counter = new AtomicLong();
Understand
1
Analyze
1
Understand
1
Understand
1
public void increment() { counter.incrementAndGet(); } public long get() { return counter.get(); } } UNIT - II
1 2
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(); } class InnerClass { public void accessOuter() { System.out.println("The outer class's privInt is " + privInt); } }
3
} public static void main(String[] ar gs) { //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 o utput of the program?
Analyze
1
Apply
1
class A { //Members and methods declarations. }
class B extends A { //Members and methods from A are inherited. //Members and methods declarations of B. } class A { public A() { System.out.println("New A"); } } class B extends A { public B() { super(); System.out.println("New B"); } } 4
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
S. No
JNTU World
Question
Blooms Course Taxonomy Level Outcome
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(); } 5
} Describe how do we set the path for class which is present in another class? UNIT - III
Knowledge
5
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?
Understand
1
Knowledge
1
3
Describe the need for rethrowing an exception in java
Knowledge
1
4
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); } } }
Understand
1
1
2
Downloaded From JNTU World (http://www.alljntuworld.in)
www.alljntuworld.in
S. No
JNTU World
Question
Blooms Course Taxonomy Level Outcome Understand 1
5
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
1
Describe fastest type of JDBC driver?
Remember
2
2
Analyze the following program and find the output of the program?
Apply
2
3
4
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) thro ws 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.*;
Apply
4
Remember
8
public class ArrayListExample { public static void main(String args[]) { ArrayList
obj = new ArrayList(); 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); } 5
} Find whether the JDBC-ODBC Bridge be used with applets?
Remember
11
Understand
9
2
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?
Remember
8
3
Compare Java applet and a Java application?
Remember
9
4
Explain the output of the following program? import java.applet.*; import java.awt.*;
Understand
9
Understand
3
UNIT - V
1
5
public class Main extends Applet { public void paint(Graphics g) { g.drawString("Welcome in Java Applet.",40,20); } } 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());
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!"); } }
Downloaded From JNTU World (http://www.alljntuworld.in)