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. Supports Test Driven Development

  2. Separation of the Concern

  3. Support REST URLs

  4. Renders view state

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

MVC Framework explicitly does NOT use view state (that's a Web Forms feature), which is one of its advantages for cleaner markup and better performance. MVC does support TDD, provides separation of concerns, and supports RESTful URLs - these are all benefits/usages, not things it doesn't do.

Multiple choice technology web technology
  1. More control over view state

  2. More control over behaviour of the application

  3. More control over Client Ids

  4. All of the above

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

ASP.NET MVC 2.0 provides greater control over application behavior through improved separation of concerns, enhanced routing, and better abstraction over WebForms. While it gives some control over client IDs and reduces view state issues, its primary benefit is behavioral control.

Multiple choice technology web technology
  1. Master Page &User Controls

  2. Caching

  3. Authentication and Authorization

  4. All of the above

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

ASP.NET MVC 2.0 runs on top of the ASP.NET runtime, meaning it fully supports existing ASP.NET features like Master Pages, User Controls, Caching, and built-in Authentication/Authorization mechanisms.

Multiple choice technology web technology
  1. routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } );

  2. routes.MapRoute("Default", "Area/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } );

  3. Both a and b

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology web technology
  1. Page Events

  2. Html Helper

  3. Both a and b

  4. None of the above

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

In ASP.NET MVC 2.0, Html Helper methods are the primary mechanism for rendering views. These helper methods generate HTML markup programmatically and are the standard way views are rendered. Page Events are a WebForms concept, not MVC.

Multiple choice technology web technology
  1. .aspx

  2. .ascx

  3. .html

  4. All of the above

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

In ASP.NET MVC, views use the .aspx extension for standard views and .ascx extension for partial views or user controls. The .html extension is not a standard ASP.NET MVC view extension - HTML would be the output format, not the file extension.

Multiple choice technology web technology
  1. IAuthorizationFilter

  2. IActionFilter

  3. IResultFilter

  4. IExceptionFilter

  5. All of the above

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

ASP.NET MVC 2.0 provides four main action filter interfaces: IAuthorizationFilter (for authorization), IActionFilter (for pre/post action execution), IResultFilter (for pre/post result execution), and IExceptionFilter (for exception handling). All of these interfaces are part of the action filtering framework.

Multiple choice technology web technology
  1. Visual Studio 2008

  2. Visual Studio 2008 SP1

  3. Visual Studio 2010

  4. All of the above

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

ASP.NET MVC 2.0 works with Visual Studio 2008 SP1 (Service Pack 1 is required for MVC support) and Visual Studio 2010 (which includes MVC 2 out of the box). Standard Visual Studio 2008 without SP1 does not support ASP.NET MVC 2.0.

Multiple choice technology web technology
Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

ASP.NET MVC uses clean URLs without file extensions. Option A shows the standard controller/action pattern. Option C shows the pattern with an input parameter as part of the URL path. Options B and D incorrectly add .aspx extension or use querystring syntax for parameters, which are not standard MVC routing patterns.

Multiple choice technology web technology
  1. Defined as public method

  2. Should not be static method

  3. Can have ref and out parameters

  4. Can have generic types

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

Controller action methods must be public (to be accessible via HTTP), should not be static (instance methods are required for context and dependency injection), and can have ref and out parameters. They cannot use generic type parameters directly as part of the method signature in the action invocation context.

Multiple choice technology platforms and products
  1. Model Browser

  2. Model Designer

  3. Solution Designer

  4. Solution Browser

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

The Model Browser is the Visual Studio tool window integrated with the ADO.NET Entity Data Model Designer. It provides a hierarchical view of the entity types, associations, and properties defined in the .edmx file. The Model Browser allows developers to navigate and inspect the conceptual model structure, while the Model Designer surface provides the visual layout.

Multiple choice technology programming languages
  1. using variable assigned to the OutArgument

  2. Using InArgument assigned to the OutArgument

  3. It is not possible

  4. None of the above

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

In the WF4.0 designer, OutArguments are typically accessed by assigning them to variables. The designer binds these arguments to variables that can then be used elsewhere in the workflow. This is the standard pattern for extracting output from activities and workflows. InArguments are for input, not output access.

Multiple choice technology programming languages
  1. workflowApplication.ResumeBookmark(bookmarkName, null)

  2. workflowApplication.ResumeBookmark(bookmarkName)

  3. workflowInvoker.ResumeBookmark(bookmarkName, null)

  4. workflowInvoker.ResumeBookmark(bookmarkName)

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

The ResumeBookmark method requires two parameters: the bookmark name and the value to pass to the resumption point. WorkflowApplication (not WorkflowInvoker) is the correct host type for operations involving bookmarks. The method signature is ResumeBookmark(bookmarkName, value), where value can be null if no data needs passing.