WPF MCQs

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

1.

Appearance of User interface in WPF is specified by


a. HTML
b. C#
c. XAML
d. XML
2. XAML is extended form of
a. HTML
b. XML
c. none
d. both
3. Which of the following is used in WPF for rendering user
interface
a. Software rendering
b. Hardware rendering
4. WPF user interface can be employed as
a. Desktop program
b. Web hosting program
c. Both
d. None
5. WPF uses internally
a. DirectX
b. Direct3D
c. SDL
d. All above
6. Comments in XAML can be specified by _________ tag
a. <!-- --!>
b. <!-- -->
c. <%-- --%>
d. < >
7. Design of User interface can be created through
a. Writing XAML tags
b. Drag and drop
c. both
d. none
8. Which of the following layout is not available in WPF
a. Table
b. Canvas
c. Stack Panel
d. Grid

9. All XAML resources in WPF must have an _______ tag


a. x:Name
b. x:Value
c. x:Class
d. x:Key
10.
In XAML x:NULL specifies null as a value for attribute
and can be used for properties/attributes values elements
a. true
b. false
11.
___________can be used to specify already defined
resources by substituting their value
a. StaticResource
b. DynamicResource
c. RelativeResource
d. None
12.
__________ provides value for property by deferring that
value to be a run time reference to that value
a. StaticResource
b. DynamicResource
c. RelativeResource
d. None
13.
Which object can be used to share data across all
pages in WPF?
a. Application
b. Session
c. Cookie
d. None

14.
XAML can be used for separation of designer code and
logic
a. True
b. False
15.
Which class supports data binding in WPF?
a. DataBinder
b. Data
c. Binding
d. None

16.

WPF is replacement of DirectX


a. True
b. False
17.
Which class supports drag and drop feature in WPF
a. DragDrop
b. DragAndDrop
c. WPF does not provide drag and drop
d. None
18.
Can WPF be used as replacement for window forms
a. True
b. False
19.
Windows Forms cannot be used in WPF application
a. True
b. False
20.
Which of the following is routing strategy of routed
events
a. Bubbling
b. Direct
c. Tunneling
d. All above
Answers:
1
c
11
a

2
b
12
b

3
b
13
a

4
c
14
a

5
a
15
c

6
b
16
b

7
c
17
a

8
a
18
a

9
d
19
b

10
a
20
d

You might also like