70-491 Premium Bundle

70-491 Premium Bundle

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

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

Microsoft 70-491 Free Practice Questions

Q1. HOTSPOT - (Topic 9) 

You are developing a Windows Store app that allows users to copy music from their local computers to removable storage. 

The app displays songs grouped by the month the song was downloaded and allows individual songs to be copied to the removable storage device. The user interface for selecting and copying songs uses data binding. 

You need to load and return songs in a format appropriate for data binding. 

How should you complete the code segment? (To answer, select the appropriate line of code from each drop-down list in the answer area.) 

Answer:  

Q2. DRAG DROP - (Topic 9) 

You are developing a Windows Store social media app. The app communicates with the 

server by using a secure web service. 

You need to ensure that users can securely store and retrieve web service credentials. 

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:  

Q3. DRAG DROP - (Topic 9) 

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:  

Q4. DRAG DROP - (Topic 9) 

You are developing a Windows Store app. 

The app will provide users with the ability to play music remotely on another user's device 

and then the other users will guess the name of the song. 

You need to access the music storage and to retrieve files and folders. 

You have the following code: 

Which elements should you include in Target 1, Target 2, Target 3 and Target 4 to complete the code? (To answer, drag the appropriate elements to the correct targets in the answer area. 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:  

Q5. - (Topic 9) 

You are developing a Windows Store app that will provide users with the ability to save annotations to text files. 

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

You need to add the contents of data to the beginning of file. Which code segment should you insert at line 03? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q6. - (Topic 9) 

You are developing a Windows Store app that includes the following controls: 

. The ApplicationView control, which is entirely opaque, displays content that the app displays under normal circumstances. 

. The MessageView control, parts of which are transparent displays information messages in exceptional circumstances. 

You are creating an app page that includes the ApplicationView and MessageView controls. 

When both controls are visible, you have the following requirements: 

. The controls must expand to fill the entire page. . The ApplicationView control must be recognizable through the transparent portions of the MessageView control. 

You need to create the page content. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q7. - (Topic 6) 

You need to create a custom template for a Listview control that will be located on a page that has the NewsSource object bound to the DataContext property. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q8. - (Topic 9) 

You are designing a Windows Store app to manage image and video files. 

The app must meet the following requirements: 

Video files must be stored locally on each device. 

The app must use local storage for data caching. 

User settings must be shared across multiple devices. 

Image files must be available across multiple devices. 

Metadata for images must be stored in a central database. 

Image files, video files, and their associated metadata must load as quickly as 

possible. 

You need to identify which data must be cached based on the app requirements. 

Which two types of data should you identify? (Each correct answer presents part of the solution. Choose two.) 

A. User settings 

B. Video files 

C. Image files 

D. Metadata 

Answer: C,D 

Explanation: Image files, video files, and their associated metadata must load as quickly as possible. http://msdn.microsoft.com/en-us/library/windows/desktop/aa365201(v=vs.85).aspx 

Q9. 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:  

Q10. - (Topic 6) 

You need to make available the content that is provided by the design team. Which markup segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q11. - (Topic 9) 

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:

Q12. HOTSPOT - (Topic 9) 

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:  

Q13. HOTSPOT - (Topic 9) 

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:  

Q14. DRAG DROP - (Topic 3) 

You need to allow users to capture video instead of photos. 

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:  

Q15. DRAG DROP - (Topic 9) 

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:  

Q16. - (Topic 9) 

You are developing a Windows Store app named GeoLoc. You have the following code: 

When you run the app on some devices, you receive the following error message: "An exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll but was not handled in user code." 

You need to resolve the issue that causes the exception to occur. 

Which file should you modify? 

A. Package.appxmanifest 

B. Assemblyinfo.es 

C. App.xaml 

D. Geoloc.csproj 

Answer:

Q17. DRAG DROP - (Topic 9) 

You are developing an augmented reality app. 

You need to retrieve the direction to which the device points. 

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:  

Q18. DRAG DROP - (Topic 9) 

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:  

START 70-491 EXAM