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
-
JAVAC
-
AWT
-
API
-
Applet Viewer
C
Correct answer
Explanation
API is not a component of the JDK bin directory. The bin directory contains executable tools like javac (compiler), java (runtime launcher), and appletviewer, while API refers to application programming interfaces - libraries and specifications, not executables.
-
Server
-
Client
-
Container
-
Both b & c
C
Correct answer
Explanation
Containers provide the runtime environment for components, managing their lifecycle and providing platform-specific services like security, transactions, and resource management. They act as the abstraction layer between application code and low-level platform functionality.
-
FlowLayout
-
BorderLayout
-
CardLayout
-
All the above
D
Correct answer
Explanation
Java AWT provides multiple layout managers: FlowLayout (left-to-right wrapping), BorderLayout (5 regions), CardLayout (stack of panels), GridLayout (grid), GridBagLayout (flexible grid). All listed options are valid AWT layout managers.
-
Window
-
Frame
-
Dialog
-
All the above
D
Correct answer
Explanation
In Java's AWT, the Window class and its subclasses (Frame and Dialog) all use BorderLayout as their default layout manager. Since Frame and Dialog inherit from Window, all options share this default layout.
-
Model-View-Controller
-
Make-Value-Case
-
Make-Value-Controller
-
Model-Value-Controller
A
Correct answer
Explanation
MVC (Model-View-Controller) is a design pattern that separates application logic into three interconnected components: Model (data/business logic), View (presentation/UI), and Controller (input handling and coordination). This separation enables modular development and maintenance.
-
getHeight()
-
getWidth()
-
getParameters()
-
Both a & b
C
Correct answer
Explanation
Ajax is both a technology platform (using XMLHttpRequest, JavaScript, CSS, HTML) and an architectural style (asynchronous, non-blocking updates). It represents both the technical implementation and the design pattern.
-
FeatureManifests
-
CodeAccessSecurity
-
CabinetNameTemplate
-
Assembly
C
Correct answer
Explanation
CabinetNameTemplate is not a valid element in manifest.xml for SharePoint solution packages. The manifest.xml file contains elements like FeatureManifests, CodeAccessSecurity, and Assembly which define the solution structure and security permissions. CabinetNameTemplate is related to CAB file naming but is not part of the manifest schema itself.
-
MVC
-
View Model
-
Small Talk
-
Core page
A
Correct answer
Explanation
Struts implements the Model-View-Controller architectural pattern, separating application logic (Model), presentation (View), and request handling (Controller). This separation improves maintainability, enables parallel development, and follows standard web application architecture.
A
Correct answer
Explanation
The Model-View-Controller pattern separates application concerns: Model handles data and business logic, View manages presentation and UI, and Controller processes user input and coordinates Model and View. This separation enables independent development, testing, and maintenance.
-
Command
-
Chain of Responsibility
-
Adapter
-
Interpreter
-
Strategy
B
Correct answer
Explanation
The Chain of Responsibility pattern passes a request along a chain of handling objects, where each object can either handle the request or pass it to the next. This matches the toolbar scenario where commands are passed from one object to another until the appropriate handler processes it. The Command pattern encapsulates requests as objects but doesn't inherently chain them. Adapter converts interfaces, Interpreter evaluates language syntax, and Strategy encapsulates algorithms - none of which fit this command-passing behavior.
-
javascript
-
SWT
-
.Net
-
swing
D
Correct answer
Explanation
Value editors for business rules in Rule Studio must be developed using Java Swing, as Rule Studio is built on the Eclipse platform which uses SWT but custom editors require Swing components. The editor framework in Rule Studio expects Swing-based UI components for value editing. JavaScript and .Net are not supported for this purpose.
-
Different in every ISPF menu
-
Determined by operating system
-
Fixed by ISPF and cannot be changed
-
May be changed using the ISPF SETTINGS function
D
Correct answer
Explanation
In ISPF, function key (PF key) definitions and mappings are not permanently fixed or determined dynamically by the host OS menu-by-menu. Instead, users can customize these settings to match their preferences using the ISPF SETTINGS panel (or command keys).
-
Flex
-
Ajax
-
SilverLight
-
None
-
SilverLight
-
Ajax
-
Flex
-
None