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

Multiple choice technology programming languages
  1. WPF

  2. Windows

  3. Silverlight

  4. workflow

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

Activity designers in WF4.0 are built using Windows Presentation Foundation (WPF). WPF provides the visual designer surface, the property grid, and all the UI components that make up the workflow designer experience. Silverlight and Windows are not used for WF activity designers.

Multiple choice technology programming languages
  1. Add the Designer attribute to the Activity class

  2. Assign ActivityDesigner name in the Activity Constructor

  3. By overriding cacheMetadata

  4. None of the above

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

To associate a custom designer with an activity in WF4.0, you apply the Designer attribute to the activity class. This attribute specifies which designer class should be used to visually represent the activity. The attribute typically points to a class derived from ActivityDesigner. The other options are not valid mechanisms for designer association.

Multiple choice technology programming languages
  1. Terminate the activity

  2. An event in WF4.0

  3. A mechanism that allows activities in the bookmark's position hangs, waiting for restoration

  4. Terminate the workflow

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

Bookmarks in WF4.0 are a mechanism that allows an activity to pause its execution at a specific point and wait for an external event to resume it. The activity 'hangs' (waits) at the bookmark position until ResumeBookmark is called with matching bookmark name. Bookmarks enable long-running workflows that can wait for user input or external events without blocking threads.

Multiple choice technology programming languages
  1. StateInitialization

  2. WriteLine

  3. Assign

  4. Flowchart

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

StateInitialization is a WF3.0 activity that was NOT carried forward to WF4.0. In WF4.0, state machine workflows were completely absent initially and when reintroduced in WF4.5, they use different activity types (State, Assign, etc.). The other options (WriteLine, Assign, Flowchart) are all valid built-in WF4.0 activities.

Multiple choice technology programming languages
  1. StateMachine

  2. Sequential

  3. Flowchart

  4. Statemachine and sequential

  5. Sequential and Flowchart

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

In WF 4.0, the available control flow constructs are FlowChart and Sequence activities. StateMachine was not part of the initial WF 4.0 release - it was reintroduced later in WF 4.5. The other options incorrectly include StateMachine or don't list both available types.