Chapter 3 MCQ 2 Ajp
Chapter 3 MCQ 2 Ajp
Student Name : KAPADIA KUSH AMIT Roll No. : 20203A0055 Enrollment No.
: 2005680051
a) b)
1 AdjustmentListener MouseListener a c 0
c) d)
AdjustmentListener KeyListener
2 b b 1
a) windowActivated b) windowReactivated
d)
c) windowDeiconified
windowClosed()
b)
3 a a 1
a) windowIconfified()
windowClosed()
c) d)
windowDeactivated() windowOpened()
a) setVisible(false) b) windowClosing()
4 c) d) b d 0
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 1/7
10/12/22, 8:45 PM Vidyalankar Polytechnic | VP
a) event
5 b) Source a a 1
c) d)
void
addTreeExpansionListener(___________________________ tel)
6 b b 1
a) TreeExpansionlistener b) TreeExpansionListener
d)
c) TreeListener
treeListener
7 a) java.io b) java.lang d d 1
d)
c) java.net
java.util
8 a) getModifiers() b) setModifiers() c a 0
c) d)
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 2/7
10/12/22, 8:45 PM Vidyalankar Polytechnic | VP
a) changePoint() b)
10 b b 1
translatePoint()
c)
d) translateCordinates()
changeCordinates()
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 3/7
10/12/22, 8:45 PM Vidyalankar Polytechnic | VP
a) b)
c) d)
Which of these methods will respond when you click any button
by mouse?
13 a) mouseClicked() b) mouseEntered() d d 1
c)
d)
mousePressed()
All of the above
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 4/7
10/12/22, 8:45 PM Vidyalankar Polytechnic | VP
a) MousePressed(MouseEvent e) b) MousePressed(MouseClick e)
14 a a 1
{} {}
d)
c) functionKey(KeyPress k){}
Added(ContainerEvent e){}
a) b)
15 c c 1
getParent() getComponent()
c) d)
getChild() geoReferenced()
a) b)
c) d)
It is lightweight.
a) Swing b) AWT
c) d)
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 5/7
10/12/22, 8:45 PM Vidyalankar Polytechnic | VP
18 a) ActionEvent b) ComponentEvent d d 1
d)
c) AdjustmentEvent
WindowEvent
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
/* */
addKeyListener(this);
requestFocus();
showStatus("Key Down");
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 6/7
10/12/22, 8:45 PM Vidyalankar Polytechnic | VP
msg += ke.getKeyChar();
repaint(); }
g.drawString(msg, X, Y);
Missing } Missing()
Total Marks : 20
Obtained : 17
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 7/7