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

Multiple choice
  1. Both windows must be defined as dialog and modal.

  2. Both windows must be defined as document and modeless.

  3. Both windows must be defined as document and modal.

  4. The default window must be defined as modeless and the Buttonswindow must be modal.

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

For free navigation between windows without restriction, both must be document and modeless. Document windows can contain multiple data blocks and modeless windows don't block interaction with other windows. Dialog windows are modal by definition, preventing free navigation. Modal windows require user response before allowing navigation elsewhere.

Multiple choice
  1. Click Create with the Property Classes node selected in the Object Navigator Open the Property Palette for the new property class Click Add Property Control-click the Exit button and in the Property Palette selected the properties to add Multiselect all the other buttons in the Object Navigator and open their Property Palette Click Property Class

  2. Open the Property Palette for the Exit button and multiselect the desired properties Click Property Class Multiselect all the other buttons in the Object Navigator and open their Property Palette Set the Subclass Information property to the name of the new property class

  3. Open the Property Palette for the Exit button and multiselect the desired properties Click Property Class Multiselect all other buttons in the Object Navigator and open their Property Palette Click Inherit

  4. Open the Property Palette for the Exit button and multiselect the desired properties Click Copy Properties Select the Property Class node in the Object Navigator and click Create Open the Property Palette for the new Property Class Click Paste Properties Multiselect all the other buttons in the Object Navigator and open their Property Palette Set the Subclass Information property to the name of the new property class

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

The process involves creating a property class from the Exit button's properties, then applying it to other buttons via Subclass Information. Option A incorrectly adds properties FROM a button TO a class. Option C's 'Inherit' option doesn't exist - you must set Subclass Information. Option D's copy/paste approach is unnecessarily complex compared to the direct Property Class creation method.

Multiple choice
  1. Set the List Style property to combo box. From the When-List-Activated trigger, call the Add_List_Element built-in.

  2. Set the List Style property to Tlist. From the When-List-Activated trigger, call the Populate_List built-in.

  3. Set the List Style property to poplist. From the When-List-Activated trigger, call the Add_List_Element built-in.

  4. Set the List Style property to combo box. From the When-List-Changed trigger, call the Add_List_Element built-in.

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

To enable users to add values to a list item, you need a combo box style (which allows input) and the Add_List_Element built-in. The When-List-Activated trigger fires when the list is accessed, making it the right place to add new items. Option A correctly specifies both the combo box style and the appropriate trigger.

Multiple choice
  1. FormF can be invoked from FormC using CALL_FORM.

  2. FormF can be invoked from FormA using OPEN_FORM.

  3. FormF can be invoked from FormD using CALL_FORM.

  4. FormF can be invoked from FormE using CALL_FORM.

  5. FormF can be invoked from FormB using OPEN_FORM.

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

CALL_FORM creates a modal relationship - the called form must be closed before returning to the caller. OPEN_FORM is modeless. The chain shows FormB called FormE with CALL_FORM, so FormE is currently modal over FormB. FormF can be invoked from FormE using CALL_FORM because FormE is active and can initiate modal calls. Other options are incorrect because CALL_FORM from Forms A, C, or D would block their respective parents.

Multiple choice
  1. It appears in the Forms Builder window that can be minimized once OC4J starts.

  2. It appears in a separate window that can be closed once OC4J starts.

  3. It appears in the Forms Builder window that can be closed once OC4J starts.

  4. It appears in a separate window that should not be closed as the OC4J instance will abort.

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

OC4J (Oracle Containers for J2EE) starts in a separate window when running forms from Forms Builder. This window must remain open - closing it terminates the OC4J instance, which would interrupt form execution. The window cannot be closed without affecting the running instance.

Multiple choice
  1. Write Java wrapper classes to integrate the Hierarchical Tree item into Forms.

  2. Add a special layer of Java code to register the properties and methods of the Hierarchical Tree Item.

  3. Use the FTree PL/SQL Package and its built-ins to register and invoke the Hierarchical Tree Item.

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

Oracle Forms provides the FTree PL/SQL package specifically for working with Hierarchical Tree items. This package includes built-ins like ADD_TREE_DATA, DELETE_TREE_NODE, and SET_TREE_PROPERTY to register, populate, and manipulate hierarchical trees. Options A and B incorrectly suggest writing Java code - Forms has native PL/SQL support for tree items without requiring Java wrappers or additional layers.

Multiple choice
  1. FormF can be invoked from FormC using CALL_FORM.

  2. FormF can be invoked from FormA using OPEN_FORM.

  3. FormF can be invoked from FormD using CALL_FORM.

  4. FormF can be invoked from FormE using CALL_FORM.

  5. FormF can be invoked from FormB using OPEN_FORM.

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

FormF can be invoked from FormE using CALL_FORM.

Multiple choice
  1. The form doesn't compile and therefore cannot be tested.

  2. The icon is not displayed on the button. When the Sales Rep Id field is clicked and then the button is clicked, the LOV is invoked.

  3. The icon is displayed on the button. When the Sales Rep Id field is clicked and then the button is clicked, the LOV is not invoked and an error is reported.

  4. The icon is not displayed on the button. When the Sales Rep Id field is clicked and then the button is clicked, the LOV is not invoked and an error is reported.

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

The icon filename property contains 'list .ico' with a space before the extension, but the actual file is 'list.gif' - this mismatch prevents icon display. The LIST_VALUES built-in requires the LOV to be associated with the currently focused item, but the button click shifts focus away from the text item, causing an error. This is a common Oracle Forms pitfall - the code would work if called via KEY-LISTVAL trigger or if LOV was properly validated.

Multiple choice
  1. It is not possible to change the item type once its been created.

  2. The item type can be changed while placing the item on the canvas using layout wizard.

  3. Create a new Display Item and name it as Employee_id.

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Multiple choice
  1. Define the display area for a stacked canvas by using the built-in procedure Set_Canvas_Property.

  2. Define the display area for a stacked canvas by using the built-in procedure Set_Window_Property

  3. Define the display area for a content canvas by using the built-in procedure Set_Canvas_Property.

  4. Define the display area for a content canvas by using the built-in procedure Set_View_Property.

  5. Define the display area for a stacked canvas by using the built-in procedure Set_View_Property.

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

A stacked canvas (overlay canvas) requires defining its display area using Set_View_Property, which sets the viewport size and position. This determines where and how large the overlay appears on the content canvas beneath it. Set_Canvas_Property affects canvas properties, not the viewport display area.

Multiple choice
  1. Overlay stacked canvas

  2. Overlay Tab canvas that is associated with a separate window

  3. Content canvas that is associated with the same window as the two content canvases

  4. Horizontal Toolbar canvas that is associated with a separate window

  5. Horizontal Toolbar canvas that is associated with the same window as the two content canvases

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

For icon buttons that must always be accessible while users work with content canvases, a Horizontal Toolbar canvas associated with the same window is the appropriate choice. Toolbar canvases are specifically designed to display buttons or iconic items that remain visible and accessible regardless of navigation within content canvases. Options A and B are incorrect because overlay canvases are for conditional display, not persistent access. Option C is incorrect because a second content canvas doesn't provide button persistence. Option D is incorrect because a separate window would hide buttons when the main window is active.

Multiple choice
  1. Use the GET_ALERT_PROPERTY function.

  2. Use the GET_ALERT_BUTTON_PROPERTY function.

  3. Check the value returned by the SHOW_ALERT function to see if it is 1, 2, or 3.

  4. Check the value returned by the SHOW_ALERT function to see if it is ALERT_BUTTON1, ALERT_BUTTON2, or ALERT_BUTTON3.

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

Check the value returned by the SHOW_ALERT function to see if it is ALERT_BUTTON1, ALERT_BUTTON2, or ALERT_BUTTON3.

Multiple choice
  1. It can be created by first creating a text item and then changing the item type.

  2. It can be created in the Layout Editor using a special tool that creates a calculated item.

  3. It can be created by first creating a display item and then setting appropriate properties in its Calculation property group.

  4. It can be created in the Layout Editor by selecting the Salary item of the Employees block, selecting the Control block from the block list, clicking the Text Item tool, and drawing a text item on the canvas to automatically calculate a sum of the selected Salary item.

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

In Oracle Forms, calculated items are created as display items first, then their Calculation properties are configured to define the formula (like SUM over a block). Text items can't become calculated items. The Layout Editor text item tool doesn't auto-create calculations - you must set properties manually.