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

Multiple choice technology programming languages
  1. HandleEvent

  2. EventHandler

  3. Pick

  4. Park

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

The Pick activity in WF 4.0 is specifically designed for event-driven scenarios. Each branch in a Pick contains a Trigger activity (like ReceiveEvent) that waits for a specific event, and an Action activity that executes when that event occurs. This makes Pick the primary event-handling construct in WF 4.0.

Multiple choice technology web technology
  1. FaultContract

  2. OperationContract

  3. ServiceContract

  4. BehaviourContract

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

WCF defines ServiceContract, OperationContract, DataContract, MessageContract, and FaultContract as standard contract types. There is no BehaviourContract in WCF - behaviors are specified using attributes like [ServiceBehavior] and [OperationBehavior], which are not contracts.

Multiple choice technology web technology
  1. Dispatched when a component has been created in a rough state, and no children have been created.

  2. Dispatched when the component has been laid out and the component is visible (if appropriate).

  3. Dispatched when a component and all its children have been created, but before the component size has been determined

  4. Dispatched when a component has been updated

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

In the Flex component lifecycle, the initialize event is dispatched after the component and all its children have been created but before the component's size has been determined. Option C accurately describes this stage - creation is complete, but layout calculation has not occurred yet. The preinitialize event fires earlier, and creationComplete fires after layout.

Multiple choice technology web technology
  1. DataGrid

  2. AdvancedDataGrid

  3. SummaryRow

  4. GroupedTable

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

AdvancedDataGrid extends DataGrid to provide built-in support for grouped and hierarchical data display. While regular DataGrid shows flat data, AdvancedDataGrid can group data by fields and display it in an expandable tree format within the tabular structure. SummaryRow is used within AdvancedDataGrid but is not a standalone grouping control.