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 technology operating systems
  1. DISPLAY.cpl

  2. DESK.cpl

  3. DISP.cpl

  4. DISPROP.cpl

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

DESK.cpl is the Control Panel file that opens Display Properties in Windows. The .cpl extension indicates Control Panel applets. DISPLAY.cpl, DISP.cpl, and DISPROP.cpl are not valid Windows CPL files - the correct name is DESK.cpl (short for Desktop properties). You can run it by entering 'desk.cpl' in the Run dialog or Command Prompt.

Multiple choice technology packaged enterprise solutions
  1. PreBuild

  2. Activate

  3. PostBuild

  4. Workflow

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

The Activate event is the only PeopleCode event specifically associated with a Page object in PeopleSoft. Other events like PreBuild and PostBuild are associated with Components, not Pages. The Activate event fires when a page becomes active in the component.

Multiple choice technology packaged enterprise solutions
  1. Workflow, Activate

  2. PreBuild, PostBuild

  3. SearchInit, SearchSave

  4. ItemSelected, PrePopup

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

The PreBuild and PostBuild PeopleCode events are commonly used to control page visibility within a component. PreBuild can hide pages before they're displayed, and PostBuild can modify visibility after initial building. This allows dynamic page showing/hiding based on conditions.

Multiple choice technology platforms and products
  1. android:padding

  2. android:layout_gravity

  3. android:layout_weight

  4. None of above

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

To increase white space between widgets in Android layouts, you would use margins (android:layout_margin or similar), not padding. Padding adds space inside a widget's boundaries, while margins add space outside. None of the listed options (padding, layout_gravity, layout_weight) are the correct property for adding space between widgets. Option A (padding) adds internal space. Option B (layout_gravity) controls positioning within the parent. Option C (layout_weight) controls how remaining space is distributed among widgets.

Multiple choice technology platforms and products
  1. ScrollView

  2. ListView

  3. Both, a & b above

  4. None of above

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

ScrollView is a container layout that provides scrolling functionality for its child content, allowing users to view content that exceeds the visible screen area. Option B (ListView) is a specialized view for displaying scrollable lists of data, but it's not the general-purpose container the question asks about. Option C is incorrect because while ListView does scroll, ScrollView is the fundamental container class specifically designed to add scrolling to any content.

Multiple choice technology platforms and products
  1. View

  2. ViewField

  3. TextView

  4. None of above

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

EditText extends TextView, which is the base class for displaying text in Android. TextView is used for labels and non-editable text display, while EditText adds editing capabilities. View is the parent of TextView (too generic), and ViewField is not a valid Android class.

Multiple choice technology platforms and products
  1. Lets child views specify their position relative to the parent view or to each other

  2. Enables child views to specify their own exact x/y coordinates on the screen

  3. Aligns all children in a single direction - Vertically or Horizontally

  4. Its basically a blank space on screen that can be later filled with a single object

  5. None of above

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

FrameLayout is designed to block out an area on the screen to display a single item, acting as a placeholder that can be filled dynamically. The distractors describe RelativeLayout (relative positioning), AbsoluteLayout (x/y coordinates), and LinearLayout (linear alignment of children), which are distinct layouts.

Multiple choice technology platforms and products
  1. Button

  2. TextView

  3. CompoundView

  4. None of above

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

In Android, the hierarchy for RadioButton is View -> TextView -> Button -> CompoundButton -> RadioButton. Among the options, TextView is the ancestor/root widget class from which RadioButton inherits its text-rendering capabilities. Button is a direct parent, and CompoundView does not exist in the standard Android widget library.

Multiple choice technology platforms and products
  1. TableLayout

  2. LinearLayout

  3. RalativeLayout

  4. FrameLayout

  5. None of above

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

TableLayout arranges views in rows and columns, providing a grid-like structure. LinearLayout arranges in one direction (row or column), RelativeLayout uses positional relationships, and FrameLayout stacks views. The claimed answer A is correct.

Multiple choice technology platforms and products
  1. True

  2. False

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

The explanation is REVERSED in the statement. android:gravity controls content positioning WITHIN a View (used by the View), while android:layout_gravity controls the View's position WITHIN its container (used by the container/Layout). The statement incorrectly swaps their usage. The claimed answer B (False) is correct.

Multiple choice technology platforms and products
  1. Left and top-aligned

  2. Only left aligned

  3. Only top aligned

  4. None of above

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

By default, Android's LinearLayout is horizontally oriented and aligns its children starting from the top-left corner (Gravity.TOP | Gravity.START or left-aligned in standard LTR layouts). Distractors incorrectly claim it is only left-aligned or only top-aligned, whereas both horizontal and vertical alignment rules apply.

Multiple choice technology platforms and products
  1. Both Widgets will occupy the same free space.

  2. 2nd Widget will use twice the free space that 1st Widget takes

  3. 1st Widget will use twice the free space that 2nd Widget takes

  4. None of above

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

layout_weight allocates REMAINING (free) space proportionally. If widget A has weight 1 and widget B has weight 2, the total weight is 3. Widget A gets 1/3 of free space, widget B gets 2/3 - so B gets twice what A gets. The claimed answer B is correct.

Multiple choice technology
  1. Object Explorer only

  2. Object Diagram and Object Explorer

  3. Repository only

  4. Object Diagram only

  5. Object Diagram and Repository

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

Object diagrams provide a visual representation of object instances and their relationships at a specific point in time. Object Explorer allows navigation and modification of objects within a modeling environment. Together, these tools enable comprehensive modification of both objects and their relationships.