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. 5

  2. 4

  3. 3

  4. 2

  5. 1

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

This is correct answer because there are two constructors of borderlayout are present in java.these are:-BorderLayout() :- creates a default borderlayout.BorderLayout(int hgap, int vgap) :- create a borderlayout with specified horizontal and vertical gap between the components.So this answer is correct.

Multiple choice
  1. 5

  2. 4

  3. 3

  4. 2

  5. 1

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

This is correct answer because there are only three constructors are there for FlowLayout. These are:-FlowLayout() :- create a default flowLayoutFlowLayout(int Alignment) :- creates a flowlayout with specified alignment, where alignment can take value, FlowLayout.LEFT, FlowLayout.LEFT ,FlowLayout.LEFTFlowLayout(int alignment , int hgap , int vgap) :- same as second constructor with specified horizontal and vertical gap between the components.So this answer is correct.

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

When OC4J (Oracle Containers for Java) starts, it opens in a separate command console window. This window must remain open because closing it terminates the OC4J instance, which would interrupt the form execution. The window displays OC4J startup and runtime messages. Options A and C are incorrect because OC4J runs independently, not within Forms Builder. Option B is wrong because while it is a separate window, it should NOT be closed.

Multiple choice
  1. Frame consisting of the Employee_id, Employee_Name ,Employee_Address Items.

  2. Canvas

  3. Frame consisting of the DEPARTMENT_ID, MANAGER_ID, and LOCATION_ID items.

  4. The Departments block. The DEPARTMENT_ID, MANAGER_ID, and LOCATION_ID items All of the above

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

The Layout Wizard in Re-Entrant mode modifies properties of items within a selected frame. To alter the Department ID, Manager ID, and Location ID fields, you must first select the frame containing those specific items (DEPARTMENT_ID, MANAGER_ID, LOCATION_ID). The wizard cannot modify items directly without their parent frame being selected.

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

The SHOW_ALERT function in Oracle Forms returns named constants ALERT_BUTTON1, ALERT_BUTTON2, or ALERT_BUTTON3 to indicate which button the user pressed. These constants, not numeric values 1/2/3, are the proper way to programmatically determine the user's response.

Multiple choice
  1. removeLayoutComponent(Component c)

  2. removeComponent(Component c)

  3. maxLayoutSize(Container c)

  4. preferredSize(Container c)

  5. addLayoutComponent(Component c, Object constraints)

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

This is the correct choice. removeLayoutComponent(Component c) method is present in the CardLayout class in Java. 

Multiple choice
  1. getMaximumSpanAxis(int axis)

  2. getMaxSpanAxis(int axis)

  3. getMaximumSpan(int axis)

  4. getMaxSpanAxis(int axis)

  5. None of these

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

This is the correct choice. getMaximumSpan(int axis) method is present in the BlockView class and it determines the maximum span for a view along an axis, which is specified as an argument to it.