70-491 Premium Bundle

70-491 Premium Bundle

Recertification for MCSD: Windows Store Apps using C# Certification Exam

4.5 
(18960 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

Microsoft 70-491 Free Practice Questions

Q1. - (Topic 9) 

You are developing a Windows Store app. 

You need to create a service for the app to receive push notifications from Windows Push Notification Services (WNS). 

Which tool should you use? 

A. The Manifest Designer 

B. The Developer Dashboard 

C. The Microsoft Visual Studio XML Editor 

D. The Windows App Certification Kit 

Answer:

Q2. - (Topic 9) 

You are developing a Windows Store app that allows users to record audio and video files and save them to their devices. 

You have the following requirements: 

. The audio and video files must be shorter than three minutes in duration. 

. The app must finalize recording automatically when the time limit is reached. 

. You cannot use continuous polling to test when the time limit is reached. 

You need to ensure that the app meets the requirements. 

What should you do? 

A. Handle the RecordLimitationExceeded event. 

B. Assign a handler lo the DefaultAudioCaptureDeviceChanged event. 

C. Handle the AudioTransferRequested event. 

D. Call the StopRecordAsyncO method. 

Answer:

Q3. - (Topic 9) 

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:

Q4. - (Topic 9) 

You are developing a Windows Store app. 

The app contains a page named MainPage. The page contains a media element named videoPlayer. 

You need to provide users with the ability to play the contents of videoPlayer on different devices by using the Devices charm. 

Which two code segments should you add to the OnNavigateTo event handler on MainPage? (Each correct answer presents part of the solution. Choose two.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer: B,D 

Explanation: http://msdn.microsoft.com/en-us/library/windows/apps/windows.media.playto.playtosource.aspx 

http://msdn.microsoft.com/en-us/library/windows/apps/windows.media.playto.playtosourceselectedeventargs.aspx 

Q5. - (Topic 5) 

You need to protect the metadata for the secure documents. 

Which protection descriptor should you use for the DataProtectionProvider object? 

A. SID 

B. WEBCREDENTIALS=userrpassword 

C. LOCAL=user 

D. USER=current 

Answer:

Explanation: http://msdn.microsoft.com/en-us/library/windows/apps/windows.security.cryptography.dataprotection.dataprotectionprovi der.aspx 

Q6. - (Topic 9) 

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:

Explanation: The task of storing and retrieving user credentials securely and allowing user credentials roam at no cost with the user’s 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. 

Q7. - (Topic 9) 

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:

Q8. HOTSPOT - (Topic 9) 

You are developing a Windows Store app to check the weather. 

You need to ensure the app polls an external web service once per hour for tile updates. 

You have the following code: 

Which code snippet should you insert in Target 1 to complete the code? (To answer, select the correct code snippet from the dropdown list in the answer area.) 

Answer:  

Q9. HOTSPOT - (Topic 9) 

You are developing a Windows Store app. 

You configure the app to support AutoPlay when a portable media player is connected to a 

Windows 8.1 device. 

You need to verify whether the app was initiated from AutoPlay. 

What code should you add to the OnActivated event handler? (To answer, select the 

appropriate options in the answer area.) 

Answer:  

Q10. - (Topic 4) 

You need to configure the Picture Sharer app to support only the required device orientations. 

What should you do? 

A. In the App.xaml file, configure the Portrait and Portrait-flipped orientations. 

B. In the Package.appxmanifest file, configure the Snapped and Filled orientations. 

C. In the PictureSharerMainPage.xaml file, configure the Landscape and Landscape-flipped orientations. 

D. In the App.xaml file, configure the Portrait and Landscape orientations. 

E. In the App.manifest file, configure the Portrait and Portrait-flipped orientations. 

F. In the Package.appxmanifest file, configure the Landscape and Landscape-flipped orientations. 

Answer:

Q11. DRAG DROP - (Topic 9) 

You are developing your first Windows Store app and submitting it to the Windows Store. 

The app uses a cloud server to send notifications by using Windows Push Notification 

Service (WNS). 

You need to authenticate the cloud server with WNS. 

Which five 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.) 

Answer:  

Q12. DRAG DROP - (Topic 9) 

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:  

Q13. - (Topic 7) 

You need to implement a custom control to display thumbnail images of video clips. Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.control.defaultstylekey.aspx 

Q14. - (Topic 8) 

You need to access the remote image data according to the requirements. 

Which data storage methods should you use? 

A. SaveDataToSqlAzureStorage() and GetDataFromSqlAzureStorage() 

B. SaveDataToRemoteStorage() and GetDataFromRemoteStorage() 

C. SaveDataToAzureStorage() and GetDataFromAzureStorage() 

D. SaveDataToWebService() and GetDataFromWebService() 

Answer:

Q15. - (Topic 9) 

You are developing a Windows Store app. 

The app will store user names and passwords by using Windows Azure. 

You need to recommend a method to store the passwords. The solution must minimize the likelihood that the passwords will be compromised. 

Which algorithm should you recommend using? 

A. 3DES 

B. DES 

C. AES 

D. SHA512 

Answer:

Reference: 

http://apps.microsoft.com/windows/en-us/app/sha-512-encoder/6be865f2-4673-47c6-9354-1865c2ef82fe 

Q16. DRAG DROP - (Topic 5) 

You need to meet the app caching requirements. 

Which caching technique should you use in each scenario? (To answer, drag the appropriate technique to the correct scenario. Each technique 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:  

Q17. DRAG DROP - (Topic 9) 

You are developing a Windows Store app. 

You need to create and run unit tests for the app. 

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,) 

Answer:  

Q18. DRAG DROP - (Topic 9) 

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:  

START 70-491 EXAM