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

Multiple choice technology web technology
  1. With the JSF configuration file

  2. With the styleClass property

  3. With the cssClass property

  4. With the class property

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

Multiple choice technology web technology
  1. PDF Box

  2. jPod

  3. iText

  4. PDF Renderer

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

Multiple choice technology web technology
  1. validate

  2. validation

  3. both

  4. No such method to validate the Form

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

Multiple choice technology web technology
  1. Intercepting Filter

  2. Front Controller

  3. Data Acces Object

  4. Business Delegate

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

Multiple choice technology programming languages
  1. .Net Compact Framework

  2. Support for IP6

  3. Windows Card Space

  4. Generics

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

Multiple choice technology programming languages
  1. .NET Framework 1.1

  2. .NET Framework 2.0

  3. .NET Framework 3.0

  4. .NET Framework 3.5

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

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 AutoEventWireup attribute is set to False

  2. The AutomaticPostBack attribute is set to False

  3. The codebehind module is not properly compiled

  4. The ListBox must be defined WithEvents

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

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 AutoEventWireup attribute is set to False

  2. The AutomaticPostBack attribute is set to False

  3. The codebehind module is not properly compiled

  4. The ListBox must be defined WithEvents

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