Chapter 1 MCQ 2
Chapter 1 MCQ 2
Exam : AJP - Chapter 1 - Abstract Windowing Toolkit (AWT) Class : CO5I Div : A
Student Name : KAPADIA KUSH AMIT Roll No. : 20203A0055 Enrollment No.
: 2005680051
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 1/8
9/21/22, 7:54 PM Vidyalankar Polytechnic | VP
/*
</applet>
*/
add(one);
add(two);
1 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/8
9/21/22, 7:54 PM Vidyalankar Polytechnic | VP
TextComponent Choice
a) b)
3 c c 1
Pop-up menus Regular menus
c) d)
a) b)
c)
d)
Label(String str, int how)
All of the above
2 1
5 a a 1
c) d)
3 4
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 3/8
9/21/22, 7:54 PM Vidyalankar Polytechnic | VP
a) b)
6 c c 1
Container Window
c) d)
Panel None
a) b)
7 Component Window b a 0
c) d)
Frame Panel
a) b)
8 setselectedCheckbox( ) setSelectedCheckbox( ) b b 1
c)
d)
getselectedCheckbox( )
getSelectedCheckbox( )
a) b)
9 c c 1
Graphical User interactive
c) d)
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 4/8
9/21/22, 7:54 PM Vidyalankar Polytechnic | VP
a) b)
10 c c 1
Frame Panel
c) d)
Canvas None
a) b)
11 a a 1
add() , Container add() , Component
c) d)
a) b)
12 b c 0
One dimensional Two dimensional
c) d)
a) b)
13 b b 1
Graphics Container
c) d)
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 5/8
9/21/22, 7:54 PM Vidyalankar Polytechnic | VP
a) b)
14 d d 1
remove() removeFrom()
c) d)
Remove() removeAll( )
a) b)
15 actionPerformed() ActionPerformed() c c 1
c)
d)
itemStateChanged()
ItemstateChanged()
a)
b)
Checkbox Win98 = new
Checkbox("Windows 98/XP", Checkbox Win98 = new
cbg, true); Checkbox("Windows 98/XP",
cbg, false);
16 c b 0
c)
d)
Checkbox Win98 = new
Checkbox("Windows 98/XP", Checkbox Win98 = new
true); Checkbox("Windows 98/XP",
true);
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 6/8
9/21/22, 7:54 PM Vidyalankar Polytechnic | VP
a) b)
c) d)
public class CheckboxDemo public class CheckboxDemo
implements Applet extends extend Applet implement
ItemListener ItemListener
a) b)
18 d d 1
GUI Components Layouts
c) d)
Which class is used to create a pop-up list of items from which the
user may choose.
a) b)
19 a a 1
Choice List
c)
d)
Checkbox
CheckboxGroup
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 7/8
9/21/22, 7:54 PM Vidyalankar Polytechnic | VP
a) b)
20 b b 1
BorderLayout CardLayout
c) d)
GridLayout FlowLayout
Total Marks : 20
Obtained : 17
https://mycollege.vpt.edu.in/student/end_practice_exam_new.php 8/8