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 web technology
  1. True

  2. False

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

JSF validators are designed to validate individual component values, not multiple fields simultaneously. Cross-field validation requires workarounds like using phase listeners, custom validators that access other components via UIComponent.findComponent(), or Bean Validation (JSR 303/380) annotations with class-level constraints.

Multiple choice technology programming languages
  1. System.Web.UI.Page

  2. System.Windows.UI.Page

  3. System.Web.Page

  4. System.Windows.Page

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

In ASP.NET, all .aspx pages inherit from the Page class located in the System.Web.UI namespace. The full namespace path is System.Web.UI.Page, which provides the base functionality for web pages including lifecycle events, request/response handling, and control management.

Multiple choice technology programming languages
  1. System.Web.Ui.Forms.Security

  2. System.Web.Configuration

  3. System.Web.Services

  4. System.Web.Security

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

The System.Web.Security namespace provides classes for implementing ASP.NET security features, including forms authentication (FormsAuthentication class), membership providers, and role management. The other namespaces are for UI, configuration, and web services respectively.

Multiple choice technology web technology
  1. <%@ Page Debug="true" %>

  2. <%@ Application Debug="true" %>

  3. <%@ Page Trace="true" %>

  4. <%@ Application Trace="true" %>

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

To enable compilation of debugging symbols and present detailed debugging information in ASP.NET pages, the Debug="true" attribute must be set in the page directive (&lt;%@ Page Debug="true" %&gt;). Setting Trace to true enables execution tracing, but does not compile debug symbols.

Multiple choice technology web technology
  1. The Click event.

  2. The SelectionChanged event.

  3. The SelectedIndexChanged event.

  4. The ChangedSelection event.

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

The DropDownList control in ASP.NET uses the SelectedIndexChanged event to detect when a user selects a different item. This event fires after the selection changes and the page posts back. The Click event (option A) is for button controls, and the other options are invented names that don't exist in the DropDownList control's event model.

Multiple choice technology web technology
  1. Web.config

  2. Error.config

  3. Application.config

  4. global.asax

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

In ASP.NET web applications, configuration settings including custom error pages and error message settings are defined within the Web.config XML file under the `section. Other files likeError.configorApplication.config` are not standard configuration files for this purpose.

Multiple choice technology web technology
  1. TabControl

  2. Button

  3. RadioButton

  4. CheckBox

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

RadioButton controls are designed for mutually exclusive selection within a group - only one radio button can be selected at a time. CheckBox controls allow multiple selections. TabControl is for organizing content into tabbed pages, and Button is for triggering actions. For mutually exclusive choices, RadioButtons are the standard UI control.

Multiple choice technology platforms and products
  1. Text template is a mixture of text blocks and control logic that can generate a text file

  2. Text template can generate file that can be text of any kind, such as a Web page, or a resource file, or program source code in any language

  3. Text templates can be used at run time to produce part of the output of an application

  4. Text templates cannot be used for code generation

  5. Whenever you edit the template during development, the template is transformed to a class which is compiled as part of the application

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

The question asks which statement is NOT true. Text templates (T4) can generate text files of any kind (A is true), including web pages and source code (B is true), and can be used at runtime (C is true). However, D states 'Text templates cannot be used for code generation' - this is FALSE. Text templates ARE specifically designed for code generation, making D the correct answer to 'what is NOT true'.

Multiple choice technology platforms and products
  1. Provides “Call Hierarchy”, a design time feature which enables a developer to select an entity or method and see how the code calls inwards or outwards or passes the entity in and out of the code section

  2. New VS 2010 Editor is rebuilt using Silverlight

  3. Provides “Highlight References” feature, which provides a visual representation of the references to a selected entity in the code without needing to use the “Find In Files” feature

  4. Navigate To feature to search for a symbol or file in the source code

  5. The Generate From Usage feature that lets you use classes and members before you define them

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

The VS 2010 editor was NOT rebuilt using Silverlight - it was built using WPF (Windows Presentation Foundation). Silverlight is a browser plugin framework, not the foundation for VS 2010's editor. The other features listed (Call Hierarchy, Highlight References, Navigate To, Generate From Usage) are all real VS 2010 features, making B the statement that is NOT correct.

Multiple choice technology platforms and products
  1. Visual Studio 2010 includes new project templates for creating solutions that target Microsoft Office 2010

  2. You can create solutions for 32-bit and 64-bit versions of Microsoft Office 2010

  3. The code that you write in Office projects is the always same when you target the .NET Framework 3.5 or the .NET Framework 4

  4. You can combine multiple document-level and application-level office solutions and deploy them as a single package

  5. When you target the .NET Framework 4, it is now possible to deploy office solutions without the Office primary interop assemblies

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

When targeting .NET Framework 4 in Office development, you can use new features like embedding interop types (No-PIA), which changes the code compared to .NET Framework 3.5. So the code is NOT 'always the same' - C is false and therefore the correct answer to 'what is NOT correct'. The other statements about Office 2010 templates, 32/64-bit support, combining solutions, and deploying without PIAs in .NET 4 are all true.

Multiple choice technology platforms and products
  1. Visual Studio 2010 will support UML 2.1. All 13 diagrams of UML will be supported in Visual Studio 2010

  2. You can generate Use Case, Sequence, Class, Component, and Activity Diagrams

  3. The new Architecture Explorer provides architects and developers a mechanism for visualizing code assets in a number of ways including graphs, stacked diagrams and dependency matrices

  4. Layer diagram feature enables to define the high level architectural layers of the system in visual representation and allows to check these constraints automatically during implementation phase

  5. Microsoft Test Runner enables to take a snapshot of the system data, including OS version and Service Pack and other pertinent system data and also capture images of the application under test, or even partial or full screen video of the test being run.

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

VS 2010 did NOT support all 13 UML diagrams - it supported a subset (use case, sequence, class, component, activity, and a few others). The statement claiming 'All 13 diagrams will be supported' is false, making A the correct answer to 'what is NOT correct'. The other features listed (generating specific diagrams, Architecture Explorer, Layer diagrams, Test Runner) were all real VS 2010 ALM features.

Multiple choice technology platforms and products
  1. Search in the Breakpoints window, label breakpoints, import and export breakpoints

  2. There is no support for debugging mixed-mode native and managed code on 64-bit operating systems

  3. You can use the Parallel Stacks and Parallel Tasks debugger tool windows to visualize and debug parallel code that is written in C++, C#, or VB

  4. A newly redesigned Threads window provides filtering, call-stack searching and expansion, and grouping

  5. WPF debugging enhancements include enhanced tracing to view events in your WPF application and WPF Tree Visualizer to inspect and search the WPF tree

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

VS 2010 DID support mixed-mode debugging (native + managed) on 64-bit operating systems. This was a significant improvement over VS 2008. Therefore statement B claiming 'there is NO support' is FALSE, making B the correct answer to 'what is NOT true'. The other features listed (breakpoint search/label/import/export, Parallel Stacks/Tasks windows, redesigned Threads window, WPF debugging enhancements) were all real VS 2010 debugger improvements.

Multiple choice technology platforms and products
  1. You can develop SharePoint solutions with SharePoint project type templates and SharePoint project item templates

  2. Browse SharePoint sites by using the Server Explorer

  3. Debug SharePoint applications by pressing F5

  4. The SharePoint development tools in Visual Studio 2010 are same as the Visual Studio extensions for Windows SharePoint Services available for Visual Studio 2005/2008

  5. Aggregate and integrate back-end data by using Business Data Connectivity (BDC) models

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

Visual Studio 2010 introduced deeply integrated SharePoint development tools that were significantly enhanced compared to the separate Visual Studio Extensions for Windows SharePoint Services (VSeWSS) used with VS 2005/2008. The VS 2010 tools are not the same - they offer better integration, more templates, and improved debugging experiences. Options A, B, C, and E all describe actual VS 2010 SharePoint features.