Which features should you add to the app bar?
HOTSPOT
You are designing a Windows Store app. The app displays prices and other information for various stocks. The
app must allow the user to perform the following actions:
Add and remove stocks.
Search by stocks name.
Display information about stocks.
You need to add the appropriate features to the appbar. Which features should you add to the app bar?(To
answer, drag the appropriate features to the correct locations in the answer area. Each feature may beused
once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view
content.)
Which two code segments can you use to achieve thisgoal?
You are developing an application. The application includes classes named Mammal and Animal and an
interface named IAnimal.
The Mammal class must meet the following requirements:
-It must either inherit from the Animal class or implement the IAnimal interface.
-It must be inheritable by other classes in the application.
You need to ensure that the Mammal class meets the requirements.
Which two code segments can you use to achieve thisgoal? (Each correct answer presents a complete
solution. Choose two.)
How should you complete the relevant code?
You are developing a page for a Windows Store app. The app includes the following event handlers:
– The FillCommands event handler adds context-awarecommands to the app bar.
– The ClearCommands event handler clears context-aware commands from the app bar.
You have the following requirements:
– Fill the app bar when it is shown by using the FillCommands event handler.
– Clear the app bar when it is hidden by using the ClearCommands event handler. You need to subscribe to the
correct events on the app bar to meet the requirements.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct
locations in the answer area. Each code segment maybe used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
How should you complete the relevant code?
You are developing a class named ExtensionMethods.
You need to ensure that the ExtensionMethods class implements the IsEmail() method on string objects.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the
correct locations in the answer area. Each code segment may be used once, more than once, or not at all.
You may need to drag the split bar between panes orscroll to view content.)
Where should you place each command?
HOTSPOT
You are developing a Windows Store app. The app will be used to manage a task list. The app has the
following requirements:
Support commands to add, remove, filter, and select all items in the task list.
Support navigation to the previous screen.
You need to ensure that the commands are placed according to Microsoft design style guidelines. Where
should you place each command? (To answer, drag each command to the correct placement location. Each
answer must be used only once. You may need to dragthe split bar between panes or scroll to view content.)
Which code segment should you insert at line 07?
You are developing an application by using C#. The application includes the following code segment.
(Line numbers are included for reference only.)
The DoWork() method must throw an InvalidCastException exception if the obj object is not of type
IDataContainer when accessing the Data property.
You need to meet the requirements.
Which code segment should you insert at line 07?
Which three actions should you perform in sequence?
You are developing a Windows Store video-sharing app. Videos are represented in the app by a
VideoCollection class that contains a list of videos. The app includes the following code segment:
The app must support grouping by the VideoCollection object.
You need to bind a GridView control that can display and group the videos to a List<VideoCollection> collection
named VideoLibrary.
Which three actions should you perform in sequence?(To answer, move the appropriate actions from the list of
actions to the answer area and arrange them in the correct order.)
Which code segment should you insert at line 10?
An application receives JSON data in the following format:
The application includes the following code segment. (Line numbers are included for reference only.)
You need to ensure that the ConvertToName() method returns the JSON input string as a Name object.
Which code segment should you insert at line 10?
Which code segment should you insert at line 01?
You are developing a Windows Store app. The app will be used on devices that are capable of changing view
states. The app contains the following CSS code segment. (Line numbers are included for reference only.)
The app has the following requirements when the host device is in a landscape orientation:
The app’s client area must be the same height as the device’s height. The app’s client area must be the
same width as the device’s width. You need to ensure that the layout of the device screen meets the
requirements.
Which code segment should you insert at line 01?
Which two actions should you perform?
You are developing an application that includes thefollowing code segment. (Line numbers are
included for reference only.)
The GetCustomers() method must meet the following requirements:
-Connect to a Microsoft SQL Server database.
-Populate Customer objects with data from the database.
-Return an IEnumerable<Customer> collection that contains the populated Customer objects.
You need to meet the requirements.
Which two actions should you perform? (Each correctanswer presents part of the solution. Choose two.)