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

Multiple choice technology programming languages
  1. No, a toolbar can only display images

  2. No, a toolbar can only display text

  3. Yes, a toolbar can display text, images, or both.

  4. None of these

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Using

  2. Package

  3. Imports

  4. None of the above

Reveal answer Fill a bubble to check yourself
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).

Multiple choice technology programming languages
  1. Only Toolbar control

  2. ImageList and Toolbar control

  3. Both 1 and 2

  4. All the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. <jsp:include ….>

  2. <%include …%>

  3. All of the above

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. <init-property name="service" value="selectRecord"/>

  2. <set-property property="service" value="selectRecord"/>

  3. <put-field key="service" content="selectRecord"/>

  4. None

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Create separate configuration files for each locale

  2. Specify an locale for a definition

  3. Either A or B

  4. None

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Create separate configuration files for each locale

  2. Specify a locale for a form-set

  3. Either A or B

  4. None

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Model

  2. View

  3. Controller

  4. ViewController

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Editor

  2. Language

  3. Toolkit

  4. Platform

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. dijit/form/TextBox.js

  2. dijit/form/TextBox.css

  3. controls.js

  4. utility.js

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology platforms and products
  1. creator,guest

  2. Part,ECO

  3. Document,guest

  4. creator,Part

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology platforms and products
  1. sParentChild

  2. sChildParent

  3. ChildParent

  4. ParentChild

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology platforms and products
  1. Tables

  2. Inquiries

  3. Menus

  4. Icons

  5. Commands

Reveal answer Fill a bubble to check yourself
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.