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
-
DISPLAY.cpl
-
DESK.cpl
-
DISP.cpl
-
DISPROP.cpl
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.
-
PreBuild
-
Activate
-
PostBuild
-
Workflow
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.
-
ItemSelected event
-
PrePopup event
-
PreBuild event
-
PostBuild event
A
Correct answer
Explanation
The ItemSelected PeopleCode event is specifically designed to execute when a user selects an item from a pop-up menu. This event is unique to pop-up menu items and is not associated with standard pages or other components.
-
Workflow, Activate
-
PreBuild, PostBuild
-
SearchInit, SearchSave
-
ItemSelected, PrePopup
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.
-
android:padding
-
android:layout_gravity
-
android:layout_weight
-
None of above
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.
-
ScrollView
-
ListView
-
Both, a & b above
-
None of above
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.
-
View
-
ViewField
-
TextView
-
None of above
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.
-
Lets child views specify their position relative to the parent view or to each other
-
Enables child views to specify their own exact x/y coordinates on the screen
-
Aligns all children in a single direction - Vertically or Horizontally
-
Its basically a blank space on screen that can be later filled with a single object
-
None of above
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.
-
Button
-
TextView
-
CompoundView
-
None of above
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.
-
TableLayout
-
LinearLayout
-
RalativeLayout
-
FrameLayout
-
None of above
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.
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.
-
Left and top-aligned
-
Only left aligned
-
Only top aligned
-
None of above
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.
-
Both Widgets will occupy the same free space.
-
2nd Widget will use twice the free space that 1st Widget takes
-
1st Widget will use twice the free space that 2nd Widget takes
-
None of above
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.
-
Object Explorer only
-
Object Diagram and Object Explorer
-
Repository only
-
Object Diagram only
-
Object Diagram and Repository
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.