Question No: 61 – (Topic 5)

You are developing a Windows Store app that will be used to manage contacts.

You need to provide users with the ability to add contacts by using the app. All new contacts must be visible in the people hub.

Which class should you use to add the contact?

ContactPicker

ContactManager

ContactPickerUI

ContactXnformation

Answer: B

Explanation: ContactManager class

Represents a service that source apps can call to access contact data.

Question No: 62 – (Topic 5)

You are developing a Windows Store multiplayer game.

You need to create a toast notification that will display character profile images, in-game screenshots, and player information when the game is not active.

Which code segment should you use?

Option A

Option B

Option C

Option D

Answer: B

Question No: 63 – (Topic 5)

You are developing a medical recordkeeping app for a company. The app will be used by physicians in remote areas of the world.

All data is highly sensitive and must be stored only in the company#39;s internal data center. The app is not allowed to connect directly to the company#39;s web service or internal network.

You need to select a data access strategy that meets the requirements. Which remote data access strategy should you use?

Connect to the company#39;s web service framework by using Windows Azure Connect.

Use the Windows.Storage.ApplicationData.Current.LocalSettings data store.

Connect to Windows Azure Mobile Services and store the data in a SQL Azure database.

Connect to a SQL Azure database and use SQL Data Sync.

Answer: A

Question No: 64 DRAG DROP – (Topic 5)

You are developing a Windows Store app that will make calls to a web service.

The app must read and write the web service URI to and from configuration settings. The configuration settings must follow the user so that when the app makes calls to the web service, it calls the same URI, regardless of which device the user is using.

You need to retrieve and store the web service URI. You have the following code:

Which code snippets should you insert in Target 1 and Target 2 to complete the code? (To answer, drag the appropriate code snippets to the correct targets in the answer area. Each code snippet may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

Answer:

Explanation:

C:\Users\Kamran\Desktop\image.jpg

Question No: 65 DRAG DROP – (Topic 5)

You are developing a Windows Store app.

You are using the Model-View-ViewModel (MVVM) architectural pattern to design the app. You need to identify the type of code to place in each layer.

How should you distribute the 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 or scroll to view content.)

Answer:

Explanation:

C:\Users\Kamran\Desktop\image.jpg

Note:

Model: as in the classic MVC pattern, the model refers to either (a) a domain model which represents the real state content (an object-oriented approach), or (b) the data access layer that represents that content (a data-centric approach).

View: as in the classic MVC pattern, the view refers to all elements displayed by the GUI such as buttons, labels, and other controls.

View model: the view model is a “model of the view” meaning it is an abstraction of the view that also serves in mediating between the view and the model which is the target of the view data bindings.

Question No: 66 – (Topic 5)

You are developing a Windows Store app.

You create a custom control named AppSettingsFlyout, which is inherited from the SettingsFlyout control.

You need to ensure that the Settings flyout of the app is available from the charm bar. When the flyout is dismissed, users must be returned to the Settings pane.

You have the following code. (Line numbers are included for reference only.)

Which code segment should you insert at line 05?

updatesFlyout.Show();

ApplicationSettings.SettingsPane.GetForCurrentView();

ApplicationSettings.SettingsPane.Show();

updatesFlyout.Showlndependent();

Answer: A

Question No: 67 HOTSPOT – (Topic 5)

You are developing a Windows Store app. App.xaml contains the following XAML markup:

For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Answer:

Explanation:

C:\Users\Kamran\Desktop\image.jpg

Question No: 68 – (Topic 5)

You are developing a Windows Store app that will display a toast notification.

You need to ensure that when a toast notification is displayed, the first line of the notification is bold.

Which template should you use?

TileSquareText03

ToastText01

TileSquarePeeklmageAndText01

ToastImageAndText02

Answer: D

Explanation: ToastImageAndText02

A large image, one string of bold text on the first line, one string of regular text wrapped across the second and third lines.

Question No: 69 DRAG DROP – (Topic 5)

You are creating a Windows Store app.

You need to create a gradient brush that is white in the top left corner to black in the bottom right corner.

You have the following xaml markup. (Line numbers are included for reference only.)

Which XAML markup segments should you insert at lines 02 and 04? (To answer, drag the appropriate XAML markup segment to the correct locations in the answer area. Each XAML markup segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

Answer:

Explanation:

C:\Users\Kamran\Desktop\image.jpg

Question No: 70 DRAG DROP – (Topic 5)

You are developing a Windows Store app.

The app will use a model that is defined by using the following code:

You need to create a class to represent a collection of Customer objects. The class will be used for data binding. The solution must ensure that if changes are made to the objects of the class, a notification will be sent to the user interface (UI) controls to which the collection is bound.

You have the following signature:

public classCustomerList : Target 1lt;Target 2gt;

Which elements should you include in Target 1 and Target 2 to complete the signature for the collection class? (To answer, drag the appropriate elements to the correct targets. Each element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

Answer:

Explanation:

C:\Users\Kamran\Desktop\image.jpg

* In C# and Visual Basic, the generic ObservableCollectionlt;Tgt; class is a good collection choice for data binding, because it implements the INotifyPropertyChanged and INotifyCollectionChanged interfaces.