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
-
HandleEvent
-
EventHandler
-
Pick
-
Park
C
Correct answer
Explanation
The Pick activity in WF 4.0 is specifically designed for event-driven scenarios. Each branch in a Pick contains a Trigger activity (like ReceiveEvent) that waits for a specific event, and an Action activity that executes when that event occurs. This makes Pick the primary event-handling construct in WF 4.0.
-
Dialog
-
View
-
Menu
-
View groups
B,D
Correct answer
Explanation
Android user interfaces are built hierarchically using View and ViewGroup objects. Dialogs and menus are window components that contain view hierarchies rather than being the direct structural building blocks.
-
FrameLayout
-
TableLayout
-
RelativeLayout
-
SystemLayout
D
Correct answer
Explanation
FrameLayout, TableLayout, and RelativeLayout are all standard Android layout classes. SystemLayout does not exist in the Android SDK, making it the correct non-layout object.
-
Button
-
TextView
-
EditText
-
CheckBox
A,B,C,D
Correct answer
Explanation
All four options (Button, TextView, EditText, CheckBox) are fully implemented UI widgets in the Android SDK. These are basic View classes available from API Level 1 and are commonly used in Android application development for user interaction.
-
Side Menu
-
Submenu
-
Indirect Menu
-
Active Menu
B
Correct answer
Explanation
A submenu is a floating list of menu items opened by pressing an item in another menu (like the Options Menu). Side menu, active menu, and indirect menu are not standard terms for this Android UI component.
-
Class Structure, Properties, User Interface, Activities
-
Class Structure, Properties, Activities,User Interface
-
Properties, Class Structure, User Interface, Activities
-
Class Structure, Activities,Properties, User Interface
A
Correct answer
Explanation
SmartBuild in Pega follows a logical sequence: first establish the Class Structure (data model foundation), then define Properties (attributes), then create the User Interface (forms/screens), and finally implement Activities (business logic and processing). This sequence ensures data structure exists before UI is built, and UI exists before process flows are defined.
-
execute the business method
-
format the working document
-
display the user screen
-
all the above
A
Correct answer
Explanation
The service event in Genesys is primarily used to execute the business method or logic associated with a service. It triggers the actual processing or computation that the service provides. The other options (formatting documents, displaying screens) are handled by different components in the framework.
-
provides input to the service
-
format the working document
-
display the user screen
-
lookup for the service name
A
Correct answer
Explanation
The In parameter in a service event provides input data to the service. This parameter allows data to flow into the service method for processing. It is not used for formatting documents, displaying screens, or looking up service names - those are separate concerns handled by other components.
-
provides input to the service
-
format the working document
-
display the user screen
-
lookup for the service name
C
Correct answer
Explanation
In client events, the In parameter is used to display the user screen - it specifies which screen or UI elements to present to the user. Option A refers to service events. Option B is not the primary purpose of In parameters. Option D refers to service lookup operations.
-
MapActivity
-
MapView
-
MapController
-
None of the above
C
Correct answer
Explanation
In the legacy Google Maps library for Android, the MapController class is specifically designed to control and navigate map locations (such as panning and zooming). MapView displays the map, and MapActivity manages the lifecycle of map views.
-
Dispatched when a component has been created in a rough state, and no children have been created.
-
Dispatched when the component has been laid out and the component is visible (if appropriate).
-
Dispatched when a component and all its children have been created, but before the component size has been determined
-
Dispatched when a component has been updated
C
Correct answer
Explanation
In the Flex component lifecycle, the initialize event is dispatched after the component and all its children have been created but before the component's size has been determined. Option C accurately describes this stage - creation is complete, but layout calculation has not occurred yet. The preinitialize event fires earlier, and creationComplete fires after layout.
-
DataGrid
-
AdvancedDataGrid
-
SummaryRow
-
GroupedTable
B
Correct answer
Explanation
AdvancedDataGrid extends DataGrid to provide built-in support for grouped and hierarchical data display. While regular DataGrid shows flat data, AdvancedDataGrid can group data by fields and display it in an expandable tree format within the tabular structure. SummaryRow is used within AdvancedDataGrid but is not a standalone grouping control.
-
scaleContent
-
states
-
httpStatus
-
imageLoaded
C
Correct answer
Explanation
The httpStatus event is dispatched when the mx:Image control encounters an HTTP error while loading an image, such as a 404 Not Found or 403 Forbidden response. By monitoring this event and checking its status code, you can determine whether the image failed to load correctly. The other options (scaleContent, states, imageLoaded) are not standard mx:Image events for detecting load status - scaleContent is a property, states refers to view states, and imageLoaded is not a built-in event name.
-
defer the creation of any component, container, or child of a container
-
delete the creation of any component, container, or child of a container
-
create parent container
-
Attach child container to Parent container
A
Correct answer
Explanation
The creationPolicy property in Flex controls when components are instantiated - setting it to 'deferred' or 'none' delays the creation of components, containers, or their children until they are actually needed. This improves startup performance and reduces initial memory usage. Option B incorrectly suggests 'delete' instead of 'defer', while options C and D describe unrelated container attachment operations.
-
To change height and width of a object
-
To make relative changes to the size of a display object
-
To change height more than width
-
To change width more than height
B
Correct answer
Explanation
scaleX and scaleY properties are best used for making relative proportional changes to a display object's size (like scaling to 50% or 200%), rather than for setting absolute dimensions. When you need to change specific height or width values, use the height and width properties directly. Options A, C, and D incorrectly suggest using scale properties for absolute dimension changes.