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 programming languages
  1. The Class window

  2. The Project window

  3. The Properties window

  4. The Blank Form window

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

This question refers to the classic Visual Basic 6 IDE startup interface. On startup, the Project, Properties, and Blank Form windows are displayed by default, whereas the Class window (Class Browser) is not visible unless explicitly opened.

Multiple choice technology programming languages
  1. IsMdiChild on Forms A,B and C; and IsMdiParent on FormD.

  2. MdiParent on Forms A,B and C; and IsMdiContainer on FormD.

  3. IsMdiChild on Forms A,B and C; and IsMdiContainer on FormD.

  4. MdiParent on Forms A,B and C; and IsMdiParent on FormD.

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

In Windows Forms MDI (Multiple Document Interface) applications, child forms are assigned to the MdiParent property of the container form. The parent form (FormD) must have IsMdiContainer set to true. Option B correctly describes setting the MdiParent property on child forms and IsMdiContainer on the parent. Options A and C incorrectly use IsMdiChild which isn't a standard property, and option D incorrectly uses IsMdiParent instead of IsMdiContainer.

Multiple choice technology programming languages
  1. DebuggerBrowsable

  2. ComVisible

  3. Browsable

  4. DisplayBrowsable

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

The BrowsableAttribute controls whether a property appears in the Properties window at design time. Setting [Browsable(true)] makes it visible, while [Browsable(false)] hides it. DebuggerBrowsable is for debugger display, ComVisible relates to COM interoperability, and DisplayBrowsable is not a standard .NET attribute.

Multiple choice technology programming languages
  1. Registry Editor

  2. Launch Conditions Editor

  3. File System Editor

  4. Required Components Editor

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

The Launch Conditions Editor in Visual Studio setup projects lets you specify prerequisites that must be met before installation proceeds. You can add conditions to check for .NET Framework versions and display messages or redirect users to download the required framework. Registry Editor checks registry values, File System Editor manages file installation, and Required Components Editor isn't a standard deployment editor.

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.