Friday, November 20, 2009

OOPS THROUGH JAVA

Code No: 05210301 Set No. 1
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
IV B.Tech. I Sem., II Mid-Term Examinations, Oct / Nov. – 2009
OOPS THROUGH JAVA
Objective Exam
Answer All Questions. All Questions Carry Equal Marks.Time: 20 Min. Marks: 20.
I. Choose the correct alternative:
1. Which is a checked Runtime Exception? [ ]
A. NullPointerException B. InterruptedException
C. ArithematicException D. ArrayIndexOutOfBoundsException
2. Which of the following method is not defined by MouseListener Interface. [ ]
A. mouseClicked B. mouseDragged C. mouseReleased D. mouseExited
3. Which of the following layout is used as default layout manager? [ ]
A. BorderLayout B. CardLayout C. FlowLayout D. GridLayout
4. The following method is called when we leave a web page that contains an applet [ ]
A. pause( ) B. stop( ) C. destroy( ) D. hide( )
5. Which of the following method doesn’t belong to Thread. [ ]
A. isAlive B. join C. sleep D. wake
6. Which event is generated when a scrollbar is manipulated? [ ]
A. Item Event B. Adjustment Event C. Check Event D. Text Event
7. Which block following will execute whether or not an exception is thrown? [ ]
A. Try B. Catch C. Throw D. Finally
8. Which of the following is the class not used networking. [ ]
A. DatagramPacket B. DatagramSocket C. InetAddress D. HTTPAddress
9. Which of the following is the valid priority we can use for thread? [ ]
A. MIN_PRIORITY B. MINIMUM_PRIORITY
C. LOW_PRIORITY D. ZERO_PRIORITY
10. Which listener interface is needed in handling TextField? [ ]
A. ActionListener B. ItemListener C. TextListener D. InputListener
Cont…2

A
Code No: 05210301 :2: Set No. 1
II. Fill in the blanks:
11. _____ is used to connect Java’s I/O system to other programs.
12. The ________ allows us to pass parameters to the Applet through HTML page.
13. TCP/IP is used to implement _______ connection.
14. The class EventObject is defined in ________ package.
15. The _________ function can be used to find IP address of the host machine.
16. The fundamental class of Java swing JApplet extends _________ class.
17. BorderLayout manager divides window in to _____ areas.
18. A try block may have _______ number of catch block(s).
19. To select or to change the font we have to use _______ method.
20. At the top of the AWT hierarchy is the ___________ class.
-oOo-
Code No: 05210301 Set No. 2
I. Choose the correct alternative:
1. The following method is called when we leave a web page that contains an applet [ ]
A. pause( ) B. stop( ) C. destroy( ) D. hide( )
2. Which of the following method doesn’t belong to Thread. [ ]
A. isAlive B. join C. sleep D. wake
3. Which event is generated when a scrollbar is manipulated? [ ]
A. Item Event B. Adjustment Event C. Check Event D. Text Event
4. Which block following will execute whether or not an exception is thrown? [ ]
A. Try B. Catch C. Throw D. Finally
5. Which of the following is the class not used networking. [ ]
A. DatagramPacket B. DatagramSocket C. InetAddress D. HTTPAddress
6. Which of the following is the valid priority we can use for thread? [ ]
A. MIN_PRIORITY B. MINIMUM_PRIORITY
C. LOW_PRIORITY D. ZERO_PRIORITY
7. Which listener interface is needed in handling TextField? [ ]
A. ActionListener B. ItemListener C. TextListener D. InputListener
8. Which is a checked Runtime Exception? [ ]
A. NullPointerException B. InterruptedException
C. ArithematicException D. ArrayIndexOutOfBoundsException
9. Which of the following method is not defined by MouseListener Interface. [ ]
A. mouseClicked B. mouseDragged C. mouseReleased D. mouseExited
10. Which of the following layout is used as default layout manager? [ ]
A. BorderLayout B. CardLayout C. FlowLayout D. GridLayout
Cont…2

A
Code No: 05210301 :2: Set No. 2
II. Fill in the blanks:
11. The class EventObject is defined in ________ package.
12. The _________ function can be used to find IP address of the host machine.
13. The fundamental class of Java swing JApplet extends _________ class.
14. BorderLayout manager divides window in to _____ areas.
15. A try block may have _______ number of catch block(s).
16. To select or to change the font we have to use _______ method.
17. At the top of the AWT hierarchy is the ___________ class.
18. _____ is used to connect Java’s I/O system to other programs.
19. The ________ allows us to pass parameters to the Applet through HTML page.
20. TCP/IP is used to implement _______ connection.
-oOo-
Code No: 05210301 Set No. 3
OOPS THROUGH JAVA
Objective Exam
. I. Choose the correct alternative:
1. Which event is generated when a scrollbar is manipulated? [ ]
A. Item Event B. Adjustment Event C. Check Event D. Text Event
2. Which block following will execute whether or not an exception is thrown? [ ]
A. Try B. Catch C. Throw D. Finally
3. Which of the following is the class not used networking. [ ]
A. DatagramPacket B. DatagramSocket C. InetAddress D. HTTPAddress
4. Which of the following is the valid priority we can use for thread? [ ]
A. MIN_PRIORITY B. MINIMUM_PRIORITY
C. LOW_PRIORITY D. ZERO_PRIORITY
5. Which listener interface is needed in handling TextField? [ ]
A. ActionListener B. ItemListener C. TextListener D. InputListener
6. Which is a checked Runtime Exception? [ ]
A. NullPointerException B. InterruptedException
C. ArithematicException D. ArrayIndexOutOfBoundsException
7. Which of the following method is not defined by MouseListener Interface. [ ]
A. mouseClicked B. mouseDragged C. mouseReleased D. mouseExited
8. Which of the following layout is used as default layout manager? [ ]
A. BorderLayout B. CardLayout C. FlowLayout D. GridLayout
9. The following method is called when we leave a web page that contains an applet [ ]
A. pause( ) B. stop( ) C. destroy( ) D. hide( )
10. Which of the following method doesn’t belong to Thread. [ ]
A. isAlive B. join C. sleep D. wake
Cont…2

A
Code No: 05210301 :2: Set No. 3
II. Fill in the blanks:
11. The fundamental class of Java swing JApplet extends _________ class.
12. BorderLayout manager divides window in to _____ areas.
13. A try block may have _______ number of catch block(s).
14. To select or to change the font we have to use _______ method.
15. At the top of the AWT hierarchy is the ___________ class.
16. _____ is used to connect Java’s I/O system to other programs.
17. The ________ allows us to pass parameters to the Applet through HTML page.
18. TCP/IP is used to implement _______ connection.
19. The class EventObject is defined in ________ package.
20. The _________ function can be used to find IP address of the host machine.
-oOo-
Code No: 05210301 Set No. 4

OOPS THROUGH JAVA
I. Choose the correct alternative:
1. Which of the following is the class not used networking. [ ]
A. DatagramPacket B. DatagramSocket C. InetAddress D. HTTPAddress
2. Which of the following is the valid priority we can use for thread? [ ]
A. MIN_PRIORITY B. MINIMUM_PRIORITY
C. LOW_PRIORITY D. ZERO_PRIORITY
3. Which listener interface is needed in handling TextField? [ ]
A. ActionListener B. ItemListener C. TextListener D. InputListener
4. Which is a checked Runtime Exception? [ ]
A. NullPointerException B. InterruptedException
C. ArithematicException D. ArrayIndexOutOfBoundsException
5. Which of the following method is not defined by MouseListener Interface. [ ]
A. mouseClicked B. mouseDragged C. mouseReleased D. mouseExited
6. Which of the following layout is used as default layout manager? [ ]
A. BorderLayout B. CardLayout C. FlowLayout D. GridLayout
7. The following method is called when we leave a web page that contains an applet [ ]
A. pause( ) B. stop( ) C. destroy( ) D. hide( )
8. Which of the following method doesn’t belong to Thread. [ ]
A. isAlive B. join C. sleep D. wake
9. Which event is generated when a scrollbar is manipulated? [ ]
A. Item Event B. Adjustment Event C. Check Event D. Text Event
10. Which block following will execute whether or not an exception is thrown? [ ]
A. Try B. Catch C. Throw D. Finally
Cont…2

A
Code No: 05210301 :2: Set No. 4
II. Fill in the blanks:
11. A try block may have _______ number of catch block(s).
12. To select or to change the font we have to use _______ method.
13. At the top of the AWT hierarchy is the ___________ class.
14. _____ is used to connect Java’s I/O system to other programs.
15. The ________ allows us to pass parameters to the Applet through HTML page.
16. TCP/IP is used to implement _______ connection.
17. The class EventObject is defined in ________ package.
18. The _________ function can be used to find IP address of the host machine.
19. The fundamental class of Java swing JApplet extends _________ class.
20. BorderLayout manager divides window in to _____ areas.
-oOo-

No comments: