Chapter 1 MCQ 3
Chapter 1 MCQ 3
Exam : AJP - Chapter 1 - Abstract Windowing Toolkit (AWT) Class : CO5I Div : A
Student Name : KAPADIA KUSH AMIT Roll No. : 20203A0055 Enrollment No.
: 2005680051
To set the alignment of the string within the label by calling ___
method ,to obtain the current alignment ___ method is used.
a)
b)
c)
setAlignment( ) ,getAlignment( ) d)
getAlign( ) ,setAlign( )
b)
a)
MouseListener , MouseEvent
2 ItemListener , ItemEvent a a 1
c)
d)
ActionListener , ActionEvent
KeyListener , KeyEvent
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 1/7
10/12/22, 7:29 PM Vidyalankar Polytechnic | VP
/*
</applet>
*/
add(one);
add(two);
3 a a 1
add(three);
a)
b)
import java.awt.*; import
java.applet.*; import javax.swing.*; import
java.awt.*;
c)
d)
import javax.swing.*; import
java.applet.*; import java.applet.*; import
java.awt.event.*;
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 2/7
10/12/22, 7:29 PM Vidyalankar Polytechnic | VP
a) b)
c) d)
a)
b)
Checkbox Win98 = new
Checkbox("Windows 98/XP", Checkbox Win98 = new
cbg, true); Checkbox("Windows 98/XP",
5 cbg, false); a b 0
c)
d)
Checkbox Win98 = new
Checkbox("Windows 98/XP", Checkbox Win98 = new
true); Checkbox("Windows 98/XP",
true);
a) b)
6 Component Window b a 0
c) d)
Frame Panel
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 3/7
10/12/22, 7:29 PM Vidyalankar Polytechnic | VP
a) b)
setselectedCheckbox( ) setSelectedCheckbox( )
7 b b 1
c)
d)
getselectedCheckbox( )
getSelectedCheckbox( )
a) b)
c)
d)
setstate( ) , getstate( )
getstate( ) , setstate( )
a) b)
9 c c 1
BorderLayout CardLayout
c) d)
GridLayout FlowLayout
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 4/7
10/12/22, 7:29 PM Vidyalankar Polytechnic | VP
a) b)
10 b b 1
AWTEvent AWTEventMulticaster
c) d)
a) b)
11 b d 0
BorderLayout CardLayout
c) d)
GridLayout FlowLayout
ActionListener ItemListener
12 a d 0
c) d)
MouseListener WindowListener
WindowListener None
a) b)
14 c c 1
One dimensional Two dimensional
c) d)
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 5/7
10/12/22, 7:29 PM Vidyalankar Polytechnic | VP
a) b)
15 b b 1
getLabel( ) , setLabel( ) setLabel( ) , getLabel( )
c)
d)
getlabel( ) , setlabel( )
setlabel( ) , getlabel( )
a) b)
16 c c 1
Container Window
c) d)
Panel None
Frame none
a) b)
18 c c 1
Pop-up menus Regular menus
c) d)
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 6/7
10/12/22, 7:29 PM Vidyalankar Polytechnic | VP
Window Frame
19 d c 0
c) d)
Applet None
a) b)
20 c c 1
setTxt() , getTxt() settext() , gettext()
c)
d)
setText() , getText()
getText() , setText()
Total Marks : 20
Obtained : 15
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 7/7