Computer Knowledge
GUI and Web Frameworks
1,711 Questions
Graphical user interface and web frameworks involve layout management, directives, and application design across platforms like Android and Angular. These concepts are tested in computer science and IT officer competitive exams. Review these questions to understand UI components and coding standards.
Android layout attributesAngular structural directivesVB.Net web methodsJava Swing componentsSiebel application framework
GUI and Web Frameworks Questions
-
JInternalFrame
-
JFrame
-
JPanel
-
JSplitPane
-
StockHolder.java
B
Correct answer
Explanation
In this swing component, one can add components in layers, add a menu bar or paint over the component.
-
JList
-
JFileChooser
-
JOptionPane
-
JTree
-
javax.swing.text.html.parser
B
Correct answer
Explanation
This swing component is a dialog box that allows to open or save information content.
-
Game Utility Interface
-
Graphic Utility Interface
-
Graphic User Interface
-
Global User Interface
C
Correct answer
Explanation
GUI stands for Graphic(al) User Interface. It's a type of user interface that allows users to interact with electronic devices through graphical icons and audio indicators, instead of text-based user interfaces. Note that the formal spelling is 'Graphical' but 'Graphic' is often used interchangeably in older textbooks.
-
2D API
-
Java beans
-
WebSphere
-
Alarm
-
Abstract window toolkit
E
Correct answer
Explanation
This technoloy provides a rich set of user interface components including graphics and imaging tools and data transfer classes for cut and paste through the native platform clipboard.
-
javax.swing.text.rtf
-
javax.swing.text.html.parser
-
2D API
-
javax.swing.text.html
-
Stock
D
Correct answer
Explanation
This package in the swing library is used specifically for reading and formatting HTML text through an ancillary editor kit.
-
2D API
-
javax.swing.text.html.parser
-
Accessibility
-
Deployment descriptor
-
WebSphere
C
Correct answer
Explanation
This package in JFC provides assistance to users who have trouble with traditional user interfaces.
-
javax.swing.text.rtf
-
javax.swing.text
-
javax.swing.text.html.parser
-
OrbixWeb
-
2D API
B
Correct answer
Explanation
This package in swing libraries provides score of text based classes and interfaces supporting a common design known as document/view?
-
javax.swing.text.html.parser
-
javax.swing.table
-
javax.swing.text.rtf
-
2D API
-
WebSphere
B
Correct answer
Explanation
This package in swing libraries allows you to arrange various information in a grid-based format.
-
javax.swing.text.html
-
javax.swing.text.html.parser
-
javax.swing.text.rtf
-
2D API
-
Stock
C
Correct answer
Explanation
This swing package is used specifically for reading and formatting RTF text through an ancillary editor kit.
-
2D API
-
Java applet
-
Java beans
-
Abstract window toolkit
-
WebSphere
D
Correct answer
Explanation
It provides a rich set of user interface components including graphics and imaging tools, layout managers for flexible window layouts, etc?
-
Frame
-
Panel
-
Both 1 and 2
-
None of these
C
Correct answer
Explanation
Both Frame and Panel are containers in Java AWT. A Frame is a top-level window with a title bar, while a Panel is a generic container used to group components.
D
Correct answer
Explanation
Java AWT supports 5 layout managers: BorderLayout, FlowLayout, GridLayout, CardLayout, and GridBagLayout. These are the standard layouts for arranging components.
-
java.awt.*
-
java.applet.*
-
both 1 and 2
-
none of these
C
Correct answer
Explanation
Both java.awt.* and java.applet.* packages are needed for applets. java.applet.Applet is the base class, while java.awt provides the GUI components.
-
applet viewer tool
-
show applet tool
-
display applet tool
-
appletviewer tool
D
Correct answer
Explanation
appletviewer is the JDK tool specifically designed to test and view Java applets without needing a full web browser. The other options (applet viewer tool, show applet tool, display applet tool) are descriptive phrases but not the actual command-line tool name. The correct tool is invoked with 'appletviewer' followed by the HTML file containing the applet tag.
A
Correct answer
Explanation
CardLayout in Java AWT stores multiple components in a stack-like structure, where only one component is visible at a time. Each component can be thought of as a 'card' in the stack, and you can flip through them to show different components. This is different from QueueLayout, ListLayout, or FlowLayout which don't use stack-based storage.