πŸ§ͺ WPF MCQ Quiz Hub

WPF Mcq Question Set 1

Choose a topic to test your knowledge and improve your WPF skills

The TextBox control shows a default context menu with options to Cut, Copy and Paste. Can we override this context menu by defining our own in the TextBox control?





βœ… Correct Answer: 1

Can we store the ContextMenu in Resource so that we can reuse it for various control on a form?





βœ… Correct Answer: 1

In WPF Padding controls how much extra space gets placed around the inside edges of the element.





βœ… Correct Answer: 1

Visibility (defined on UIElement) might sound like a strange property to talk about in the context of layout, but it is indeed relevant. An element’s Visibility property actually isn’t Boolean, but rather a three-state System.Windows.Visibility enumeration. One of Its value is β€œCollapsed” What is the meaning of this value





βœ… Correct Answer: 2

BAML can’t be decompiled back into XAML





βœ… Correct Answer: 2

the .NET Framework 4.0 introduces a handful of new features for the XAML language. This second generation of the XAML language is referred to as





βœ… Correct Answer: 3

FrameworkElement is derived from





βœ… Correct Answer: 1

WPF separates the appearance of an user interface from its behavior. The appearance is generally specified in the_______.





βœ… Correct Answer: 2

Which of the following layout is not available in WPF?





βœ… Correct Answer: 4

Static and data binding markup extensions are same.True or false?





βœ… Correct Answer: 2

WPF is a replacement to DirectX.True or False?





βœ… Correct Answer: 2

which is dependency property in this code:





βœ… Correct Answer: 2

Transformations are available in which namespace?





βœ… Correct Answer: 3

Which tool(s)is/are used to develop WPF applications?





βœ… Correct Answer: 3

WrapPanel Class comes under_______ assembly.





βœ… Correct Answer: 2

Development is more efficient because designers can implement an application’s appearance simultaneously with developers who are implementing the application’s behavior.True or false?





βœ… Correct Answer: 1

A key element of the Trustworthy Computing initiative in WPF is_______.





βœ… Correct Answer: 2

Which of the following is routing strategy of Routed events?





βœ… Correct Answer: 4

Child controls are virtualized and arranged on a single line that is either horizontally or vertically oriented. Is true about?





βœ… Correct Answer: 2

Child controls are positioned in left-to-right order and wrapped to the next line when there are more controls on the current line than space allows.Is true about?





βœ… Correct Answer: 1

.In DockPanel Child controls are aligned to the edges of the panel.True or False?>





βœ… Correct Answer: 1

Which of the following is not WPF model(used to create a new control/custom control)?





βœ… Correct Answer: 4

.One of the primary architectural philosophies used in building WPF was a preference for properties over methods or events.





βœ… Correct Answer: 1

.Which of the following class is used to implement Trees in WPF?





βœ… Correct Answer: 4

____class provides the GetChildren, GetParent, and FindLogicalNode methods for logical tree traversal.





βœ… Correct Answer: 1

___ is a DependencyProperty instance, which is obtained as a return value when registering a dependency property, and then stored as a static member of a class.





βœ… Correct Answer: 2

Windows Presentation Foundation (WPF) introduces _______ events that can invoke handlers that exist on various listeners in the element tree of an application.





βœ… Correct Answer: 1

The________attribute works for FrameworkElement and FrameworkContentElement used for consistency.





βœ… Correct Answer: 2

All XAML resources should have an________attribute in WPF.





βœ… Correct Answer: 4

x:Null specifies null as a value for a property and can be used either for attributes or property element values.True or False?





βœ… Correct Answer: 1

_____provides a value for a property by deferring that value to be a run-time reference to a resource.





βœ… Correct Answer: 2

_______provides a value for a property by substituting the value of an already defined resource.





βœ… Correct Answer: 1

____provides source information for a Binding that can navigate several possible relationships in the run-time object tree.





βœ… Correct Answer: 3

____provides a data bound value for a property, using the data context that applies to the parent object at run time.





βœ… Correct Answer: 4

What is full form of WPF?





βœ… Correct Answer: 1

What is XAML?





βœ… Correct Answer: 2

Does that mean WPF has replaced DirectX?





βœ… Correct Answer: 2

Is XAML meant only for WPF ?





βœ… Correct Answer: 2

What is the stand for is XBAP?





βœ… Correct Answer: 2

Which of the following have two states of Freezable object?





βœ… Correct Answer: 2

Which layout control would be the best choice for a user interface that requires evenly spaced controls laid out?





βœ… Correct Answer: 3

Events Supported by WPF is are?





βœ… Correct Answer: 4

WPF transformations can be used for





βœ… Correct Answer: 4

Which object can be used share the variable across pages in WPF?





βœ… Correct Answer: 1

Which of the following is true regarding XAML?





βœ… Correct Answer: 1

How you can set a working mnemonic key for a label?





βœ… Correct Answer: 1

In WPF which language is used to express user interface?





βœ… Correct Answer: 2

WPF stands for - Windows Presentation Foundation.





βœ… Correct Answer: 1

_____ layout isn't available in WPF.





βœ… Correct Answer: 2

WPF is a replacement to





βœ… Correct Answer: 2