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
  1. windowMoved()

  2. windowClosing()

  3. windowIconified()

  4. windowActivated()

  5. windowDeiconified()

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

If a class implements an interface then it is necessary for that class to define body to all the methods defined in the interface it is implementing.But windowMoved() method is not present in windowListener interface.So when a class will implement this interface this method need not to be define in the class.So this option is correct.

Multiple choice
  1. setLocation(int, int)

  2. setVisible(Boolean)

  3. setSize(int, int)

  4. setDefaultCloseOperation(int)

  5. pack()

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

This function is not defined in the Frame class. This function is defined in JFrame class in Swings.So this method cannot be invoked using the object of Frame class.But can be invoked using the Object of JFrame class.This method specifies the operation when the frame is closed.So the following line would be false.Frame f1 = new frame();f1.setDefaultCloseOperation(int);so this is the correct answer.

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