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. Create a Setup Application

  2. Use XCOPY to copy the files

  3. Create a CAB project

  4. Use ClickOnce.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Installing assemblies into the Global Assembly Cache (GAC) requires administrative privileges and Windows Installer technology. A Setup project builds an MSI installer capable of performing this registration. ClickOnce applications run in a security sandbox and cannot write to the GAC, while XCOPY deployment lacks registration capabilities.

Multiple choice technology programming languages
  1. System.Windows.Forms.UserControl

  2. System.Windows.Forms.Control

  3. System.Windows.Forms.WindowsControl

  4. System.Windows.Forms.Component

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

UserControl is designed for creating composite controls by combining existing Windows controls. It provides a container that can host multiple child controls and be reused across applications, while Control is the base class for all controls but doesn't provide composition features.

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

Visual Studio adds a default event handler for the Click event when adding server controls to a Web Form. Event registration and control members are added manually, while a default class inheritance doesn't happen.

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

All ASP.NET Web Forms inherit from System.Web.UI.Page by default. This base class provides essential functionality for page lifecycle events, view state management, and server controls. Options A and D are incorrect because System.Web.Form and System.Web.UI.Form don't exist in the .NET framework class hierarchy.

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

Custom controls must override the Render() method to generate their HTML output. This method receives a HtmlTextWriter object that you use to write the control's markup. Options A and B don't exist in the ASP.NET control lifecycle, and overriding constructors is optional, not required for basic control functionality.

Multiple choice technology programming languages
  1. DHTML pages

  2. ADO to ADO via Interop

  3. ActiveX documents

  4. OLE controls

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

When migrating from VB 6 to VB.NET, DHTML pages, ActiveX documents, and OLE controls all require significant re-architecture because they rely on COM-based technologies that are not directly supported in .NET. However, ADO (ActiveX Data Objects) can be used in VB.NET through COM Interop, allowing gradual migration without immediate re-architecture. Interop acts as a bridge between COM and .NET.

Multiple choice technology programming languages
  1. No, a toolbar can only display images

  2. No, a toolbar can only display text

  3. Yes, a toolbar can display text, images, or both.

  4. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Toolbars in Windows Forms and other UI frameworks are flexible and can display text, images, or both simultaneously. This allows developers to create toolbars that show button labels (text), icons (images), or a combination of both for better user experience and accessibility.

Multiple choice technology programming languages
  1. Using

  2. Package

  3. Imports

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In VB.NET, the Imports keyword is used to reference namespaces in your code, similar to how 'using' is used in C#. This allows you to use types from those namespaces without fully qualifying them. The Package keyword doesn't exist in VB.NET, and Using is for resource management (like IDisposable objects).

Multiple choice technology programming languages
  1. Only Toolbar control

  2. ImageList and Toolbar control

  3. Both 1 and 2

  4. All the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

To create a toolbar, two controls are needed: an ImageList control and a Toolbar control.

Option A is incorrect because only a Toolbar control is not sufficient to create a toolbar.

Option B is correct because it accurately identifies the two controls needed to create a toolbar. An ImageList control is used to store the images that will be displayed on the toolbar buttons. A Toolbar control is used to create the actual toolbar, and it references the images in the ImageList control for the button icons.

Option C is incorrect because it is not a valid option.

Option D is incorrect because it includes option A which is incorrect.

Therefore, the correct answer is: B. ImageList and Toolbar control.

Multiple choice technology web technology
  1. <jsp:include ….>

  2. <%include …%>

  3. All of the above

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The Composite View pattern uses JSP include mechanisms (both the standard action and the <%@ include %> directive) to compose a page from multiple reusable sub-components. Both tags are valid for implementing this pattern, making 'All of the above' correct.

Multiple choice technology programming languages
  1. <init-property name="service" value="selectRecord"/>

  2. <set-property property="service" value="selectRecord"/>

  3. <put-field key="service" content="selectRecord"/>

  4. None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

When creating custom ActionMapping subclasses with additional properties in Struts, you initialize those properties using the tag within the configuration. The syntax is . Option A uses wrong tag name, C uses wrong element, and D is incorrect.

Multiple choice technology programming languages
  1. Create separate configuration files for each locale

  2. Specify an locale for a definition

  3. Either A or B

  4. None

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Apache Tiles, localization is typically handled by creating separate configuration files for each locale (e.g., tiles-en.xml, tiles-fr.xml). The framework selects the appropriate file based on the user's locale preference. Specifying a locale for a single definition is not the standard approach.