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 platforms and products
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Anchors in Oracle Forms control positioning relative to a parent object in both vertical AND horizontal directions. The statement incorrectly claims anchors only determine vertical positioning, when in fact anchors can be set for horizontal positioning as well.

Multiple choice technology platforms and products
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A form in Oracle Forms does not require a main canvas. Forms can exist without canvases, or use only stacked canvases, tab canvases, or canvases of different types. While most forms have a content canvas for layout, it is not a technical requirement that a form must have at least one main canvas.

Multiple choice technology platforms and products
  1. Confine mode allows locking of frames.

  2. If Flex mode is on then you cannot move the objects outside the frame.

  3. IF Confine mode is on then you can move the objects outside the frame.

  4. None of the above.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Oracle Forms Layout Editor, Confine mode restricts object movement so they stay within their frame boundaries. When Confine is ON, you cannot move objects outside the frame - this is the 'confining' or 'locking' behavior. Flex mode is different - it controls whether objects snap to grid.

Multiple choice technology
  1. the procedure code algorithms

  2. the custom transformation API functions used in the procedure code

  3. Custom transformations are always active

  4. A property the user can set

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Custom transformations can be either active or passive based on a user-configurable property. Active transformations change the number of rows passing through them, while passive transformations do not. The transformation type is not determined by algorithms, API functions, nor are they always active.

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Action classes in Struts 2 do NOT have to extend ActionSupport. They only need to implement the Action interface (which has one method: execute()). ActionSupport is a convenient base class that provides default implementations and utility methods, but it's optional. You can even use plain POJOs as actions.

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Declarative validation in Struts 2 works through XML validation files that are named based on the Action class, not whether the class extends ActionSupport. Any class can have declarative validation as long as the validation XML follows the naming convention (ClassName-validation.xml). The ActionSupport extension is not required.

Multiple choice technology web technology
  1. UIInput or component that extends UIInput

  2. UIOutput or component that extends UIOutput

  3. UICommand or component that extends UICommand

  4. UIOutputLink or component that extends UIOutputLink

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In JSF, only components that extend UIInput can have their submitted values validated during the Process Validations phase. UIOutput components are for display only and don't receive user input, UICommand is for action events like button clicks, and UIOutputLink renders navigation links without accepting user input.

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

JSF validators are designed to validate individual component values, not multiple fields simultaneously. Cross-field validation requires workarounds like using phase listeners, custom validators that access other components via UIComponent.findComponent(), or Bean Validation (JSR 303/380) annotations with class-level constraints.

Multiple choice technology programming languages
  1. System.Web.UI.Page

  2. System.Windows.UI.Page

  3. System.Web.Page

  4. System.Windows.Page

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In ASP.NET, all .aspx pages inherit from the Page class located in the System.Web.UI namespace. The full namespace path is System.Web.UI.Page, which provides the base functionality for web pages including lifecycle events, request/response handling, and control management.

Multiple choice technology programming languages
  1. System.Web.Ui.Forms.Security

  2. System.Web.Configuration

  3. System.Web.Services

  4. System.Web.Security

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The System.Web.Security namespace provides classes for implementing ASP.NET security features, including forms authentication (FormsAuthentication class), membership providers, and role management. The other namespaces are for UI, configuration, and web services respectively.

Multiple choice technology web technology
  1. <%@ Page Debug="true" %>

  2. <%@ Application Debug="true" %>

  3. <%@ Page Trace="true" %>

  4. <%@ Application Trace="true" %>

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To enable compilation of debugging symbols and present detailed debugging information in ASP.NET pages, the Debug="true" attribute must be set in the page directive (&lt;%@ Page Debug="true" %&gt;). Setting Trace to true enables execution tracing, but does not compile debug symbols.

Multiple choice technology web technology
  1. The Click event.

  2. The SelectionChanged event.

  3. The SelectedIndexChanged event.

  4. The ChangedSelection event.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The DropDownList control in ASP.NET uses the SelectedIndexChanged event to detect when a user selects a different item. This event fires after the selection changes and the page posts back. The Click event (option A) is for button controls, and the other options are invented names that don't exist in the DropDownList control's event model.

Multiple choice technology web technology
  1. Web.config

  2. Error.config

  3. Application.config

  4. global.asax

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In ASP.NET web applications, configuration settings including custom error pages and error message settings are defined within the Web.config XML file under the `section. Other files likeError.configorApplication.config` are not standard configuration files for this purpose.

Multiple choice technology web technology
  1. TabControl

  2. Button

  3. RadioButton

  4. CheckBox

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

RadioButton controls are designed for mutually exclusive selection within a group - only one radio button can be selected at a time. CheckBox controls allow multiple selections. TabControl is for organizing content into tabbed pages, and Button is for triggering actions. For mutually exclusive choices, RadioButtons are the standard UI control.