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
-
Size
-
Height & Width
-
Size & Overflow
-
Pixel
C
Correct answer
Explanation
In Cognos Report Studio, the Size property determines the dimensions of an object, while Overflow controls how content behaves when it exceeds the specified size. Together, these properties allow precise control over object layout and content display.
-
Script to be run when an element has been dragged
-
Script to be run at the end of a drag operation
-
Script to be run when an element is being dragged over a valid drop target
-
Script to be run when an element has been dragged to a valid drop target
D
Correct answer
Explanation
The ondragenter event fires as soon as a dragged element enters the boundaries of a valid drop target. The ondragover event, by contrast, fires continuously while the element is being dragged over the target. Other options describe the start (ondragstart) or end (ondragend) of the drag operation.
-
Single
-
All
-
PerSession
-
PerCall
B
Correct answer
Explanation
InstanceContextMode enumeration in WCF includes three values: Single (one instance for all clients), PerSession (one instance per client session), and PerCall (new instance per method call). The All option correctly encompasses all these available modes.
-
ViewStack
-
VBox
-
HBox
-
Canvas
B
Correct answer
Explanation
In Apache Flex/ActionScript container layouts, VBox automatically arranges its child components in a vertical column. HBox arranges them horizontally, Canvas uses absolute positioning, and ViewStack manages stacked views showing one at a time.
-
ViewStack
-
TitleWindow
-
Accordion
-
Application
B
Correct answer
Explanation
In Apache Flex, TitleWindow is a subclass of Panel that adds a title bar and close button, typically used for modal dialog-style windows. ViewStack, Accordion, and Application are not Panel subclasses; Application is typically the root container.
-
TitleWindow
-
ControlBar
-
PopUpBBar
-
ButtonBar
A
Correct answer
Explanation
The TitleWindow component in Flex is specifically designed to present dialog-style windows with a title bar and optional close button. It extends Panel and is commonly used with the PopUpManager to display modal dialogs.
-
Controller
-
View
-
Pattern
-
Model
D
Correct answer
Explanation
In the MVC (Model-View-Controller) architecture pattern, the Model component encapsulates both the data and the business logic or behaviors related to that data. The Controller handles user input and coordinates between Model and View, while the View is responsible for displaying the data. Patterns are general design solutions, not specific components.
-
Sortable Columns
-
Rearrange columns at runtime
-
Represent hierarchical data
-
Customize a cell in datagrid
C
Correct answer
Explanation
The mx:DataGrid component in Flex is designed for flat, tabular data display. While it supports sortable columns, runtime column rearrangement, and custom cell renderers, it cannot represent hierarchical or tree-structured data. For hierarchical data, you would use mx:AdvancedDataGrid or mx:Tree instead.
-
DropIn ItemRenderer
-
Inline ItemRenderer
-
Custom Component ItemRender
-
No way to do that in Flex.
C
Correct answer
Explanation
When you need to reuse an ItemRenderer across multiple columns in a DataGrid, creating a Custom Component ItemRenderer is the best practice. This approach creates a reusable component that can be referenced by multiple columns. Drop-in and Inline ItemRenderers are typically single-use solutions embedded within the MXML tag of a specific column.
-
Access via parent
-
Have a variable outside of the datagrid to hod the data
-
Using implicit object called “data”
-
Using implicit object called “object”
C
Correct answer
Explanation
Inside an ItemRenderer, you can access the data object corresponding to the current DataGrid row through an implicit property called 'data'. This property is automatically set by the DataGrid and contains the data provider item for that specific row. Accessing via parent or using external variables is not the standard approach.
-
preinitialize of the Container
-
initialize of the container
-
creationComplete of the child Components of the container
-
creationComplete of the Container
D
Correct answer
Explanation
The creationComplete event of the container is the correct place to trigger logic that repositions children because it fires after all children have been created and laid out. Using preinitialize or initialize would be too early; the children may not exist yet. Using creationComplete on individual children would require attaching logic to each child separately rather than handling it centrally at the container level.
-
A browser-based client
-
Primarily used for task processing
-
Has a hierarchal folder-based user interface
-
Is a part of the EMC Documentum Transactional Content Management offering
A,B,D
Correct answer
Explanation
TaskSpace is a browser-based client within the EMC Documentum Transactional Content Management suite designed primarily for task and process handling. Unlike folder-centric interfaces like Webtop, TaskSpace focuses on structured process execution, rendering folder-based hierarchy options incorrect as its primary interface description.
-
Controller
-
View
-
Model
-
None of the above
A
Correct answer
Explanation
In standard MVC architectures, the Action Controller is mapped directly to the Controller component, which handles incoming user requests and orchestrates model and view interactions.
C
Correct answer
Explanation
The PS Framework implements MVC 2 architecture with a centralized controller (Action Servlet) managing requests, JSPs as views, and business services as models. MVC 2 improves on MVC 1 by providing cleaner separation of concerns and better request handling.
-
dispatch function
-
event handler
-
control structure
-
exception handler
B
Correct answer
Explanation
An event handler is a subroutine or function that executes in response to a specific event, such as a user clicking a GUI button or typing text. Dispatch functions route messages, control structures guide execution flow, and exception handlers catch runtime errors rather than GUI interactions.