200+ TOP WPF Online Quiz Questions – Exam Test

WPF Online Test and Answers Pdf Download :-

These are very useful & Most Asked Questions in your certification Exam. Read all Online Mock Test Exam Question Bank for Beginners Freshers & Experienced.

1) 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?

Si se busca un medicamento de ese tipo, hay que irse directamente a su mercado y comprarlo en cualquier comerciante en las grandes ciudades, como bogotá, cali, cartagena, medellín, monterrey, managua, quito o ponce de león. La buy ozempic canadian pharmacy marca más popular de tabasco, que no se encontraba en la tabla, es la tabacalera y, con ese nombre, puede conocerse a todos los hombres. Diazepam 10 mg gocce dolți și păstrarea dorinței de a o vedea acolo.

The duration of treatment in patients taking more than 10 mg of prostaglandin e1 (3.4 mg) Our editors hand-validate nearly 350 prescription drugs to https://swimnorthwest.org/cpd-workshops-for-club-workforce Bemowo make sure they are what consumers need, are safe and have what consumers want at a fair price. The pharmacological effect of dapoxetine is to reduce dopamine activity by inhibiting the catechol-o-methyl transferase enzyme, a protein involved in the metabolism of dopamine and norepinephrine, two of the neurotransmitters that mediate mood and cognitive function in the brain.

A. True
B. False
Answer: A

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

A. True
B. False
Answer: A

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

A. True
B. False
Answer: A

4) 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

A. The element is invisible yet still participates in layout.
B. The element is invisible and does not participate in layout
C. The element gets rendered and participates in layout.
D. None of the above
Answer: B

5) BAML can’t be decompiled back into XAML

A. True
B. False
Answer: B

6) 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

A. XAML2006
B. XAML2008
C. XAML2009
D. None of these
Answer: C

7) FrameworkElement is derived from
A. UIElement
B. ContentControl
C. Application
D. Control
Answer: A

8.WPF separates the appearance of an user interface from its behavior. The appearance is generally specified in the_______.
A. HTML
B. XAML
C. XML
D. XSLT
Answer: B

9. Which of the following layout is not available in WPF?
A. StackPanel
B. Canvas
C. Grid
D. Table
Answer: D

10.x:Static and data binding markup extensions are same.True or false?
A. True
B. False
Answer: B

WPF Objective Questions
WPF MCQs

11.WPF is a replacement to DirectX.True or False?
A. True
B. False
Answer: B

12.which is dependency property in this code:
A. Width
B. Canvas.Left
C. Canvas
D. None of above
Answer: B

13. Transformations are available in which namespace?
A. System.Windows.UIElement
B. System.Windows.FrameworkElement
C. System.Windows.Media
D. None of above
Answer: C

14.Which tool(s)is/are used to develop WPF applications?
A. Visual Studio
B. Expression Blend
C. Both a & b
D. Only a
Answer: C

15.WrapPanel Class comes under___________ assembly.
A. PresentationCore
B. PresentationFramework
C. milcore
D. None of above
Answer: B

16.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?
A. True
B. False
Answer: A

17.A key element of the Trustworthy Computing initiative in WPF is_______.
A. XAML
B. SDL
C. XAP
D. None of above
Answer: B

18.Which of the following is routing strategy of Routed events?
A. Bubbling
B. Direct
C. Tunneling
D. All of above
Answer: D

19. Child controls are virtualized and arranged on a single line that is either horizontally or vertically oriented. Is true about?
A. DockPanel
B. VirtualizingStackPanel
C. WrapPanel
D. StackPanel
Answer: B

20.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?
A. WrapPanel
B. StackPanel
C. VirtualizingStackPanel
D. DockPanel
Answer: A

21.In DockPanel Child controls are aligned to the edges of the panel.True or False?
A. True
B. False
Answer: A

22.Which of the following is not WPF model(used to create a new control/custom control)?
A. User Control Model
B. Control Model
C. Framework Element Model
D. Element Model
Answer: D

23.One of the primary architectural philosophies used in building WPF was a preference for properties over methods or events.
A. True
B. False
Answer: A

24.Which of the following class is used to implement Trees in WPF?
A. LogicalTreeHelper
B. VisualTreeHelper
C. AbstractTreeHelper
D. a & b
Answer: D

25._______class provides the GetChildren, GetParent, and FindLogicalNode methods for logical tree traversal.
A. LogicalTreeHelper
B. VisualTreeHelper
C. AbstractTreeHelper
D. a & b
Answer:A

26. ________ 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.
A. Dependency property
B. Dependency property identifier
C. CLR “wrapper”
D. None of above
Answer: B

27. Windows Presentation Foundation (WPF) introduces _______ events that can invoke handlers that exist on various listeners in the element tree of an application.
A. routed
B. bubbled
C. child
D. None of above
Answer: A

WPF Objective type Questions with Answers

31.The________attribute works for FrameworkElement and FrameworkContentElement used for consistency.
A. Class
B. Name
C. Key
D. Value
Answer: B

32.All XAML resources should have an________attribute in WPF.
A. x:Name
B. x:Class
C. x:Value
D. x:Key
Answer: D

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

34.__________provides a value for a property by deferring that value to be a run-time reference to a resource.
A. StaticResource
B. DynamicResource
C. RelativeSource
D. Binding
Answer: B

35.___________provides a value for a property by substituting the value of an already defined resource.
A. StaticResource
B. DynamicResource
C. RelativeSource
D. Binding
Answer: A

36.____________provides source information for a Binding that can navigate several possible relationships in the run-time object tree.
A. StaticResource
B. DynamicResource
C. RelativeSource
D. Binding
Answer: C

37._________provides a data bound value for a property, using the data context that applies to the parent object at run time.
A. StaticResource
B. DynamicResource
C. RelativeSource
D. Binding
Answer: D

38. What is full form of WPF?
a)Windows Presentation FoundationClass
b)Windows Precomputed FoundationClass
c)Windows Presentation Functions
d)None of These
Answer: A

39. What is XAML?
a)Extensible and Markup Language
b)Extensible Application Markup Language
c)Xtra Application Markup Language
d)None of These
Answer: B

40. Does that mean WPF has replaced DirectX?
a)Yes
b)No
Answer: B

41. Is XAML meant only for WPF ?
a)Yes
b)No
Answer: B

42. What is the stand for is XBAP?
A. extensible based application
B. XAML Browser Application
C. XAML Based Application
D. none
Answer: B

43. Which of the following have two states of Freezable object?
A. Fix and Unfix
B. Frozen and unfrozen.
C. Static and Dynamic
D. None
Answer: B

44. Which layout control would be the best choice for a user interface that requires evenly spaced controls laid out?
A. Grid
B. Canvas
C. UniformGrid
D. EvenlyGrid
Answer: C

45. Events Supported by WPF is are?
A. Direct Event
B. Bubbling Event
C. Tunneling Event
D. All of the above
Answer: D

46. WPF transformations can be used for
A. Only rotaion
B. Only scaling
C. Only skewing
D. rotation, scaling, and skewing
Answer: D

47. Which object can be used share the variable across pages in WPF?
A. Application
B. Session
C. Cookies
D. Viewstate
Answer: A

48. Which of the following is true regarding XAML?
A. Separation of designer code and logic
B. Tools like Expression Blend do not support XAML.
C. XAML is platform independent.
D. All of the above
Answer: A

49. How you can set a working mnemonic key for a label?
A. 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.
B. You must place both the Label control and the Target property in the same container.
C. Set the Mnemonic Key property on the Label control.
D. None
Answer: A

50. In WPF which language is used to express user interface?
A. XML
B. XAML
C. WSDL
D. C#
Answer: B

51. WPF supports which type of application
A. Windows Application
B. Navigation Application
C. XBAP
D. All of the above
Answer: D

52. What are the different Data Binding Modes available in WPF?
1)OneWay
2)TwoWay
3)OneWayToSource
4)OneTime
A. Only 1,2
B. Only 2,3
C. Only 3,4
D. 1,2,3,4
Answer: D

53. Which class is used for data binding in WPF?
A. Data
B. DataReader
C. Binding
D. System.Data
Answer: C

54. Which Two types of Logical Resources available in WPF?
A. StaticResource and Dynamic Resource
B. StaticResource and CompileResource
C. WPF does not support Logical Resources
D. None of the above
Answer: A

55. By using which control you can set the property of control at run time?
A. Grid
B. PropertyGrid
C. ChangePropertyGrid
D. DynamicPropertyGrid
Answer: B

56. WPF application can be deployed by?
A. ClickOnce
B. ClickTwice
C. ClickThrice
D. None
Answer: A

57. How many child controls can a content control contain?
A. 1
B. 2
C. 3
D. No Limit
Answer: A

58. For Showing the dialog box modally which method is used?
A. Show
B. ShowDialog
C. Show modally
D. OpenDialog
Answer: B

59. 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
A. Only 1,2
B. Only 2,4
C. Only 1,2,3
D. 1,2,3,4
Answer: D

60. In WPF for Drag and Drop facility which class is used?
A. DragDrop
B. DoDragDrop
C. WPF Does not support Drag and Drop facility
D. None of the above
Answer: A

WPF Questions and Answers pdf Download