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. Panel

  2. Frame

  3. Class

  4. JVM

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

In AWT (Abstract Window Toolkit), only a Frame can have a MenuBar. The Frame class has a setMenuBar() method that allows you to attach a MenuBar. Panel is a generic container and cannot have a MenuBar directly attached to it. Class and JVM are not GUI containers at all.

Multiple choice technology
  1. Mapplet represents set of transformations

  2. Mapplets are reusable

  3. Server expands Mapplet at runtime

  4. All of the above

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

Mapplets in Informatica are reusable sets of transformations that can be used across multiple mappings. They represent a collection of transformations and can be reused. When a mapping containing a mapplet executes, the Informatica Server expands the mapplet inline at runtime.

Multiple choice technology testing
  1. Test View

  2. Test List Editor

  3. Test Impact View

  4. None of the above

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

Test Impact View was introduced as a new feature in VSTS 2010 to help developers understand which tests are affected by code changes. It analyzes code coverage and dependencies to recommend which tests should be run after a code modification. Test View and Test List Editor existed in earlier versions, making Test Impact View the standout new feature in the 2010 release.

Multiple choice technology testing
  1. By Add Reference

  2. By Add Service Reference

  3. By Add service as existing item

  4. By add service as existing project

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

To use a WCF service in a test project, you use the "Add Service Reference" option which generates proxy classes and configuration for consuming the service. Add Reference is for .NET assemblies, Add Service as Existing Item adds files to the project, and Add Service as Existing Project adds entire projects - only Add Service Reference properly sets up WCF service connectivity with the necessary proxy generation and configuration.

Multiple choice technology testing
  1. Service.cs & App.config

  2. Service.cs & output.config

  3. Services.cs & App.config

  4. Services.cs & output.config

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

svcutil.exe generates a service proxy class file (Service.cs) and an output configuration file (output.config) containing endpoint settings when working with WCF services. The other options either use incorrect filenames (Services.cs) or reference the wrong configuration file (App.config is the application's existing config, not the generated one).

Multiple choice technology
  1. Open the Visual Basic Upgrade Wizard, get a cup of coffee and watch it run.

  2. Assess the VB 6 application; find out what controls it uses, what projects are in there and so on.

  3. Cancel all social plans for the next couple months and start rewriting the app in .NET.

  4. Schedule meetings with end users to see what features they want to add to the app.

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

Migration planning must start with assessment - understanding the application's architecture, dependencies, controls, and complexity. Jumping straight into tools (Option A) or rewriting (Option C) without assessment risks missing critical dependencies and architectural mismatches. Gathering new requirements (Option D) is premature when the existing requirements aren't understood.

Multiple choice technology
  1. DHTML pages

  2. ActiveX documents

  3. OLE controls

  4. ADO to ADO via Interop

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

ADO can be used in VB.NET via COM Interop without re-architecting - the .NET framework provides COM interopability to call legacy components. DHTML pages, ActiveX documents, and OLE controls are deeply tied to VB6's runtime model and have no direct .NET equivalents - they require architectural redesign or replacement.

Multiple choice technology
  1. You want to take advantage of ASP.NET features such as its caching abilities.

  2. The application relies heavily on third-party controls or dynamic link libraries (DLLs).

  3. The application's original developers were new to Visual Basic and/or used some "out of the box" development approaches.

  4. Your company's business processes do not change all that often.

  5. The application uses COM+ components in a high-traffic Web environment.

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

Options A, C, and E are compelling reasons to migrate - they represent technical debt (A), architectural risk (C), and scalability limitations (E). Option B (third-party dependencies) is actually a reason to AVOID migration unless you can replace those controls. Option D (stable business processes) means the application works - if nothing is broken and requirements aren't changing, migration has low ROI.

Multiple choice technology
  1. Refactoring

  2. Debugger ToolTips

  3. Code snippets

  4. Snap lines for graphical form-building For the answer

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

Visual Basic 2005 included many new features: Debugger ToolTips, code snippets, and snap lines for visual design were all out-of-the-box. Refactoring (extract method, rename, encapsulate field, etc.) was NOT included in VB 2005 - it was added in later versions (available in C# earlier).

Multiple choice technology web technology
  1. Init

  2. PreRender

  3. InitComplete

  4. Page_unload

  5. LoadComplete

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

The Page_Unload event is the final stage in the ASP.NET Web Forms page lifecycle, occurring after the page has been rendered to the client and just before the page object is discarded from memory. PreRender comes before rendering, LoadComplete happens after Load, and InitComplete occurs after initialization - all well before the final cleanup.

Multiple choice technology web technology
  1. System.Web.Control

  2. System.Web.RootBuilder

  3. System.Web.UserControl

  4. System.Web.UI.Page

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

Web Pages in the .NET Framework belong to the System.Web.UI.Page class, which is the base class for all ASP.NET page objects. System.Web.Control is for individual controls, System.Web.UserControl is for user controls, and RootBuilder is an internal parser class, not the page class hierarchy.

Multiple choice technology operating systems
  1. True

  2. False

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

XAML (Extensible Application Markup Language) is case-sensitive, like XML upon which it is based. Element names, property names, and attribute values must match the exact casing defined in the XAML schema and CLR types they reference.

Multiple choice technology operating systems
  1. StackPanel and Content only

  2. Button only

  3. Content only

  4. StackPanel and Button

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

In the XAML code, there are two objects: the StackPanel container and the Button control it contains. Content is a property of the Button (set via attribute syntax), not a separate object. The correct answer identifies the actual XAML elements/objects instantiated.