Deck 20: Windows 8 Ui Xaml
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/28
Play
Full screen (f)
Deck 20: Windows 8 Ui Xaml
1
Which of the following statements is false?
A)Each Page can have AppBars at the top and bottom of the screen for quick access to commands.
B)By default,the AppBars are visible.
C)Setting the AppBar's IsOpen attribute to True indicates that the AppBar should be displayed when the app first executes.
D)Windows 8 UI RadioButtons function as mutually exclusive options,just like their Windows Forms counterparts.
A)Each Page can have AppBars at the top and bottom of the screen for quick access to commands.
B)By default,the AppBars are visible.
C)Setting the AppBar's IsOpen attribute to True indicates that the AppBar should be displayed when the app first executes.
D)Windows 8 UI RadioButtons function as mutually exclusive options,just like their Windows Forms counterparts.
B
2
A StackPanel's elements are arranged in a single row or column,depending on the ________ property.
A)Placement
B)Alignment
C)Attitude
D)Orientation
A)Placement
B)Alignment
C)Attitude
D)Orientation
D
3
A XAML document defines the ________ of a Windows 8 UI app.
A)appearance
B)sequencing
C)threading
D)priority
A)appearance
B)sequencing
C)threading
D)priority
A
4
You can test your Windows Store apps by selecting which of the following options from the drop-down list to the right of Start Debugging on the Visual Studio toolbar:
A)Simulator
B)Local Machine
C)Remote Machine
D)all of the above
A)Simulator
B)Local Machine
C)Remote Machine
D)all of the above
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following statements is false?
A)To apply a style to a control,you create a resource binding between a control's Style property and a Style resource by using a markup extension-an expression enclosed in curly braces ({})of the form {ResourceType ResourceKey}.
B)There are two types of resources.Static resources are applied at initialization time only.Dynamic resources are applied every time the resource is modified by the app.
C)Because styles normally change during runtime,they are usually used as dynamic resources.
D)By default,the AppBar button styles are located in XML comments within the StandardStyles.xaml file.To use these styles you must first remove them from the comments.
A)To apply a style to a control,you create a resource binding between a control's Style property and a Style resource by using a markup extension-an expression enclosed in curly braces ({})of the form {ResourceType ResourceKey}.
B)There are two types of resources.Static resources are applied at initialization time only.Dynamic resources are applied every time the resource is modified by the app.
C)Because styles normally change during runtime,they are usually used as dynamic resources.
D)By default,the AppBar button styles are located in XML comments within the StandardStyles.xaml file.To use these styles you must first remove them from the comments.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
6
Depending on your app's purpose,you may choose to support the orientations Landscape,Portrait,________ and ________.
A)High-definition-horizontal,High-definition-vertical.
B)Landscape-flipped,Portrait-flipped
C)Diagonal-left,Diagonal-right.
D)Perspective-left,Perspective-right.
A)High-definition-horizontal,High-definition-vertical.
B)Landscape-flipped,Portrait-flipped
C)Diagonal-left,Diagonal-right.
D)Perspective-left,Perspective-right.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following statements is false?
A)The root element of a Windows 8 UI XAML document is a Page control,which defines the content of the app's page.
B)In Windows 8,it's possible to have a maximum of two Windows Store apps on the screen.
C)The attribute x:Name of the Page start tag specifies the name of the class that provides the GUI's functionality.
D)A XAML document must have an associated code-behind file to handle events.
A)The root element of a Windows 8 UI XAML document is a Page control,which defines the content of the app's page.
B)In Windows 8,it's possible to have a maximum of two Windows Store apps on the screen.
C)The attribute x:Name of the Page start tag specifies the name of the class that provides the GUI's functionality.
D)A XAML document must have an associated code-behind file to handle events.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following statements is false?
A)XAML is an XML vocabulary.
B)XAML markup is readable by both humans and computers,so you can manually write XAML to define your GUI.
C)When you compile your app,a XAML compiler generates code to create and configure controls based on your XAML markup.
D)XAML a version of Visual Basic.
A)XAML is an XML vocabulary.
B)XAML markup is readable by both humans and computers,so you can manually write XAML to define your GUI.
C)When you compile your app,a XAML compiler generates code to create and configure controls based on your XAML markup.
D)XAML a version of Visual Basic.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
9
The app's splash screen provides a visual indication that the app is loading.SplashScreen ·png is ________.
A)shown on the app's tile in the Start screen
B)displayed with your app's name when your app is shown in Windows 8 search results
C)displayed briefly when your app first loads
D)shown in the Windows Store with your app's description and in any Windows Store search results
A)shown on the app's tile in the Start screen
B)displayed with your app's name when your app is shown in Windows 8 search results
C)displayed briefly when your app first loads
D)shown in the Windows Store with your app's description and in any Windows Store search results
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
10
Which of the following statements is false?
A)MainPage.xaml defines the first Page that's loaded in the app.
B)StandardStyles.xaml (in the Common folder)defines styles that enable your app's GUI to have the look-and-feel of Windows Store apps.
C)The Assets folder typically contains media files,such as images,audio and video files.By default this folder contains four images that are used as logos and a splash screen.
D)The Standard folder contains files typically used by all Pages in an app,such as the StandardStyles.xaml file.
A)MainPage.xaml defines the first Page that's loaded in the app.
B)StandardStyles.xaml (in the Common folder)defines styles that enable your app's GUI to have the look-and-feel of Windows Store apps.
C)The Assets folder typically contains media files,such as images,audio and video files.By default this folder contains four images that are used as logos and a splash screen.
D)The Standard folder contains files typically used by all Pages in an app,such as the StandardStyles.xaml file.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
11
In addition to the Width and Height properties associated with every control,all Windows 8 UI controls have the MinWidth,MinHeight,MaxHeight and MaxWidth properties.If the Width and Height properties are both ________ (the default),you can use these minimum and maximum properties to specify a range of acceptable sizes for a control.
A)Static
B)Dynamic
C)Range
D)Auto
A)Static
B)Dynamic
C)Range
D)Auto
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
12
A Windows 8 UI ________ control is similar to a Label in Windows Forms.
A)Label
B)Text
C)Identifier
D)TextBlock
A)Label
B)Text
C)Identifier
D)TextBlock
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
13
The template ________ defines a single-page app for which you must define your own GUI.
A)Split App
B)Blank App
C)Elementary App
D)Basic App
A)Split App
B)Blank App
C)Elementary App
D)Basic App
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
14
The technique of defining what the GUI should contain without specifying how to generate it is an example of ________ programming.
A)procedural
B)generic
C)declarative
D)object-oriented programming
A)procedural
B)generic
C)declarative
D)object-oriented programming
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
15
A Windows 8 control's position should be specified based on its position relative to the layout container in which it's included and the other controls in the same container.All controls have three properties for doing this-HorizontalAlignment,VerticalAlignment and ________ (which specifies how much space to put around a control's edges).
A)Padding
B)Fill
C)Border
D)Margin
A)Padding
B)Fill
C)Border
D)Margin
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following statements is false?
A)A RadioButton's Clicked property specifies the event handler that's called when the user interacts with the control.
B)Set a RadioButton's IsChecked property to True to indicate that the RadioButton should be selected when the app begins executing.
C)A RadioButton's Click property specifies the event handler that's called when the user interacts with the control.
D)A control's Style property specifies the look-and-feel of the control.
A)A RadioButton's Clicked property specifies the event handler that's called when the user interacts with the control.
B)Set a RadioButton's IsChecked property to True to indicate that the RadioButton should be selected when the app begins executing.
C)A RadioButton's Click property specifies the event handler that's called when the user interacts with the control.
D)A control's Style property specifies the look-and-feel of the control.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
17
Which of the following statements is false?
A)The template Grid App defines three-page app with predefined layouts and GUI controls.The provided pages allow the user to view a collection of groups of items displayed in a grid of rows and columns,view particular group's details and view a particular item's details.
B)The template Split App defines a two-page app with predefined layouts and GUI controls.The first page allows the user to view a collection of groups of items displayed in a grid.The second page allows the user to view particular group and a selected item's details.
C)There are two predefined themes for Windows Store apps: Black (the default)and White.Microsoft recommends using the Black theme for apps that present mostly images and video and the White theme for apps that display lots of text.
D)The IDE's Design view is used for drag-and-drop GUI design and the XAML view shows the generated XAML markup.
A)The template Grid App defines three-page app with predefined layouts and GUI controls.The provided pages allow the user to view a collection of groups of items displayed in a grid of rows and columns,view particular group's details and view a particular item's details.
B)The template Split App defines a two-page app with predefined layouts and GUI controls.The first page allows the user to view a collection of groups of items displayed in a grid.The second page allows the user to view particular group and a selected item's details.
C)There are two predefined themes for Windows Store apps: Black (the default)and White.Microsoft recommends using the Black theme for apps that present mostly images and video and the White theme for apps that display lots of text.
D)The IDE's Design view is used for drag-and-drop GUI design and the XAML view shows the generated XAML markup.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
18
In XAML elements,attributes like Background that are not qualified with a XML namespace (such as x:)correspond to ________ of an object.
A)elements
B)instance variables
C)properties
D)constants
A)elements
B)instance variables
C)properties
D)constants
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
19
The Windows 8 simulator ________ option (the default)runs the app directly on the Windows 8 computer that's running Visual Studio.
A)Local Machine
B)Remote Machine
C)Simulator
D)Multicore Machine
A)Local Machine
B)Remote Machine
C)Simulator
D)Multicore Machine
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
20
Package.appxmanifest defines various settings for your app,such as the app's display name,logo,splash screen and more.
A)display name
B)logo
C)splash screen
D)all of the above
A)display name
B)logo
C)splash screen
D)all of the above
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
21
Which of the following statements is false?
A)An app that's running is on the screen so that the user can interact with it.
B)An app that's suspended is on the screen,so Windows 8 suspends its execution to conserve power and reduce the load on the CPU.
C)An app that's terminated was shut down by Windows 8-typically to recover resources like memory that are needed by other apps.
D)An app that's closed by the user was shut down explicitly by the user by swiping from the top of the screen to the bottom.
A)An app that's running is on the screen so that the user can interact with it.
B)An app that's suspended is on the screen,so Windows 8 suspends its execution to conserve power and reduce the load on the CPU.
C)An app that's terminated was shut down by Windows 8-typically to recover resources like memory that are needed by other apps.
D)An app that's closed by the user was shut down explicitly by the user by swiping from the top of the screen to the bottom.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following statements is true?
A)One advantage of Windows 8 UI over Windows Forms is that you can customize the look-and-feel of controls to meet your app's needs.
B)Many controls that allowed only text content in Windows Forms are ContentControls in Windows 8 UI.
C)ContentControls can host any type of content-including other controls.
D)All of the above
A)One advantage of Windows 8 UI over Windows Forms is that you can customize the look-and-feel of controls to meet your app's needs.
B)Many controls that allowed only text content in Windows Forms are ContentControls in Windows 8 UI.
C)ContentControls can host any type of content-including other controls.
D)All of the above
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
23
A Canvas is a layout container that allows you to position controls by defining explicit coordinates from the Canvas's ________ corner.
A)lower-left
B)lower-right
C)upper-left
D)upper-right
A)lower-left
B)lower-right
C)upper-left
D)upper-right
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following statements is false?
A)A class's property can be defined in XAML as a nested element with the name ClassName.PropertyName.
B)You can specify the Height of a RowDefinition and the Width of a ColumnDefinition with an explicit size,a relative size (using *)or Auto.Auto makes the row or column only as big as it needs to be to fit its contents.
C)If you click the ellipsis button next to the RowDefinitions or ColumnDefinitions property in the Properties window,the Collection Editor window will appear.This tool can be used to add,remove,reorder,and edit the properties of rows and columns in a Grid.
D)When defining a control in a Grid,the control is placed in row 1 and column 1 unless you specify otherwise.
A)A class's property can be defined in XAML as a nested element with the name ClassName.PropertyName.
B)You can specify the Height of a RowDefinition and the Width of a ColumnDefinition with an explicit size,a relative size (using *)or Auto.Auto makes the row or column only as big as it needs to be to fit its contents.
C)If you click the ellipsis button next to the RowDefinitions or ColumnDefinitions property in the Properties window,the Collection Editor window will appear.This tool can be used to add,remove,reorder,and edit the properties of rows and columns in a Grid.
D)When defining a control in a Grid,the control is placed in row 1 and column 1 unless you specify otherwise.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following statements is false?
A)A data binding is a pointer to data that's represented by a DataSource object.
B)You can create bindings to a broad range of data types,including objects,collections,data in XML documents,data in databases and LINQ query results.
C)Data bindings can be created declaratively in XAML markup with markup extensions.To declare a data binding,you must specify the data's source.If it's another element in the XAML markup,you use property ElementName;otherwise,you use Source.
D)Many controls have built-in support for data binding,and do not require a separate Binding object.A ListView,for example,has an ItemsSource property that specifies the data source of the ListView's items-when you set ItemsSource to a collection of data,the objects in the collection automatically become the items in the ListView.
A)A data binding is a pointer to data that's represented by a DataSource object.
B)You can create bindings to a broad range of data types,including objects,collections,data in XML documents,data in databases and LINQ query results.
C)Data bindings can be created declaratively in XAML markup with markup extensions.To declare a data binding,you must specify the data's source.If it's another element in the XAML markup,you use property ElementName;otherwise,you use Source.
D)Many controls have built-in support for data binding,and do not require a separate Binding object.A ListView,for example,has an ItemsSource property that specifies the data source of the ListView's items-when you set ItemsSource to a collection of data,the objects in the collection automatically become the items in the ListView.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
26
Which of the following statements is false?
A)Styles and data templates are Windows 8 UI resources.
B)A Page's resources are defined in the Page.Resources element.
C)If you define a style as a Page resource,then any element in the Page can use that style.
D)If you define a style as a resource of a layout container,then the elements of all layout container on the screen can use that style.
A)Styles and data templates are Windows 8 UI resources.
B)A Page's resources are defined in the Page.Resources element.
C)If you define a style as a Page resource,then any element in the Page can use that style.
D)If you define a style as a resource of a layout container,then the elements of all layout container on the screen can use that style.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
27
Which of the following statements is false?
A)Various events occur during an app's lifecycle.
B)The Suspending event occurs when an app transitions to the suspended state.
C)Usually the Suspending event occurs because the app is no longer visible on the screen.This typically occurs when the user exits another app.
D)The Resuming event occurs when the app transitions from suspended to running.
A)Various events occur during an app's lifecycle.
B)The Suspending event occurs when an app transitions to the suspended state.
C)Usually the Suspending event occurs because the app is no longer visible on the screen.This typically occurs when the user exits another app.
D)The Resuming event occurs when the app transitions from suspended to running.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck
28
Which of the following statements is false?
A)The PointerEntered event indicates that the pointer entered an element's bounds.
B)The PointerExited event indicates that the pointer exited an element's bounds.
C)The PointerMoved event indicates that the pointer moved within an element's bounds.
D)The PointerPressed event indicates that a key was pressed.
A)The PointerEntered event indicates that the pointer entered an element's bounds.
B)The PointerExited event indicates that the pointer exited an element's bounds.
C)The PointerMoved event indicates that the pointer moved within an element's bounds.
D)The PointerPressed event indicates that a key was pressed.
Unlock Deck
Unlock for access to all 28 flashcards in this deck.
Unlock Deck
k this deck