You are on page 1of 3

JSPM’s

JAYAWANTRAO SAWANT POLYTECHNIC,


HADAPSAR, PUNE-28
COMPUTER ENGINEERING DEPARTMENT
Academic Year 2021-22
WORK BOOK -II

Subject: Advanced Java Programming Subject code: 22517


Course & Code :CO5I Semester : Fifth
Subject Teacher:Ms.Chavan S.S Class: TYCO
Unit No 2: Swings
Date: / / 20
Name of the Student: - _______________________________________ Roll No.: -_______

CO2: Handle events of AWT and Swings components.

Attempt following questions


1 Package of drawstring() method is
A. java.applet
B. java.io
C. javax.swing
D. java.awt

2 What are types of applets?


A. Trusted Applets
B. Untrusted applets
C. Both A and B
D. None of these

3 Give the abbreviation of AWT?


A. Applet Windowing Toolkit
B. Abstract Windowing Toolkit
C. Absolute Windowing Toolkit
D. None of the above

4 Which of these methods can be used to know which key is pressed?


A. getActionEvent()
B. getActionKey()
C. getModifier()
D. getKey()
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
HADAPSAR, PUNE-28
COMPUTER ENGINEERING DEPARTMENT
Academic Year 2021-22
WORK BOOK -II

5 Object which can store group of other objects is called


A. Collection object
B. Java object
C. Package
D. Wrapper

6 JFrame myFrame = new JFrame (); Any command (such as the one listed above)
which creates a new object of a specific class (in this case a new JFrame object
called myFrame) is generally called a ...
A. Constructor
B. Layout manager
C. Parameter
D. GUI

7 In Java, what do you call an area on the screen that has nice borders and various
buttons along the top border?
A. A window
B. A screen
C. A box
D. A frame

8 What is the Lifecycle of an applet?


A. init( ) method
B. start( ) method
C. paint( ) method
D. All of these
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC,
HADAPSAR, PUNE-28
COMPUTER ENGINEERING DEPARTMENT
Academic Year 2021-22
WORK BOOK -II
9 What is the name of the Swing class that is used for frames?
A. Window
B. Frame
C. JFrame
D. SwingFrame

10 The following specifies the advantages of


It is lightweight.
It supports pluggable look and feel.
It follows MVC (Model View Controller) architecture.
A) Swing
B) AWT
C) Both A & B
D) None of the above

Subject Teacher HOD


(Ms.S.S.Chavan) (Mr. Kalbande M. S.)

You might also like