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

Multiple choice technology programming languages
  1. Validate

  2. ValidateControl

  3. ControlToBind

  4. ControlToValidate

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. System.Web.Form

  2. System.Web.GUI.Page

  3. System.Web.UI.Page

  4. System.Web.UI.Form

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. The Paint() method

  2. The Control_Build() method

  3. The Render() method

  4. The default constructor

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Yes

  2. No

  3. May be

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. The Paint() method

  2. The Control_Build() method

  3. The Render() method

  4. The default constructor

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. The event registration

  2. A protected class member for the control

  3. A default event handler for the click event

  4. A default class that inherits from the control’s base class

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Validate

  2. ValidateControl

  3. ControlToBind

  4. ControlToValidate

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. System.Web.Form

  2. System.Web.GUI.Page

  3. System.Web.UI.Page

  4. System.Web.UI.Form

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Yes

  2. No

  3. May be

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. WPF

  2. Silverlight

  3. WCF

  4. ADO.NET Entity Framework

Reveal answer Fill a bubble to check yourself
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.