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
-
No, a toolbar can only display images
-
No, a toolbar can only display text
-
Yes, a toolbar can display text, images, or both.
-
None of these
C
Correct answer
Explanation
Toolbars in Windows Forms and other UI frameworks are flexible and can display text, images, or both simultaneously. This allows developers to create toolbars that show button labels (text), icons (images), or a combination of both for better user experience and accessibility.
-
Using
-
Package
-
Imports
-
None of the above
C
Correct answer
Explanation
In VB.NET, the Imports keyword is used to reference namespaces in your code, similar to how 'using' is used in C#. This allows you to use types from those namespaces without fully qualifying them. The Package keyword doesn't exist in VB.NET, and Using is for resource management (like IDisposable objects).
-
Only Toolbar control
-
ImageList and Toolbar control
-
Both 1 and 2
-
All the above
B
Correct answer
Explanation
To create a toolbar, two controls are needed: an ImageList control and a Toolbar control.
Option A is incorrect because only a Toolbar control is not sufficient to create a toolbar.
Option B is correct because it accurately identifies the two controls needed to create a toolbar. An ImageList control is used to store the images that will be displayed on the toolbar buttons. A Toolbar control is used to create the actual toolbar, and it references the images in the ImageList control for the button icons.
Option C is incorrect because it is not a valid option.
Option D is incorrect because it includes option A which is incorrect.
Therefore, the correct answer is: B. ImageList and Toolbar control.
-
<jsp:include ….>
-
<%include …%>
-
All of the above
-
None of the above
C
Correct answer
Explanation
The Composite View pattern uses JSP include mechanisms (both the standard action and the <%@ include %> directive) to compose a page from multiple reusable sub-components. Both tags are valid for implementing this pattern, making 'All of the above' correct.
-
<init-property name="service" value="selectRecord"/>
-
<set-property property="service" value="selectRecord"/>
-
<put-field key="service" content="selectRecord"/>
-
None
B
Correct answer
Explanation
When creating custom ActionMapping subclasses with additional properties in Struts, you initialize those properties using the tag within the configuration. The syntax is . Option A uses wrong tag name, C uses wrong element, and D is incorrect.
-
Create separate configuration files for each locale
-
Specify an locale for a definition
-
Either A or B
-
None
A
Correct answer
Explanation
In Apache Tiles, localization is typically handled by creating separate configuration files for each locale (e.g., tiles-en.xml, tiles-fr.xml). The framework selects the appropriate file based on the user's locale preference. Specifying a locale for a single definition is not the standard approach.
-
Create separate configuration files for each locale
-
Specify a locale for a form-set
-
Either A or B
-
None
B
Correct answer
Explanation
Specifying a locale for a form-set allows you to define different validation rules and messages for different locales within the same Validator configuration file. This is more efficient than maintaining completely separate configuration files. The framework applies the appropriate form-set based on the user's locale.
-
Model
-
View
-
Controller
-
ViewController
C
Correct answer
Explanation
In the Model-View-Controller design pattern, Apache Struts serves primarily as the Controller framework by using the ActionServlet and Action classes to process incoming client requests and coordinate application flow. The Model handles business logic, and the View handles page presentation.
-
Editor
-
Language
-
Toolkit
-
Platform
C
Correct answer
Explanation
Dojo is a JavaScript toolkit (framework) for building dynamic web applications. It provides a comprehensive set of utilities, UI components, and tools for AJAX development. While it includes editors and runs on JavaScript, it's fundamentally a toolkit/framework, not just an editor, language, or platform.
-
dijit/form/TextBox.js
-
dijit/form/TextBox.css
-
controls.js
-
utility.js
A
Correct answer
Explanation
In Dojo's Dijit widget library, form controls are defined in the dijit/form directory. TextBox is defined in diit/form/TextBox.js. The .css file contains styles, controls.js and utility.js are not standard Dojo paths for form widgets.
-
Tables
-
Inquiries
-
Menus
-
Icons
-
Commands
A,B,C,E
Correct answer
Explanation
Matrix UI development uses Tables (A) for data display, Inquiries (B) for queries, Menus (C) for navigation, and Commands (E) for actions. Icons (D) are graphical assets, not functional UI objects. These components form the core UI toolkit for Matrix interfaces.
-
creator,guest
-
Part,ECO
-
Document,guest
-
creator,Part
A
Correct answer
Explanation
When a Bootstrap file is created in ENOVIA Matrix, it automatically generates two standard user components: 'creator' (the user who created the business object) and 'guest' (a read-only access role). These components are fundamental to Matrix's access control model and are created during initialization to establish ownership and basic permissions. Option B mentions Part and ECO which are business object types, not components. Option D incorrectly pairs creator with Part.
-
sParentChild
-
sChildParent
-
ChildParent
-
ParentChild
A
Correct answer
Explanation
In SpinnerSetting configuration, the 'sParentChild' setting controls parent-child group relationships. The naming convention suggests this parameter defines spinner hierarchy for parent and child group assignments. The other options are variations of the correct term but don't match the actual setting name.
-
Tables
-
Inquiries
-
Menus
-
Icons
-
Commands
A,B,C,E
Correct answer
Explanation
For Matrix UI Development, Tables, Inquiries, Menus, and Commands are core UI objects used to build user interfaces. Tables display data, Inquiries handle data queries and retrieval, Menus provide navigation, and Commands execute actions. Icons, while used in UI development, are typically considered graphical assets rather than functional UI objects in the Matrix framework.