Deck 27: Visual Basic 2012 How to Program

Full screen (f)
exit full mode
Question
A XAML document has exactly one ______ .

A)root element
B)start tag
C)end tag
D)child element
Use Space or
up arrow
down arrow
to flip the card.
Question
WPF uses _________ graphics,which allows graphics to scale without losing quality.

A)bitmap
B)vector
C)raster-based
D)jpeg
Question
_________,a subset of WPF,is used to create Rich Internet Applications.

A)Moonlight
B)XML
C)Mono
D)Silverlight
Question
Every XAML document must define the presentation XAML namespace and the standard XAML namespace.
Question
Layout of controls refers to the controls' _____.

A)size
B)event handlers
C)position
D)a and b
E)a and c
Question
A StackPanel has a vertical or horizontal flow,set by its _____ attribute.

A)Order
B)Orientation
C)FlowType
D)Direction
Question
XAML is used to describe the ___________ of a WPF application.

A)classes
B)program logic
C)code-behind file
D)GUI
Question
WPF GUIs can be created by dragging predefined controls from the Toolbox onto the design surface.
Question
XAML is used to define the application's _________.

A)program logic
B)graphical user interface
C)code behind classes
D)All of the above.
Question
A XAML document's root element is a ______ .

A)Window
B)Form
C)Grid
D)UserControl
Question
XAML is a specialized vocabulary of ___________.

A)HTML
B)XML
C)ASP.NET
D)WPF
Question
Using XAML gives WPF the benefit of raster-based graphics.
Question
The StartupUri attribute defines which XAML document loads first.
Question
A content control can have text or several child elements.
Question
XML elements can be nested,creating parent elements and child elements.
Question
A key benefit of WPF is that it provides a single platform to handle GUI,images,animation 2D and 3d graphics,audio and video.
Question
A Grid is a type of layout container.
Question
A major benefit of using XAML is that GUI design can be done separately from programming.
Question
The application's primary code-behind class has filename _______.

A)Application.xaml
B)Application.xaml.vb
C)Window1.xaml
D)Window1.xaml.vb
Question
WPF graphics are resolution-independent,meaning that they are designed to look similar on screens of different sizes.
Question
WPF styles require you to explicitly set the individual properties of each control.
Question
A WPF Grid control allows child elements to be positioned using explicit coordinates.
Question
Use the ____________ method to programmatically close an application.

A)Application.Shutdown
B)Application.Exit
C)Application.Current.Exit
D)Application.Current.Shutdown
Question
The CanExecute event for a command allows you to implement logic that determines whether a command should be enabled or disabled.
Question
A MouseEventArgs object's GetPosition event always returns a position relative to the top left of the WPF window.
Question
A layout container's ____ property stores a list of its child elements.

A)Children
B)ElementList
C)FlowItems
D)List
Question
A bubbling event travels down the container hierarchy,and a tunneling event travels up the container hierarchy.
Question
It's a good practice to use ranges for the size and relative location for the position of WPF controls.
Question
A shape can be given an absolute position in a Canvas using the Canvas's methods _____ and _____.

A)SetX,SetY
B)SetLeft,SetTop
C)PositionX,PositionY
D)PadLeft,PadTop
Question
Flow-based layouts allow the GUI to display correctly when the user resizes the window.
Question
WPF events which behave like Windows Forms events are called ______.

A)expandable events
B)tunneling events
C)bubbling events
D)direct events
Question
A MouseLeftButtonDown event passes information using a MouseButtonEventArgs object.
Question
How does the size setting Auto size the control?

A)It uses the maximum possible size to fill the area
B)It uses a relative size
C)It uses the smallest possible size to fit its contents
D)a and b
Question
A control's Background property is a customizable ________ object.

A)Color
B)BackColor
C)GUIcolor
D)None of the above
Question
The ________ property determines the amount of space around a control's edges.

A)Padding
B)Margin
C)Space
D)Edges
Question
Events which can travel up or down the container hierarchy are called ______.

A)expandable events
B)sourced events
C)bubble events
D)routed events
Question
The _______ property of an event stores a reference to the control that triggered the event.

A)Target
B)Source
C)SourceControl
D)EventTarget
Question
A routed event is ignored after its Handled property is set to True.
Question
WPF provides the ability to create ____________ -- actions or tasks that may be triggered by many different user interactions.

A)multi-events
B)shared events
C)commands
D)b or c
Question
A MouseMove event passes information using a MouseMoveEventArgs object.
Question
A WPF style is a set of that can be reused for any number of controls.

A)property-value definitions
B)event-handler definitions
C)background images
D)a and b.
Question
The attribute declares the control modified by a control template.

A)Type
B)TargetType
C)TargetControl
D)Control
Question
The ItemsSource property of a ListView must refer to the name of a DataTemplate element.
Question
Static resources and dynamic resources differ because static resources are set at initialization time and dynamic resources can be modified by the application.
Question
Keyword is used for constants whose values cannot be determined at compile time.

A)Const
B)ReadOnly
C)Shared
D)None of the above.
Question
WPF controls are "lookless," meaning that their appearance can be set by any control template.
Question
A routed command declared in the XAML changes a control's appearance when that control enters a certain state.
Question
A CollectionViewSource provides multiple "views" of the same data.
Question
Use the property to bind data to information in another XAML element,and the property to bind to a specific property of that element.

A)Binding,Source
B)Target,Property
C)ElementName,Path
D)Target,Source
Question
Colors are represented by three color values and the alpha value.The alpha value specifies .

A)brightness
B)opacity
C)a blending constant
D)None of the above.
Question
Setting the property to None removes the standard window frame containing the title and buttons to minimize,maximize and close the application.

A)Frame
B)Title
C)WindowStyle
D)WindowFrame
Question
Data members declared as ReadOnly must be initialized in their declaration.
Question
Dependency properties provide built-in change notification.
Question
WPF provides built-in functionality for custom windows.
Question
In addition to GUI appearance,styles can also contain event handlers.
Question
Which of the following is not a data provider for WPF data binding?

A)ObjectDataProvider
B)SqlDataProvider
C)XmlDataProvider
D)None of the above.
Question
Custom control templates give you complete control of a control's appearance.
Question
Resources are similar to Private members.They are accessible only to the controls they are defined in.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/58
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 27: Visual Basic 2012 How to Program
1
A XAML document has exactly one ______ .

A)root element
B)start tag
C)end tag
D)child element
A
2
WPF uses _________ graphics,which allows graphics to scale without losing quality.

A)bitmap
B)vector
C)raster-based
D)jpeg
B
3
_________,a subset of WPF,is used to create Rich Internet Applications.

A)Moonlight
B)XML
C)Mono
D)Silverlight
D
4
Every XAML document must define the presentation XAML namespace and the standard XAML namespace.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
5
Layout of controls refers to the controls' _____.

A)size
B)event handlers
C)position
D)a and b
E)a and c
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
6
A StackPanel has a vertical or horizontal flow,set by its _____ attribute.

A)Order
B)Orientation
C)FlowType
D)Direction
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
7
XAML is used to describe the ___________ of a WPF application.

A)classes
B)program logic
C)code-behind file
D)GUI
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
8
WPF GUIs can be created by dragging predefined controls from the Toolbox onto the design surface.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
9
XAML is used to define the application's _________.

A)program logic
B)graphical user interface
C)code behind classes
D)All of the above.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
10
A XAML document's root element is a ______ .

A)Window
B)Form
C)Grid
D)UserControl
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
11
XAML is a specialized vocabulary of ___________.

A)HTML
B)XML
C)ASP.NET
D)WPF
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
12
Using XAML gives WPF the benefit of raster-based graphics.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
13
The StartupUri attribute defines which XAML document loads first.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
14
A content control can have text or several child elements.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
15
XML elements can be nested,creating parent elements and child elements.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
16
A key benefit of WPF is that it provides a single platform to handle GUI,images,animation 2D and 3d graphics,audio and video.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
17
A Grid is a type of layout container.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
18
A major benefit of using XAML is that GUI design can be done separately from programming.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
19
The application's primary code-behind class has filename _______.

A)Application.xaml
B)Application.xaml.vb
C)Window1.xaml
D)Window1.xaml.vb
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
20
WPF graphics are resolution-independent,meaning that they are designed to look similar on screens of different sizes.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
21
WPF styles require you to explicitly set the individual properties of each control.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
22
A WPF Grid control allows child elements to be positioned using explicit coordinates.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
23
Use the ____________ method to programmatically close an application.

A)Application.Shutdown
B)Application.Exit
C)Application.Current.Exit
D)Application.Current.Shutdown
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
24
The CanExecute event for a command allows you to implement logic that determines whether a command should be enabled or disabled.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
25
A MouseEventArgs object's GetPosition event always returns a position relative to the top left of the WPF window.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
26
A layout container's ____ property stores a list of its child elements.

A)Children
B)ElementList
C)FlowItems
D)List
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
27
A bubbling event travels down the container hierarchy,and a tunneling event travels up the container hierarchy.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
28
It's a good practice to use ranges for the size and relative location for the position of WPF controls.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
29
A shape can be given an absolute position in a Canvas using the Canvas's methods _____ and _____.

A)SetX,SetY
B)SetLeft,SetTop
C)PositionX,PositionY
D)PadLeft,PadTop
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
30
Flow-based layouts allow the GUI to display correctly when the user resizes the window.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
31
WPF events which behave like Windows Forms events are called ______.

A)expandable events
B)tunneling events
C)bubbling events
D)direct events
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
32
A MouseLeftButtonDown event passes information using a MouseButtonEventArgs object.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
33
How does the size setting Auto size the control?

A)It uses the maximum possible size to fill the area
B)It uses a relative size
C)It uses the smallest possible size to fit its contents
D)a and b
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
34
A control's Background property is a customizable ________ object.

A)Color
B)BackColor
C)GUIcolor
D)None of the above
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
35
The ________ property determines the amount of space around a control's edges.

A)Padding
B)Margin
C)Space
D)Edges
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
36
Events which can travel up or down the container hierarchy are called ______.

A)expandable events
B)sourced events
C)bubble events
D)routed events
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
37
The _______ property of an event stores a reference to the control that triggered the event.

A)Target
B)Source
C)SourceControl
D)EventTarget
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
38
A routed event is ignored after its Handled property is set to True.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
39
WPF provides the ability to create ____________ -- actions or tasks that may be triggered by many different user interactions.

A)multi-events
B)shared events
C)commands
D)b or c
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
40
A MouseMove event passes information using a MouseMoveEventArgs object.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
41
A WPF style is a set of that can be reused for any number of controls.

A)property-value definitions
B)event-handler definitions
C)background images
D)a and b.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
42
The attribute declares the control modified by a control template.

A)Type
B)TargetType
C)TargetControl
D)Control
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
43
The ItemsSource property of a ListView must refer to the name of a DataTemplate element.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
44
Static resources and dynamic resources differ because static resources are set at initialization time and dynamic resources can be modified by the application.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
45
Keyword is used for constants whose values cannot be determined at compile time.

A)Const
B)ReadOnly
C)Shared
D)None of the above.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
46
WPF controls are "lookless," meaning that their appearance can be set by any control template.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
47
A routed command declared in the XAML changes a control's appearance when that control enters a certain state.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
48
A CollectionViewSource provides multiple "views" of the same data.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
49
Use the property to bind data to information in another XAML element,and the property to bind to a specific property of that element.

A)Binding,Source
B)Target,Property
C)ElementName,Path
D)Target,Source
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
50
Colors are represented by three color values and the alpha value.The alpha value specifies .

A)brightness
B)opacity
C)a blending constant
D)None of the above.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
51
Setting the property to None removes the standard window frame containing the title and buttons to minimize,maximize and close the application.

A)Frame
B)Title
C)WindowStyle
D)WindowFrame
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
52
Data members declared as ReadOnly must be initialized in their declaration.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
53
Dependency properties provide built-in change notification.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
54
WPF provides built-in functionality for custom windows.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
55
In addition to GUI appearance,styles can also contain event handlers.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following is not a data provider for WPF data binding?

A)ObjectDataProvider
B)SqlDataProvider
C)XmlDataProvider
D)None of the above.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
57
Custom control templates give you complete control of a control's appearance.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
58
Resources are similar to Private members.They are accessible only to the controls they are defined in.
Unlock Deck
Unlock for access to all 58 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 58 flashcards in this deck.