Computer Knowledge
GUI and Web Frameworks
1,915 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
-
Strong name information
-
Assembly name
-
Type reference information
-
Version number
-
Web form
C
Correct answer
Explanation
In this assembly manifest content information, information is used by the runtime to map a type reference to the file that contains its declaration and implementation.
-
Reference type
-
Assembly name
-
Strong name information
-
Version number
-
Referenced assemblies
E
Correct answer
Explanation
This assembly manifest content's information represents a list of other assemblies that are statically referenced by the assembly.
A
Correct answer
Explanation
The standard applet lifecycle consists of four methods: init(), start(), stop(), and destroy(). The paint() method is used for rendering but is not part of the official lifecycle sequence - it's called when the applet needs to display content.
-
content pane
-
form
-
applet
-
frame
-
flow
-
grid bag
-
border
-
card
D
Correct answer
Explanation
CardLayout is a layout manager that stacks components like a deck of cards, with only one component visible at a time. Components are added sequentially and can be navigated using next(), previous(), or first()/last() methods, making it ideal for wizard-style interfaces or tabbed panels.
-
Table
-
Card Layout
-
Tabbed Pane
-
Scroll Pane
C
Correct answer
Explanation
JTabbedPane (Tabbed Pane) is the appropriate Java Swing component for creating a tabbed interface like the Windows Control Panel Display option. Each category (Display, Sound, Network, etc.) would be a separate tab, allowing users to navigate between different settings panels.
-
label
-
check box group
-
radio button
-
scrollbar
A
Correct answer
Explanation
Label is a passive control in Java AWT because it only displays text or an image and does not generate events when users interact with it. Other controls like checkboxes, radio buttons, and scrollbars are active controls that generate events in response to user actions.
-
menu bar
-
main menu
-
menu list
-
none of the above
D
Correct answer
Explanation
In Java AWT, Menu is not a subclass of MenuBar, MainMenu, or MenuList. The Menu class directly inherits from the MenuItem class, making 'none of the above' the correct answer.
-
J Scroll Pane
-
J Image Icon
-
Content Pane
-
None of the above
A
Correct answer
Explanation
To create a JTable in Swing, you must typically wrap it in a JScrollPane to enable proper display and scrolling functionality. The JScrollPane provides the scroll bars and viewport needed when the table data exceeds the visible area, which is essential for most table implementations.
-
Scroll Pane
-
Panel
-
List
-
Menu
B
Correct answer
Explanation
Panel is the simplest concrete subclass of Container in Java AWT. It provides a basic container that can hold other components and is commonly used for grouping and organizing UI elements. Other options like ScrollPane, List, and Menu either inherit from Panel or have more complex implementations.
-
The using directive
-
The @ application directive
-
The execution support
-
Common language runtime
-
Application_ReleaseRequest
A
Correct answer
Explanation
By using this directive, you can make use of the unqualified types that are members of the namespace.
-
Application_ReleaseRequest state
-
Windows form
-
DoStackSnapshot
-
Stack walk
-
Common language runtime
C
Correct answer
Explanation
This method of common language runtime lets your profiler walk the call stack of the application.
-
FTP service
-
The @ import directive
-
The @ assembly directive
-
The @ application directive
-
Application_ReleaseRequest state
B
Correct answer
Explanation
This directive imports namespaces that ASP.NET does not import by default.
-
Strong name information
-
ASCX file
-
DLL file
-
Web.config file
-
The archive file
B
Correct answer
Explanation
This file is used to contain user controls.
-
common language runtime
-
common language infrastructure
-
version number
-
assembly name
-
the execution support
B
Correct answer
Explanation
The using directive refers to a namespace called system provided by common language infrastructure.