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

  2. Panel

  3. Both 1 and 2

  4. None of these

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

Both Frame and Panel are containers in Java AWT. A Frame is a top-level window with a title bar, while a Panel is a generic container used to group components.

Multiple choice
  1. applet viewer tool

  2. show applet tool

  3. display applet tool

  4. appletviewer tool

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

appletviewer is the JDK tool specifically designed to test and view Java applets without needing a full web browser. The other options (applet viewer tool, show applet tool, display applet tool) are descriptive phrases but not the actual command-line tool name. The correct tool is invoked with 'appletviewer' followed by the HTML file containing the applet tag.

Multiple choice
  1. stack

  2. queue

  3. list

  4. flow

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

CardLayout in Java AWT stores multiple components in a stack-like structure, where only one component is visible at a time. Each component can be thought of as a 'card' in the stack, and you can flip through them to show different components. This is different from QueueLayout, ListLayout, or FlowLayout which don't use stack-based storage.

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.