Quizzes Index
JFC Programming Quiz
Compiled by Monica Pawlan
(August 1998)
This short quiz tests your knowledge of the Swing and Accessibility APIs, which are part of the Java
TM
Foundation Classes (JFC). If you do not know an answer, take your best guess.
Which APIs comprise the Java Foundation Classes (JFC)?
A.
JNI, JavaBeans, and Swing Components.
B.
Collections, extensions, and Swing Components.
C.
Java 2D, Drag-and-Drop, Accessibility, and Swing Components.
D.
Drag and Drop, Collections, Swing Components, and Accessibility.
What are assistive technologies?
A.
GUI builders and Code generators.
B.
JavaStudio
TM
and Java Workshop.
C.
Screen readers, screen magnifiers, and speech recognition systems.
D.
Software to assist in the design review process.
The Java Accessibility API defines a contract between individual user-interface components that make up a Java application and an assistive technology that provides access to that application. Which interface must all components that support the Accessibility API implement?
A.
AccessibleComponent.
B.
Accessible.
C.
AccessibleLayout.
D.
AccessibleContext.
Which interface allows an assistive technology to determine and modify the currently selected components in a user interface?
A.
AccessibleSelection.
B.
AccessibleText.
C.
AccessibleValue.
D.
AccessibleAction.
Swing lets you develop lean and efficient GUI components with the look and feel you specify for your applications. Which look and feel looks the same on all platforms?
A.
UNIX look and feel.
B.
Windows look and feel.
C.
Java look and feel.
D.
Custom look and feel.
All Swing components inherit a generic border property that can be customized for various plain or decorative borders. There are border classes that provide beveled borders for buttons, labeled borders for panels, and borders that are just simple lines. Which one of the following is a standard Swing border?
A.
ImageBorder.
B.
MediaBorder.
C.
InsetBorder.
D.
MatteBorder.
Which Swing component lets you draw hierarchical data?
A.
JTree.
B.
JApplet.
C.
JList
D.
JFileChooser.
Which Swing components are not lightweight?
A.
JTree, JColorChooser, and JList.
B.
JWindow, JFrame, JDialog, and JApplet.
C.
JDialog, JDesktopIcon, and JInternalFrame.
D.
JMenuBar, JMenu, and JPopupMenu.
Which statement is true?
A.
A lightweight component can have transparent pixels, and a heavyweight component is always opaque.
B.
A lightweight component can only be rectangular.
C.
A mouse event on a heavyweight component falls through to its parent.
D.
When a lightweight and heavyweight component overlap, the lightweight component is always on top.
Swing has which two kinds of classes?
A.
Text and button classes.
B.
Event and model classes.
C.
AWT and Swing classes.
D.
UI and non-UI classes.
[ This page was updated: 27-Sep-2000 ]
Products & APIs
|
Developer Connection
|
Docs & Training
|
Online Support
Community Discussion
|
Industry News
|
Solutions Marketplace
|
Case Studies
Glossary
|
Feedback
|
A-Z Index
For more information on Java technology
and other software from Sun Microsystems, call:
(800) 786-7638
Outside the U.S. and Canada, dial your country's
AT&T Direct Access Number
first.
Copyright © 1995-2000
Sun Microsystems, Inc.
All Rights Reserved.
Terms of Use
.
Privacy Policy
.