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
-
Site Collection = SPSite
-
Site Collection = SPWeb
-
Sub Site = SPWeb
-
Sub Site = SPSite
A,C
Correct answer
Explanation
In the SharePoint Object Model, SPSite represents a Site Collection and SPWeb represents a site (which can be the top-level site of a collection or a subsite). Therefore Site Collection = SPSite and Sub Site = SPWeb are the correct mappings. The inverse mappings are incorrect.
-
One Content Type must be associated with Page Layouts
-
Multiple Content Types can be associated to a single Page Layout
-
Page Layout can be created without associating Content Type
-
Multiple Page Layouts can be created using single kind of Content Type
A,D
Correct answer
Explanation
In SharePoint Publishing, Content Types and Page Layouts have a specific relationship: (A) Every Page Layout must be associated with a Content Type, and (D) Multiple Page Layouts can be created from the same Content Type. Option B is incorrect because a Page Layout can only be associated with one Content Type, and Option C is incorrect because Page Layouts cannot be created without an associated Content Type.
-
Introducing new methods.
-
Adding components to specific areas of a container.
-
Starting an applet.
-
Specifying font size and color.
B
Correct answer
Explanation
BorderLayout provides predefined constants (NORTH, SOUTH, EAST, WEST, CENTER) that specify where components should be placed within a container using a layout manager. Option A is incorrect because layout managers don't introduce new methods. Option C refers to applets, which are unrelated to layout management. Option D describes font and color attributes, not component positioning.
-
Site Collection = SPSite
-
Site Collection = SPWeb
-
Sub Site = SPWeb
-
Sub Site = SPSite
A,C
Correct answer
Explanation
In SharePoint Object Model, Site Collections are represented by SPSite objects, and Sub Sites (webs) are represented by SPWeb objects. This is the correct mapping. Options B and D reverse these mappings, which is incorrect.
-
One Content Type must be associated with Page Layouts
-
Multiple Content Types can be associated to a single Page Layout
-
Page Layout can be created without associating Content Type
-
Multiple Page Layouts can be created using single kind of Content Type
A,D
Correct answer
Explanation
The relationship between Content Types and Page Layouts is: (A) A Content Type must be associated with a Page Layout (you can't create a layout without one), and (D) Multiple Page Layouts can be created using a single Content Type (you can create different layouts for the same content type). Page Layouts cannot be created without a Content Type.
-
Introducing new methods.
-
Adding components to specific areas of a container.
-
Starting an applet.
-
Specifying font size and color.
B
Correct answer
Explanation
BorderLayout is a layout manager in Java AWT that divides a container into five regions: North, South, East, West, and Center. The static fields (NORTH, SOUTH, EAST, WEST, CENTER) are constants used to specify where components should be added. It simplifies GUI positioning by providing predefined areas.
-
Click the Filter button
-
Click the funnel button
-
Click the view button
-
None of the above
A
Correct answer
Explanation
OLA Watcher provides a Filter button in the interface that allows users to filter displayed tickets based on various criteria. This is the standard UI pattern for filtering in this tool, accessed directly through a labeled button.
-
Object signing
-
Style sheets
-
Netcaster channels
-
Image rollovers
A
Correct answer
Explanation
JavaScript object signing uses JAR (Java Archive) files to contain digital signatures that verify the authenticity and origin of signed scripts or objects. This was part of Netscape's security model. Option A correctly identifies this. Options B (style sheets), C (Netcaster channels), and D (image rollovers) do not use JAR files.
-
Project Properties Window
-
Tool Bar
-
Tool Box window
-
Project explorer
A
Correct answer
Explanation
The Project Properties Window is where you would see a Categorized view or an Alphabetical View. This is different from the Tool Bar, Tool Box window, and Project explorer which serve different purposes in the IDE.
-
The Class window
-
The Project window
-
The Properties window
-
The Blank Form window
A
Correct answer
Explanation
This question refers to the classic Visual Basic 6 IDE startup interface. On startup, the Project, Properties, and Blank Form windows are displayed by default, whereas the Class window (Class Browser) is not visible unless explicitly opened.
-
Event Handling
-
Page_Load
-
Validate
-
Page_Unload
D
Correct answer
Explanation
The webforms lifecycle consists of several stages including Init, Load, Validate, Event Handling, PreRender, and finally Unload. The Page_Unload event is the last stage where resources are cleaned up before the page is destroyed.
-
System.web.control
-
System.web.rootbuilder
-
System.web.Usercontrol
-
System.web.UIPage
D
Correct answer
Explanation
Web pages in .NET framework belong to the System.Web.UI namespace hierarchy. The other options are incorrect namespace names that don't exist in the .NET Framework.
-
IsMdiChild on Forms A,B and C; and IsMdiParent on FormD.
-
MdiParent on Forms A,B and C; and IsMdiContainer on FormD.
-
IsMdiChild on Forms A,B and C; and IsMdiContainer on FormD.
-
MdiParent on Forms A,B and C; and IsMdiParent on FormD.
B
Correct answer
Explanation
In Windows Forms MDI (Multiple Document Interface) applications, child forms are assigned to the MdiParent property of the container form. The parent form (FormD) must have IsMdiContainer set to true. Option B correctly describes setting the MdiParent property on child forms and IsMdiContainer on the parent. Options A and C incorrectly use IsMdiChild which isn't a standard property, and option D incorrectly uses IsMdiParent instead of IsMdiContainer.
-
DebuggerBrowsable
-
ComVisible
-
Browsable
-
DisplayBrowsable
C
Correct answer
Explanation
The BrowsableAttribute controls whether a property appears in the Properties window at design time. Setting [Browsable(true)] makes it visible, while [Browsable(false)] hides it. DebuggerBrowsable is for debugger display, ComVisible relates to COM interoperability, and DisplayBrowsable is not a standard .NET attribute.
-
Registry Editor
-
Launch Conditions Editor
-
File System Editor
-
Required Components Editor
B
Correct answer
Explanation
The Launch Conditions Editor in Visual Studio setup projects lets you specify prerequisites that must be met before installation proceeds. You can add conditions to check for .NET Framework versions and display messages or redirect users to download the required framework. Registry Editor checks registry values, File System Editor manages file installation, and Required Components Editor isn't a standard deployment editor.