Microsoft Advanced Windows Store App Dev using HTML5 and JavaScript (70-482) Free Practice Test
Question 1
DRAG DROP
You are developing a Windows Store app that will display a list of items. Users should be able to expand any list item to display valid actions for that item.
The JavaScript code includes the following elements:
elemExpand represents the element to be expanded.
elemAffected represents the adjacent element.
You need to animate the expansion action when the user clicks a list item.
Which three code segments should you use in sequence? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order. 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.

You are developing a Windows Store app that will display a list of items. Users should be able to expand any list item to display valid actions for that item.
The JavaScript code includes the following elements:
elemExpand represents the element to be expanded.
elemAffected represents the adjacent element.
You need to animate the expansion action when the user clicks a list item.
Which three code segments should you use in sequence? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order. 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.

Correct Answer:

Question 2
You are developing a Windows Store app that will access a device's webcam. All necessary device capabilities have been declared in the app manifest.
The app must not throw an error if the user has declined or revoked permission to the webcam.
You need to identify whether the app has permission to use the webcam.
What should you do?
The app must not throw an error if the user has declined or revoked permission to the webcam.
You need to identify whether the app has permission to use the webcam.
What should you do?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
DRAG DROP
A Microsoft Visual Studio solution contains a Windows Store app project that is written by using JavaScript code. You add a Windows Runtime Metadata file named Contoso.winmd to the solution. The WinMD component is written by using C# code.
The Windows Store app must consume the WinMD component.
You need to ensure that IntelliSense can identify the methods of the WinMD component as soon as possible.
In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

A Microsoft Visual Studio solution contains a Windows Store app project that is written by using JavaScript code. You add a Windows Runtime Metadata file named Contoso.winmd to the solution. The WinMD component is written by using C# code.
The Windows Store app must consume the WinMD component.
You need to ensure that IntelliSense can identify the methods of the WinMD component as soon as possible.
In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

Correct Answer:

Question 4
DRAG DROP
You are developing a Windows Store app.
The app must meet the following requirements:
- Be available for a time-limited free trial.
- Prompt the user to buy the full version when the trial expires. You need to ensure that the requirements are met.
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.)

You are developing a Windows Store app.
The app must meet the following requirements:
- Be available for a time-limited free trial.
- Prompt the user to buy the full version when the trial expires. You need to ensure that the requirements are met.
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.)

Correct Answer:

Question 5
You need to implement the file storage solution for equipment drivers and updates.
What should you do?
What should you do?
Correct Answer: C
Question 6
HOTSPOT
You need to enable the connection to the equipment.
Which app capability should you declare? To answer, select the appropriate check box in the dialog box in the answer area.

You need to enable the connection to the equipment.
Which app capability should you declare? To answer, select the appropriate check box in the dialog box in the answer area.

Correct Answer:

Question 7
You need to ensure that the custom printer interfaces and the Printer Survey task communicate correctly.
What should you do?

What should you do?

Correct Answer: A
Question 8
----
You are developing a fitness app for distribution through the Windows Store.
The app must interact with the following USB device classes:
Webcam
Infrared thermometer
Scale
Printer
You need to modify the app manifest file as required to support the devices.
Which two device classes should you include? Each correct answer presents part of the solution.
You are developing a fitness app for distribution through the Windows Store.
The app must interact with the following USB device classes:
Webcam
Infrared thermometer
Scale
Printer
You need to modify the app manifest file as required to support the devices.
Which two device classes should you include? Each correct answer presents part of the solution.
Correct Answer: A,D
Question 9
You are developing an app that plays one audio file named myAudio.mp3 and two video
files named myVideol.mp4 and myVideo2.mp4.
You have the following requirements: - The audio file must NOT have access to the Play To feature. - The video files must be able to use the Play To feature. You need to configure the app to meet the requirements.
Which code or markup segment should you use?

files named myVideol.mp4 and myVideo2.mp4.
You have the following requirements: - The audio file must NOT have access to the Play To feature. - The video files must be able to use the Play To feature. You need to configure the app to meet the requirements.
Which code or markup segment should you use?

Correct Answer: B
Question 10
You are developing a Windows Store app that uses Windows Push Notification Services (WNS).
The app includes the following code:

You need to initiate polling.
Which code segment should you insert at line 05?

The app includes the following code:

You need to initiate polling.
Which code segment should you insert at line 05?

Correct Answer: D
Question 11
You need to ensure that the Printer Survey task populates the map pinpoints according to the requirements.
Which code segment should you insert at line PM31?

Which code segment should you insert at line PM31?

Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 12
DRAG DROP
You are developing a Windows Store app by using JavaScript. The app will use the fileStream object to write text to a file.
You need to write the text to the file and ensure that the file is available to other apps.
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.)

You are developing a Windows Store app by using JavaScript. The app will use the fileStream object to write text to a file.
You need to write the text to the file and ensure that the file is available to other apps.
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.)

Correct Answer:

Question 13
DRAG DROP
You are developing a Windows Store app for an airline. The app will provide current flight
status information.
The app will display the flight status on the lock screen if the user grants permission.
You have the following requirements:
- Display a dialog box that requests access to the lock screen. - Display a message that indicates whether the user has granted access to the lock screen.
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.)

You are developing a Windows Store app for an airline. The app will provide current flight
status information.
The app will display the flight status on the lock screen if the user grants permission.
You have the following requirements:
- Display a dialog box that requests access to the lock screen. - Display a message that indicates whether the user has granted access to the lock screen.
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.)

Correct Answer:

Question 14
HOTSPOT
You are developing a Windows Store app that uses the Microsoft in-app purchase functionality.
You need to display a list of features that can be purchased from within the app.
How should you complete the relevant code? (To answer, select the correct code segment from each drop-down list in the answer area.)


You are developing a Windows Store app that uses the Microsoft in-app purchase functionality.
You need to display a list of features that can be purchased from within the app.
How should you complete the relevant code? (To answer, select the correct code segment from each drop-down list in the answer area.)


Correct Answer:
