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
-
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 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 Paint() method
-
The Control_Build() method
-
The Render() method
-
The default constructor
C
Correct answer
Explanation
When creating custom ASP.NET controls, the Render() method (from System.Web.UI.Control) must be overridden to output the control's HTML markup. This method receives an HtmlTextWriter parameter used to write the control's visual representation. Paint() is for Windows Forms, Control_Build() and default constructors are not the required override methods for rendering.
-
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
C
Correct answer
Explanation
When a server control is added to a Web Form, Visual Studio automatically adds a default event handler for the control's default event (typically Click for buttons) to the form's code-behind class. This follows the WithEvents event handling pattern. The control itself is added as a field, but the question asks what is added beyond the control declaration - event handlers are auto-generated.
-
Validate
-
ValidateControl
-
ControlToBind
-
ControlToValidate
D
Correct answer
Explanation
Validator controls in ASP.NET require the ControlToValidate attribute to specify which input control they validate. This links the validator to its target control. Without this attribute, the validator cannot determine which control's value to check. Validate, ValidateControl, and ControlToBind are not valid attributes for validator controls.
-
System.Web.Form
-
System.Web.GUI.Page
-
System.Web.UI.Page
-
System.Web.UI.Form
C
Correct answer
Explanation
ASP.NET Web Forms inherit from System.Web.UI.Page by default, which provides the page framework, view state management, and event handling infrastructure. System.Web.Form and System.Web.UI.Form don't exist in the framework. System.Web.GUI.Page is also incorrect - the namespace is UI, not GUI.
-
Yes
-
No
-
May be
-
None of the above
B
Correct answer
Explanation
A single ASPX file can only use one .NET language for its server-side code blocks (within <% %> or tags). The code-behind file and the ASPX file must use the same language because they're compiled together into a single class. You cannot mix C# and VB.NET code in the same file, though different pages in the same application can use different languages.
-
Dashboard
-
Historiue
-
Synthese
-
None of the above
B
Correct answer
Explanation
The Historiue (History) page in the CIF interface displays an audit trail of all modifications made to customer records, allowing users to track changes over time.
-
WPF
-
Silverlight
-
WCF
-
ADO.NET Entity Framework
C
Correct answer
Explanation
WCF (Windows Communication Foundation) is a framework for building service-oriented applications in .NET 3.5. It enables secure and reliable communication across different platforms, making it suitable for web services and distributed applications. WPF is for UI applications, Silverlight for rich web applications (deprecated), and ADO.NET Entity Framework for data access.
-
Server Side Script
-
Client Side Script
-
Javascript function
-
Javascript : Grayout()