header1.html

Showing posts with label WPF. Show all posts
Showing posts with label WPF. Show all posts

Friday, 3 May 2013

WPF-XAML Quiz-3


WPF-XAML Quiz-3
1.Comments in XAML are marked with the ______ tag.
<!-- -->
<!-- --!>
<%-- --%>
None of above


2.XAML files can be created and edited with visual design tools such as Microsoft Expression Blend, ________, and the hostable Windows Workflow Foundation visual designer.
Microsoft SQL Server
ASP.NET
SQL Server Compact
Microsoft Visual Studio


3.The x:Class attribute references the code-behind for this XAML window.True or False?
True
False


4.The________attribute works for FrameworkElement and FrameworkContentElement used for consistency.
Class
Name
Key
Value


5.All XAML resources should have an________attribute in WPF.
x:Name
x:Class
x:Value
x:Key


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


7.__________provides a value for a property by deferring that value to be a run-time reference to a resource.
StaticResource
DynamicResource
RelativeSource
Binding


8.___________provides a value for a property by substituting the value of an already defined resource.
StaticResource
DynamicResource
RelativeSource
Binding


9.____________provides source information for a Binding that can navigate several possible relationships in the run-time object tree.
StaticResource
DynamicResource
RelativeSource
Binding


10._________provides a data bound value for a property, using the data context that applies to the parent object at run time.
StaticResource
DynamicResource
RelativeSource
Binding

WPF Quiz-2


WPF Quiz-2
1.Which of the following is routing strategy of Routed events?
Bubbling
Direct
Tunneling
All of above


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


3.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?
WrapPanel
StackPanel
VirtualizingStackPanel
DockPanel


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


5.Which of the following is not WPF model(used to create a new control/custom control)?
User Control Model
Control Model
Framework Element Model
Element Model


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


7.Which of the following class is used to implement Trees in WPF?
LogicalTreeHelper
VisualTreeHelper
AbstractTreeHelper
a & b


8._______class provides the GetChildren, GetParent, and FindLogicalNode methods for logical tree traversal.
LogicalTreeHelper
VisualTreeHelper
AbstractTreeHelper
a & b


9. ________ 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.
Dependency property
Dependency property identifier
CLR "wrapper"
None of above


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

WPF MCQs Quiz-1


WPF Quiz-1
1.WPF separates the appearance of an user interface from its behavior. The appearance is generally specified in the_______.
HTML
XAML
XML
XSLT


2. Which of the following layout is not available in WPF?
StackPanel
Canvas
Grid
Table


3.x:Static and data binding markup extensions are same.True or false?
True
False


4.WPF is a replacement to DirectX.True or False?
True
False


5.which is dependency property in this code:<Rectangle Width="131" Canvas.Left="74" />
Width
Canvas.Left
Canvas
None of above


6.Transformations are available in which namespace?
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Media
None of above


7.Which tool(s)is/are used to develop WPF applications?
Visual Studio
Expression Blend
Both a & b
Only a


8.WrapPanel Class comes under___________ assembly.
PresentationCore
PresentationFramework
milcore
None of above


9.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?
True
False


10.A key element of the Trustworthy Computing initiative in WPF is_______.
XAML
SDL
XAP
None of above