Essentials of Developing Windows Store Apps using C# v8.0 (70-484)

Page:    1 / 8   
Total 118 questions

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?

  • A. ContactPicker
  • B. ContactManager
  • C. ContactPickerUI
  • D. ContactXnformation


Answer : B

Explanation: ContactManager class
Represents a service that source apps can call to access contact data.

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?


  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : B

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's internal data center.
The app is not allowed to connect directly to the company'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?

  • A. Connect to the company's web service framework by using Windows Azure Connect.
  • B. Use the Windows.Storage.ApplicationData.Current.LocalSettings data store.
  • C. Connect to Windows Azure Mobile Services and store the data in a SQL Azure database.
  • D. Connect to a SQL Azure database and use SQL Data Sync.


Answer : A

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

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.

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?

  • A. updatesFlyout.Show();
  • B. ApplicationSettings.SettingsPane.GetForCurrentView();
  • C. ApplicationSettings.SettingsPane.Show();
  • D. updatesFlyout.Showlndependent();


Answer : A

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

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?

  • A. TileSquareText03
  • B. ToastText01
  • C. TileSquarePeeklmageAndText01
  • D. 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.

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

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 1<Target 2>
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 ObservableCollection<T> class is a good collection choice for data binding, because it implements the INotifyPropertyChanged and
INotifyCollectionChanged interfaces.

You are developing a Windows Store app.
A page contains information that is entered by the user.
You need to ensure that the information is retained on the page if the user navigates away from the page and then returns.
You have the following code:


Which code snippets should you insert in target 1 and target 2 to complete the code? (To answer, select the correct code snippet from each drop-down list in the answer area.)




Answer :

Explanation:


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

You are developing a Windows Store app.
You need to identify the appropriate REST verbs for the app.
Which verbs should you use? (To answer, drag the appropriate verbs to the correct locations in the answer area. Each verb 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

You are developing a Windows Store game. The game allows for interactive online play between users.
The game authenticates users by using the credentials of a third-party site that provides
OAuth2 authentication.
You need to implement authentication that uses an implicit grant authorization.
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 or scroll to view content.)




Answer :

Explanation:
Box 1:


For implicit grant authorization we use TOKEN response type.
Box 2:

Respond with the RequestURL.
Note:
* The implicit grant flow can be used by both web-based and desktop apps. In this flow, the client makes an authorization request to https://login.live.com/oauth20_authorize.srf with request_type=token. This is a standard OAuth 2.0 flow.

You are developing a Windows Store app.
The following code segment defines an event procedure. (Line numbers are included for reference only.)


You need to define a custom help setting in the event procedure.
Which three code segments should you insert in sequence at line 03? (To answer, move the appropriate code segments to the answer area and arrange them in the correct order.)



Answer :

Explanation:
Box 1:


Box 2:

Box 3:

Note:
Example:
void onCommandsRequested(
SettingsPane settingsPane,
SettingsPaneCommandsRequestedEventArgs eventArgs)
{
UICommandInvokedHandler handler = new
UICommandInvokedHandler(onSettingsCommand);
SettingsCommand generalCommand = new SettingsCommand(
"generalSettings", "General", handler);
eventArgs.Request.ApplicationCommands.Add(generalCommand);
SettingsCommand helpCommand = new SettingsCommand("helpPage", "Help", handler); eventArgs.Request.ApplicationCommands.Add(helpCommand);
}

You are developing the manifest for a Windows Store app.
You need to ensure that the app passes all the Windows Store certification requirements.
Which graphic asset must have a transparent background? (To answer, select the appropriate graphic asset in the answer area.)




Answer :

Explanation:


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

Badge logo -
the badge logo of Windows Store app that must be monochromatic with the transparency channel

Page:    1 / 8   
Total 118 questions