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

  2. card layout

  3. grid bag layout

  4. flow layout

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

FlowLayout is the default layout manager for Applet (and Panel) in Java AWT. It arranges components in a left-to-right, top-to-bottom flow, similar to text in a paragraph. When a row fills up, components wrap to the next line. GridLayout, CardLayout, and GridBagLayout must be explicitly set and are not the default for applets.

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 the correct answer because there are only three constructors 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. 

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 the 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) : creates a borderlayout with specified horizontal and vertical gaps between the components. 

Multiple choice
  1. It has a built-in CLR engine.

  2. It has a rich framework of built-in class library.

  3. It provides an unmanaged HTML DOM API.

  4. Silverlight supports PHP or Linux environment.

  5. It supports a WPF UI programming model.

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

This is incorrect.