Recertification for MCSD: Windows Store Apps using C# v6.0

Page:    1 / 7   
Exam contains 98 questions

You are developing a Windows Store app that will be used to access large files stored online.
The files will be shared between users worldwide.
You need to recommend a solution to ensure that the users can download the files as quickly as possible.
Which storage solution should you recommend?

  • A. OneDrive
  • B. Microsoft Azure Mobile Services
  • C. A roaming folder
  • D. Microsoft Azure Content Delivery Network (CDN)


Answer : D

You are developing a page for a Windows Store app.
You have the following requirements for the page:
-> Display a button on the bottom app bar that allows the user to insert a picture. This button must be bound to the Insert command in the view model.
-> Display a button in the main content area of the page that allows the user to open documents. This button must be bound to the Open command in the view model.
You need to ensure that the requirements are met.
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 :

You are developing a Windows Store app.
The app includes the following event procedure:
Void OnSettingsPaneOpened(SettingsPanesettingsPane,
SettingsPaneCommandsRequestedEventArgseventArga)
You need to call the event procedure when the user opens the settings pane.
Which three code segments should you use in sequence? (To answer, move the appropriate code segments to the answer area and arrange them in the correct order.)




Answer :

Explanation:
Box 1: SettingsPanesp = null;
Box 2: sp = SettingsPane.GetForCurrentView();
Box 3: sp.CommandsRequested += OnSettingsPaneOpened;
Note:
* The SettingsPane class is a static class that enables the app to control the Settings
Charm pane. The app can add or remove commands, receive a notification when the user opens the pane, or open the pane programmatically.
* The show method displays the Settings Charm pane to the user.
* The GetForCurrentView method gets a SettingsPane object that is associated with the current app view (that is, with CoreWindow).

You are developing a Windows Store app that includes three objects. A data template named SceneTemplate provides the correct view for all of the objects.
The objects must be rendered as full-screen scenes that users can navigate between by swiping.
You need to create the content of a page that renders each object to meet the requirement.
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 plan to develop several Windows Store apps.
You plan to use a CheckBox control in all of the apps. The CheckBox control will use a custom visual display.
You create XAML markup to customize the control. The code contains all of the necessary visual components for the control, including elements named checkedGlyph and indeterminateGlyph.
You need to ensure that the check box meets the following requirements:
-> If a value for the check box was NOT set, the check box must display indeterminateGlyph.
-> When the check box is selected, the check box must display checkedGlyph.
-> If the check box is cleared, the check box must NOT display any glyphs.
You have the following XAML markup:


Which code snippets should you insert in Target 1, Target 2, Target 3, Target 4, Target 5 and Target 6 to complete the XAML markup? (To answer, select the correct code snippet from each drop-down list in the answer area.)




Answer :

Explanation:

http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465374.aspx

You are creating a Windows Store app that contains a StackPanel named myltemPanel.
You need to ensure that myltemPanel displays contents horizontally when the device is in landscape mode and vertically when the device is in portrait mode.
You have the following code:


Which code snippets should you include in Target 1, Target 2, and Target 3 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 named VideoPlayer.
The app will provide user with the ability to select video files by using the file picker and to play the video.
You need to recommend a solution for the app that meets the following requirements:
-> If the app is terminated while playing a video, the next time the app starts, the video must play.
-> The app must minimize the amount of storage space used.
-> The app must NOT request any capabilities.
What should you include in the recommendation?

  • A. Add the file to AccessCache.StorageApplicationPermissions.MostRecentlyUsedList.
  • B. Store the StorageFile.Path property in ApplicationData.Current.LocalSettings.
  • C. Store the video in ApplicationData.Current.RoamingFolder.
  • D. Store the video in ApplicationData.Current.LocalFolder.


Answer : A

Explanation: http://msdn.microsoft.com/en-
us/library/windows/apps/windows.storage.accesscache.storageapplicationpermissions.mos trecentlyusedlist.aspx

You are developing a Windows Store app that uses the Windows Push Notification Service
(WNS) to provide real-time updates to users. The app uses an HTTP request to authenticate a cloud service to interact with WNS.
The Package Security Identifier (SID) prefix is app://.
Parameter values must be URL encoded.
You need to ensure that the authentication request provides the required parameters.
Which parameters should you use? (To answer, drag the appropriate parameters to the correct location or locations. Each parameter 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:

http://msdn.microsoft.com/en-us/library/windows/apps/hh465407.aspx

You plan to develop a Windows Store app to create pictures.
Users of the app will be able to save the pictures that they create and to share the pictures with friends by using a web link.
You need to ensure that the friends can makes comments on the shared pictures.
Which storage technology should you use? (More than one answer choice may achieve the goal. Select the BEST answer.)

  • A. Roaming storage
  • B. Microsoft Azure blob storage
  • C. Microsoft Azure Mobile Services
  • D. One Drive


Answer : D

You are developing a Windows Store app.
The app receives badge notifications from Windows Push Notification Services (WNS).
You configure the app to establish a communication channel with WNS. You use a variable named pushChannel to store the notification channel object used for communication. You add the following line of code to the app:


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




Answer :

Explanation:
http://msdn.microsoft.com/en-
us/library/windows/apps/windows.networking.pushnotifications.pushnotificationreceivedeve ntargs.aspx

You are developing a Windows Store app.
The app will access a web service.
You need to declare the web service Uniform Resource Identifier (URI).
Which file should you modify?

  • A. AppxManifest
  • B. AppConfig
  • C. WebConfig
  • D. Wsp
  • E. xap


Answer : E

You are developing a Windows Store app.
The app consumes data from a business layer.
You need to develop a unit test.
The test method must ensure that the collection of person objects returned by the business layer meets the following requirements:
-> Always contains elements
-> Orders elements consistently between calls
You have the following code:


Which code snippets should you include in Target 1, Target 2, Target 3 and Target 4 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.
The app will access several web resources that use an OAuth 2.0 authentication provider.
You need to recommend in which class to store user credentials so that users do not have to reenter their credentials when they access the web resources.
Which class should you recommend?

  • A. System.Net.AuthenticationManager
  • B. System.Net.NetworkCredential
  • C. Windows.Security.Credentials.WebAccount
  • D. Windows.Security.Credentials.PasswordVault


Answer : D

Explanation: The task of storing and retrieving user credentials securely and allowing user credentials roam at no cost with the users Microsoft account is simplified with the
Credential Locker.
Storing user credentials in the Credential Locker is a quick, two-step process. 1.Obtain a reference to the Credential Locker using the PasswordVault object from the
Windows.Security.Credentials namespace.
2.Create a PasswordCredential object that contains an identifier for your app, the username and the password, and pass that to the PasswordVault.Add method to add the credential to the locker.

You are developing a Windows Store app to view MP4 videos.
You need to ensure that when a user double-clicks an MP4 file, the app starts and plays back the video automatically.
Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)

  • A. Add the Videos Library capability to the Appxmanifest file.
  • B. Modify the OnActivated event of the App.xaml.cs file to pass ProtocolActivatedEventArgs to the page if ActivatedEventArgs.Kind == ProtocolActivatedEventArgs.
  • C. Add a File Type Associations declaration to the Appxmanifest file.
  • D. Add an OnFileActivated event handler to the App.xaml.cs file.
  • E. Add an AutoPlay Content declaration to the Appxmanifest file.


Answer : CD

Explanation: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj191724.aspx

You are developing a Windows Store app.
The app has the following requirements:
-> Open the Search charm.
-> Provide query suggestions by using the GetSuggestions() method-
You need to ensure that the app meets the requirements. 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:


Note:
* GetForCurrentView
ApplicationView.GetForCurrentView, getForCurrentView method
Applies to Windows and Windows Phone
Gets the window (app view) for the current app.
* AppendQuerySuggestion
Appends a query suggestion to the list of search suggestions for the search pane.

Page:    1 / 7   
Exam contains 98 questions

Talk to us!


Have any questions or issues ? Please dont hesitate to contact us

Certlibrary.com is owned by MBS Tech Limited: Room 1905 Nam Wo Hong Building, 148 Wing Lok Street, Sheung Wan, Hong Kong. Company registration number: 2310926
Certlibrary doesn't offer Real Microsoft Exam Questions. Certlibrary Materials do not contain actual questions and answers from Cisco's Certification Exams.
CFA Institute does not endorse, promote or warrant the accuracy or quality of Certlibrary. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.
Terms & Conditions | Privacy Policy