Professional Documents
Culture Documents
a. Graphics class
b. Component class
c. Both A & B
d. None of the above
Explanation:
2) Implement the Listener interface and overrides its methods is required to perform in event handling.
a. True
b. False
Answer Explanation
ANSWER: True
Explanation:
GOVERNMENT POLYTECHNIC, NANDURBAR
COMPUTER ENGINEERING DEPARTMENT
Unit Test – I
Course Name: COMPUTER ENGINEERING Course Code: CO5I
Semester: Five(2022-23) Subject Title: AJP Subject Code: 22517
Time: 1 Hour Marks: 20
3) Which is the container that doesn't contain title bar and MenuBars but it can have other components
a. Window
b. Frame
c. Panel
d. Container
Answer Explanation
ANSWER: Panel
Explanation:
a. True
b. False
Answer Explanation
ANSWER: True
GOVERNMENT POLYTECHNIC, NANDURBAR
COMPUTER ENGINEERING DEPARTMENT
Unit Test – I
Course Name: COMPUTER ENGINEERING Course Code: CO5I
Semester: Five(2022-23) Subject Title: AJP Subject Code: 22517
Time: 1 Hour Marks: 20
Explanation:
Explanation:
6) Which method is used to set the graphics current color to the specified color in the graphics class?
Explanation:
GOVERNMENT POLYTECHNIC, NANDURBAR
COMPUTER ENGINEERING DEPARTMENT
Unit Test – I
Course Name: COMPUTER ENGINEERING Course Code: CO5I
Semester: Five(2022-23) Subject Title: AJP Subject Code: 22517
Time: 1 Hour Marks: 20
7) The Java Foundation Classes (JFC) is a set of GUI components which simplify the development of d
applications.
a. True
b. False
Answer Explanation
ANSWER: True
Explanation:
8) In Graphics class which method is used to draws a rectangle with the specified width and height?
c. public abstract void drawLine(int x1, int y1, int x2, int y2)
Explanation:
9) Which object can be constructed to show any number of choices in the visible window?
a. Labels
b. Choice
c. List
d. Checkbox
Answer Explanation
ANSWER: List
Explanation:
10) Which is used to store data and partial results, as well as to perform dynamic linking, return values
a. Window
b. Panel
c. Frame
d. Container
Answer Explanation
ANSWER: Frame
Explanation:
-
GOVERNMENT POLYTECHNIC, NANDURBAR
COMPUTER ENGINEERING DEPARTMENT
Unit Test – I
Course Name: COMPUTER ENGINEERING Course Code: CO5I
Semester: Five(2022-23) Subject Title: AJP Subject Code: 22517
Time: 1 Hour Marks: 20
a. Button,List,MenuItem
b. Button,Checkbox,Choice
c. Scrollbar,Component,Button
Answer Explanation
ANSWER: Button,List,MenuItem
Explanation:
a. setText()
b. getText()
Answer Explanation
ANSWER: setText()
Explanation:
13) Which is a component in AWT that can contain another components like buttons, textfields, labels
a. Window
b. Container
c. Panel
d. Frame
Answer Explanation
ANSWER: Container
Explanation:
14) AWT has more powerful components like tables, lists, scroll panes, color chooser, tabbed pane etc
a. True
b. False
Answer Explanation
ANSWER: True
Explanation:
15) Which are passive controls that do not support any interaction with the user?
a. Choice
b. List
c. Labels
d. Checkbox
ANSWER: Labels
a. 7 b. 6 c. 5 d. 8
ANSWER: 7
a) It is lightweight.
a. Swing
b. AWT
c. Both A & B
Answer Explanation
ANSWER: Swing
Explanation:
18) The ActionListener interface is not used for handling action events.
a. True
b. False
Answer Explanation
ANSWER: False
Explanation:
19) Which package provides many event classes and Listener interfaces for event handling?
a. java.awt
b. java.awt.Graphics
c. java.awt.event
Answer Explanation
ANSWER: java.awt.event
Explanation:
20) Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application
a. True
b. False
Answer Explanation
ANSWER: False
Explanation:
a. Exception Handling
b. String Handling
c. Event Handling
Answer Explanation
Explanation:
a. Same class
b. Other class
c. Anonymous class
GOVERNMENT POLYTECHNIC, NANDURBAR
COMPUTER ENGINEERING DEPARTMENT
Unit Test – I
Course Name: COMPUTER ENGINEERING Course Code: CO5I
Semester: Five(2022-23) Subject Title: AJP Subject Code: 22517
Time: 1 Hour Marks: 20
Answer Explanation
Explanation:
a. java.awt
b. java.Graphics
c. java.awt.Graphics
Answer Explanation
ANSWER: java.awt.Graphics
Explanation:
a. True
GOVERNMENT POLYTECHNIC, NANDURBAR
COMPUTER ENGINEERING DEPARTMENT
Unit Test – I
Course Name: COMPUTER ENGINEERING Course Code: CO5I
Semester: Five(2022-23) Subject Title: AJP Subject Code: 22517
Time: 1 Hour Marks: 20
b. False
Answer Explanation
ANSWER: True
Explanation:
25) The ActionListener interface is not used for handling action events
a. True
b. False
ANSWER: False