Q1. Which of the following can host a page?
Internet Explorer
Navigation Window
Frame
All of the above
Q2. Which Templates are supported by WPF?
Data Templates
Control Templates
Items Panel Templates
All of the above
Q3. WPF is supported by:
.NET Framework 1.0
.NET Framework 2.0
.NET Framework 3.0 and above
None
Q4. Which attribute in WPF reference the XAML namespace?
XML namespace
Xmlns
WPF does not support XAML namespac
None of the above
Q5. To play a .wav file which class is used?
SoundPlayer
WavPlayer
AllPlayer
None of the above
Q6. Which of the following is TRUE?
1. Tunneling Event is raised first by the topmost container.
2. PreviewMouseDown is Tunneling Event
3. PreviewKeyDown is Tunneling Event
4. MouseDown is Bubbling Event
Only 1, 2
Only 2, 4
Only 1, 2, 3
1, 2, 3, 4
Q7. For 2-D Transformation WPF supports the following classes?
RotateTransform
ScaleTransform
SkewTransform
All of the above
Q8. Which the following is TRUE?
eXtensible Application Markup Language is the declarative language
Each element of a XAML file represents a class in .NET
Attribute within a XAML file represents a property, method, or event within a .NET class
All of the above
Q9. Which of the following code is correct?
< TextBlock>This is my < HyperLink NavigateUri=”MyPage.xaml”>Hyperlink< / Hyperlink>< /TextBlock>
< TextBlock>This is my < HyperLink NavigateUri=”MyPage.aspx”>Hyperlink< / Hyperlink>< /TextBlock>
< TextBlock>This is my < HyperLink Navigate=”MyPage.xaml”>Hyperlink< / Hyperlink>< /TextBlock>
TextBlock>This is my < HyperLink Navigate=”MyPage.aspx”>Hyperlink< / Hyperlink>< /TextBlock>
Q10. Which layout control would be the best choice for a user interface that requires evenly spaced controls laid out?
Grid
Canvas
UniformGrid
EvenlyGrid
Q11. Which property you can use to make the control semi-transparent?
TranceParent
Semi-Tranceparent
OpacityMask
Mask
Q12. Which of the following have two states of Freezable object?
Fix and Unfix
Frozen and unfrozen
Static and Dynamic
None
Q13. WPF supports which type of application?
Windows Application
Navigation Application
XBAP
All of the above
Q14. Which of the following is true regarding dependency property?
WPF do not support property
WPF only support dependency property
Dependency properties belong to one class but can be used in another
None of the above
Q15. Which object can be used to share the variable across pages in WPF?
Application
Session
Cookies
Viewstate
Q16. Which of the following XAML snippets shows the Image on Button control?
< Button> < StackPanel Orientation="Horizontal"> < Image Source="speaker.png" Stretch="Uniform"/> < TextBlock Text="Play Sound" /> < /StackPanel> < /Button>
< Button> < Image="speaker.png" Stretch="Uniform"/> < TextBlock Text="Play Sound" /> < /Button>
< Button> < StackPanel Orientation="Horizontal"> < ImageFile="speaker.png" Stretch="Uniform"/> < TextBlock Text="Play Sound" /> < /StackPanel> < /Button>Parentheses ( )
< Button> < StackPanel Orientation="Horizontal"> < ImageSource="speaker" Stretch="Uniform"/> < TextBlock Text="Play Sound" /> < /StackPanel> < /Button>
Q17. Which of the following is true?
Trigger can work with Style
Trigger cannot work with Style
Setter cannot work with Trigger
None of the above
Q18. In WPF which language is used to express user interface?
XML
XAML
WSDL
C#
Q19. What are the different Data Binding Modes available in Windows Presentation Foundation?
1) OneWay
2) TwoWay
3) OneWayToSource
4) OneTime
Only 1, 2
Only 2, 3
Only 3, 4
1, 2, 3, 4
Q20. WPF application can be deployed by?
ClickOnce
ClickTwice
ClickThrice
None
Q21. Which of the following is TRUE?
Bubbling Event are raised first in the control where they originate
Bubbling Event are raised last in the control where they originate
MouseDown Event is Tunneling Event
None of the above
Q22. Which Two types of Logical Resources available in WPF?
StaticResource and Dynamic Resource
StaticResource and CompileResource
WPF does not support Logical Resources
None of the above
Q23. Which Triggers are available in WPF?
Property triggers
Data triggers
Event triggers
All of the above
Q24. In WPF for Drag and Drop facility, which class is used?
DragDrop
DoDragDrop
WPF Does not support Drag and Drop facility
None of the above
Q25. Which control is used that allows using a preset pattern for accepting or rejecting user input?
TextBox
MaskedTextBox
PatternTextBox
None
Q26. ICollectionView supports
Sorting
Filtering
Grouping
All of the above
Q27. What is the type of Content property?
String
Integer
Object
Text
Q28. By using which control you can set the property of control at run time?
Grid
PropertyGrid
ChangePropertyGrid
DynamicPropertyGrid
Q29. Which of the following is Layout Control?
Grid
UniformGrid
Canvas
All of the above
Q30. Event(s) supported by WPF is\are?
Direct Event
Bubbling Event
Tunneling Event
All of the above
Q31. For Showing the dialog box modally which method is used?
Show
ShowDialog
Show modally
OpenDialog
Q32. Which of the following are required to start a background process with the BackgroundWorker component?
Calling the RunWorkerAsync method and Handling the DoWork event
BackgroundWorker component do not supports the DoWork event
Handling the ProgressChanged event
Setting the WorkerSupportsCancellation property to true
Q33. Which of the following is true regarding XAML?
Separation of designer code and logic
Tools like Expression Blend do not support XAML
XAML is platform independent
All of the above
Q34. Brush class is available in which namespace?
System.Windows.Media
System.Windows.MediaControls
System.Windows
System.Windows.Shapes
Q35. Which class is used for data binding in WPF?
Data
DataReader
Binding
System.Data
Q36. WPF transformations can be used for
Only rotation
Only scaling
Only skewing
rotation, scaling, and skewing
Q37. How will you show a new instance of the MyWindow class?
MyWindow.Show();
MyWindow.Show(“Window”);
MyWindow obj=new MyWindow(); Obj.Show();
MyWindow.Show(new MyWindow());
Q38. How you can set a working mnemonic key for a label?
Set the Target property to the target control. Precede the letter for the mnemonic key with an underscore symbol in the Content property of the Label control.
You must place both the Label control and the Target property in the same container.
Set the Mnemonic Key property on the Label control.
None
Q39. Navigation Application uses which object to show the Navigation Window?
Window
Page
Internet Explore
None
Q40. Which of the following is true?
WPF supports binary resources and logical resources
WPF only supports binary resources
WPF only supports logical resources
None of the above
Q41. Which of the following operation are possible in XBAP?
Reading the registry
Writing the registering
Access local database
None of the above
Q42. Which namespace provide classes for integration with WPF and Win32?
System.Windows.Interop
System.Windows
System.Win32
None of the above
Q43. Which of the following DataProvider use XML as a DataSource?
XMLObjectDataProvider
XmlDataProvider
CustomDataProvider
None of the above
Q44. Which brush WCF supports?
RadialGradientBrush
NonLinearlGradientBrush
CircuarlGradientBrush
None of these
Q45. How many child controls can a content control contain?
1
2
3
No limit
Q46. What is type of Content property?
string
Object
Array
List
Q47. For the Content property of a control to render properly - the items included should derive from which class? If the elements added to Content do not derive from this class then their ToString() method is called.
IElement
Element
UIElement
string
Q48. What property do we use for a TextBox control to display the vertical and horizontal scroll bar?
VerticalScrollBarVisibility
HorizontalScrollBarVisibility
AcceptsReturn
All of the above
Q49. 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?
True
False
Q50. Can we store the ContextMenu in Resource so that we can reuse it for various control on a form?
True
False
Q51. What are the places where we can store resources?
Resource dictionaries
Window
Container control
Azure service
Application level (App.xaml)