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 technology web technology
  1. as a web part

  2. solution package

  3. user control

  4. SharePoint Designer

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

Solution packages (.wsp files) are the best practice for deploying custom code to SharePoint farms as they provide versioning, reusability, and proper deployment/retention processes. Web parts and user controls are components that can be deployed within solution packages, but the package itself is the deployment mechanism. SharePoint Designer is for customization, not code deployment.

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

  2. False

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

A FrameLayout in Android is designed to display a single item or stack multiple items. When multiple children are present, its dimensions are determined by the largest child plus any padding.

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 platforms and products
  1. Intent.getIntentExtras()

  2. Intent.getExtras()

  3. Bundle.getExtras()

  4. None of above

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

In Android, the extras associated with an Intent are retrieved using the Intent.getExtras() method, which returns a Bundle containing the key-value pairs. There is no getIntentExtras() method on Intent, making Intent.getExtras() the correct choice.