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
-
With the JSF configuration file
-
With the styleClass property
-
With the cssClass property
-
With the class property
B
Correct answer
Explanation
JSF components integrate with CSS through the styleClass property (note the camelCase naming convention). This property renders as the HTML 'class' attribute, allowing CSS classes to be applied to JSF components. The standard property name is 'styleClass', not 'cssClass' or 'class'. The JSF configuration file is not used for CSS integration.
-
PDF Box
-
jPod
-
iText
-
PDF Renderer
C
Correct answer
Explanation
The QuoteIt project uses iText for PDF generation and illustration. iText is a widely-used Java library for creating and manipulating PDF documents. PDFBox, jPod, and PDF Renderer are alternative PDF libraries but are not the ones used in this project. This is project-specific implementation knowledge.
-
validate
-
validation
-
both
-
No such method to validate the Form
A
Correct answer
Explanation
In the Struts framework (a J2EE web framework), the ActionForm class has a validate() method that is called automatically during the request processing lifecycle. This method is used to perform form validation and returns an ActionErrors collection containing any validation errors. The method name is 'validate', not 'validation', and it is the standard mechanism for form validation in Struts.
-
Intercepting Filter
-
Front Controller
-
Data Acces Object
-
Business Delegate
B
Correct answer
Explanation
The Front Controller pattern centralizes request handling and separates view content from view navigation. A single controller receives all requests, delegates to appropriate handlers, and manages view selection logic. This avoids duplicating navigation code across multiple views. Intercepting Filter handles pre/post processing, Data Access Object abstracts persistence, and Business Delegate reduces coupling between presentation and business tiers.
-
.Net Compact Framework
-
Support for IP6
-
Windows Card Space
-
Generics
D
Correct answer
Explanation
Generics were introduced in .NET Framework 2.0, enabling type-safe collections and methods. .NET Compact Framework exists in 1.0 and 2.0 (not new to 2.0). IPv6 support was enhanced in 2.0 but existed earlier. Windows CardSpace (formerly InfoCard) was introduced in .NET 3.0. Generics is the correct answer as a major 2.0 feature.
-
.NET Framework 1.1
-
.NET Framework 2.0
-
.NET Framework 3.0
-
.NET Framework 3.5
C
Correct answer
Explanation
Windows Presentation Foundation (WPF) was introduced with .NET Framework 3.0 in 2006 as part of WinFX technologies, alongside WCF and WF. .NET 1.1 and 2.0 used WinForms. .NET 3.5 added features but didn't introduce WPF. Version 3.0 is correct.
-
PDF Box
-
jPod
-
iText
-
PDF Renderer
C
Correct answer
Explanation
iText is the J2EE component used for PDF generation/illustration in the QuoteIt project. iText is a popular Java library for creating and manipulating PDF documents programmatically.
-
validate
-
validation
-
both
-
No such method to validate the Form
A
Correct answer
Explanation
The validate() method in ActionForm (Struts framework) is used for form validation. This method is called automatically when the form is submitted and returns ActionErrors containing validation failure messages.
-
Validate
-
ValidateControl
-
ControlToBind
-
ControlToValidate
D
Correct answer
Explanation
For validation controls to function, they must know which input control to validate. The ControlToValidate property specifies this target control ID. Option D is correct. Options A, B, and C are not valid ASP.NET validator properties - the validator needs to know what it's validating, which is exactly what ControlToValidate specifies.
-
System.Web.Form
-
System.Web.GUI.Page
-
System.Web.UI.Page
-
System.Web.UI.Form
C
Correct answer
Explanation
By default, ASP.NET Web Form classes inherit from System.Web.UI.Page, which provides the base functionality for all ASP.NET pages. Option C is correct. Option A doesn't exist, Option B is not a valid namespace/class combination, and Option D doesn't exist - the correct class is Page, not Form.
-
The event registration
-
A protected class member for the control
-
A default event handler for the click event
-
A default class that inherits from the control’s base class
-
The AutoEventWireup attribute is set to False
-
The AutomaticPostBack attribute is set to False
-
The codebehind module is not properly compiled
-
The ListBox must be defined WithEvents
B
Correct answer
Explanation
For ListBox SelectedIndexChanged to fire and execute its event handler, AutoPostBack must be set to True. When True, the control automatically posts back to the server on selection change, triggering the event. If False (the default), the selection changes client-side but no postback occurs, so the server-side event handler never runs. AutoEventWireup relates to event binding method, and WithEvents is a VB.NET concept not used here. The answer identifies the correct property, though it misspells it as 'AutomaticPostBack' instead of 'AutoPostBack'.
-
The Paint() method
-
The Control_Build() method
-
The Render() method
-
The default constructor
C
Correct answer
Explanation
In ASP.NET, custom controls override the Render method to write HTML markup directly to the output stream. The Paint method is used in Windows Forms controls, not ASP.NET custom web controls, and Control_Build is not a standard lifecycle method.
-
Yes
-
No
-
May be
-
None of the above
B
Correct answer
Explanation
ASP.NET does NOT allow mixing different programming languages (like C# and VB.NET) within a single ASPX file. The entire page, including inline code and server-side script blocks, must use the same language. The language is specified at the page level (e.g., <%@ Page Language="C#">). You can use different languages across different pages in the same application, but not within one file. The answer 'No' is correct.
-
The AutoEventWireup attribute is set to False
-
The AutomaticPostBack attribute is set to False
-
The codebehind module is not properly compiled
-
The ListBox must be defined WithEvents
B
Correct answer
Explanation
In ASP.NET Web Forms, the AutoPostBack property controls whether a control's change event causes an immediate postback to the server. When AutoPostBack is False (the default), the SelectedIndexChanged event only fires during the next form submission, not immediately when the selection changes. Setting AutoPostBack to True enables automatic postback on selection change.