70-491 Premium Bundle

70-491 Premium Bundle

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

4.5 
(20925 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

Microsoft 70-491 Free Practice Questions

Q1. - (Topic 9) 

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: C,D 

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

Q2. DRAG DROP - (Topic 9) 

You are developing a Windows Store app. 

You need to identify the effects of applying Microsoft design principles to the user interface. 

Which effects result from the design principles? (To answer, drag the appropriate effects to the correct locations in the answer area. Each effect 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:  

Q3. - (Topic 9) 

You are developing a Windows Store app. 

You declare a Search declaration in the app manifest and you add a search results page. 

You plan to display search results by using a Query Text property that derives from EventArgs, 

You need to ensure that users can use the Search charm to search for content within the app. 

What should you do? 

A. Add an event handler for the SearchPane.QuerySubmitted event to App.xaml.cs. Register the event handler in the constructor of the page. 

B. Add an event handler for the SearchPane.QueryChanged event to MainPage.xaml.es. Register the event handler in the OnWindowCreated method in MainPage.xaml.es. 

C. Add an event handler for the SearchPane.QuerySubmitted event to MainPage.xaml.es. Register the event handler in the OnWindowCreated method in MainPage.xaml.es. 

D. Add an event handler for the SearchPane.QuerySubmitted event to App.xaml.cs. Register the event handler in the OnWindowCreated method of the page. 

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 and a button named btnPlayTo. You need to provide users with the ability to select a device that will display the contents of 

videoPlayer when they click btnPlayTo. 

Which code segment should you add to the Click event handler of btnPlayTo? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

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

Q5. DRAG DROP - (Topic 9) 

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:  

Q6. - (Topic 9) 

You are developing a Windows Store app that beeps when a device is turned upside down. 

You need to identify which type of sensor to use for the app. 

Which sensor should you identify? 

A. GPS 

B. Inclinometer 

C. Accelerometer 

D. Gyrometer 

Answer:

Q7. - (Topic 9) 

You are developing a Windows Store app that will provide users with the ability to create photos by using the hardware on a device. 

Once the users create the photos, they can save the photos to the Pictures library. 

If the users sign in by using a Microsoft account, they can grant other users remote access to the photos. 

You need to identify which capabilities must be enabled for the app. 

Which three capabilities should you identify? (Each correct answer presents part of the solution. Choose three.) 

A. Webcam 

B. Pictures Library 

C. Proximity 

D. Internet (Client & Server) 

E. Private Networks (Client & Server) 

F. Enterprise Authentication 

Answer: A,B,D 

Explanation: A: The webcam capability provides access to the webcam’s video feed, which allows the app to capture snapshots and movies from a connected webcam. 

B: The picturesLibrary capability provides programmatic access to the user's Pictures, allowing the app to enumerate and access all files in the library without user interaction. This capability is typically used in photo playback apps that need to access the entire Pictures library. 

D: Internet and public networks The internetClient capability provides outbound access to the Internet and public networks through the firewall. Almost all web apps use this capability. The internetClientServer capability provides inbound and outbound access to the Internet and public networks through the firewall. 

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

Q8. - (Topic 9) 

You are developing a Windows Store app that accesses a USB Human Interface Device (HID). The app has a default page and a settings page. 

You need to ensure that when a user connects the USB device, the app starts automatically and opens the settings page. 

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) 

A. Override the OnLaunched method in the Application class and use the ApplicationViewEventArgs interface. 

B. Add a File Type Associations declaration to the app manifest. 

C. Add a Removable Storage capability to the app manifest. 

D. Override the OnActivated method in the Application class and use the ActivatedEventArgs interface. 

E. Add an AutoPlay Device declaration to the app manifest. 

Answer: A,D 

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

Q9. HOTSPOT - (Topic 9) 

You are developing a Windows Store app. 

The app will use certificates issued by a standalone certification authority (CA) for authentication. The standalone CA certificate is stored in a file named Ca.cer. You need to configure the app manifest to ensure that the app can use certificates issued by the standalone CA. 

You have the following XAML markup in the app manifest: 

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

Answer:  

Q10. DRAG DROP - (Topic 9) 

You are developing a Windows Store app. 

The app has the following accessibility requirements: . The automation name of each text box must be the same as the text box caption. . Each Label element must be associated with its corresponding text box. You need to create an interface that meets the requirements. 

You have the following code: 

Which code snippets should you include 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:  

Q11. - (Topic 9) 

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:

Q12. DRAG DROP - (Topic 9) 

You are developing a Windows Store app named App1. 

You need to ensure that App1 meets the following requirements: 

. Must be able to display a list of items in rows and columns. 

. Must be able to display items one at a time. 

What should you use for each requirement? (To answer, drag the appropriate elements to the correct requirements. 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:  

Q13. - (Topic 3) 

You place a breakpoint at line MP31 in the app. 

When you debug the app, the debugger continuously catches a 

System.UnauthorizedAccess exception. 

You need to resolve the exception. 

What should you do? 

A. Wrap lines CE43 through CE46 in a try-catch statement. 

B. At line MP10, change the code segment to the following line of code. 

read if(cameraUI != null) 

C. Move line CE09 to CE16. 

D. At line PA25, insert the following line of code. <Capability Name="picturesLibrary"/> 

Answer:

Explanation: 

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

Q14. - (Topic 9) 

You are developing a Windows Store app. 

The app will store data in a text file. 

You create the following method to store encrypted text in the text file: 

The WriteData method writes the contents of an IBuffer object to a StorageFile object. 

You need to recommend a solution to encrypt the data. The solution must minimize the use 

of system resources and must ensure that the app can decrypt the data. 

Which code segment should you recommend adding to line 06? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q15. - (Topic 6) 

You need to implement storage for the user preferences. 

Which storage solutions can you use to meet the specification for the app? (Each correct answer presents a complete solution. Choose all that apply.) 

A. TheWindows.Storage.StorageItemType object 

B. TheWindows.Storage.ApplicationData.Current.RoamingSettings object 

C. Windows Azure 

D. The await Windows.Storage.ApplicationData.Current.LocalFolder method 

Answer: A,D 

Explanation: * Scenario: The app will run locally on the user's device. User preferences will be available locally. 

Q16. DRAG DROP - (Topic 9) 

You need to develop an app to measure whether a surface is level. The app will be used on devices that have a gyrometer. 

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:  

Q17. - (Topic 9) 

You are developing a Windows Store app. The app has the following requirements: 

. Files must be stored on a device's file system so other Windows Store apps can access them. 

. Additional configuration must be performed to make the location of the files available to other Windows Store apps. 

You need to meet the requirements. 

Where should you store the files? (Each correct answer presents a complete solution. Choose all that apply.) 

A. Removable devices 

B. App data locations 

C. User's download folder 

D. Documents library 

E. App install directory 

Answer: A,E 

Q18. HOTSPOT - (Topic 1) 

You need to write code to comply with the search requirements of the item detail page. 

You have the following code: 

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

Answer:  

START 70-491 EXAM