AJP_QB_
AJP_QB_
(2024-25)
Course Name: Computer Engineering Course Code: CO
Subject : Advance Java Programming(22517) Semester: 5I
UNIT 3
Q1.The following steps are required to perform implement the listener interface and overrides its
methods register the component with the listener
Q.3 Which package provides many event classes and Listener interfaces for event handling?
a) java.awt b) java.awt.Graphics c) java.awt.event d) None of the above
Q.4 The ActionListener interface is used for handling action events, For example, its used by a
a) JButton b) JCheckbox
c) All of these d) JMenultem
Q.5 Which of the following method is used to determine the type of adjustment event?
a) getType( ) b) getEventType( )
c) getAdjustmentType( ) d) getEventObjectType()
Q.10 Which of the following is not the method of handling window event?
a)void windowClosed(WindowEvent we) b)voidWindowClosing(WindowEvent we
Q11 Clicking the closing button on the upper right corner of a frame generates a
a) ItemEvent b) WindowEvent
c) MouseMotionEvent d) ComponentEvent
Q.12 Which of the following method must be overridden in the order to handle KeyEvent
Import java.awt.*;
import java.applet.*;
List l= new
List (2,true);
l.add("java")
l.add("c++");
l .add("kkk"); add(l);
a)
b)
c)
d)
UNIT 4
Q.1UDP standsfor____
a) User Data Port b) User Datagram Protocol
c) Used Data Provider d) User Data Protocol
Q.2Name the class which is used to create a port where the server will listen
a) Connection less,iterative
b) Collection less ,concurrent
c) Connection oriented ,iterative
d) Connection oriented,concurrent
a) 1
b) 2
c) 10
d) multiple
Q.11 Which of these method of DatagramPacket class is used to find the destination address?
a) findAddress ( )
b) findAddress ( )
c) address ( )
d) whols ( )