Essentials of Developing Windows Store Apps using HTML5 and JavaScript v7.0 (70-481)

Page:    1 / 8   
Total 116 questions

You are developing a Windows Store app that includes a handler for the onactivated event.
A portion of the event handler is shown in the following code. (Line numbers are included for reference only.)


You need to ensure that the app responds to printing requests from the Devices charm.
Which code segment should you insert at line 04?

  • A. printManager.printer.onprinttaskreguested = onPrint; printManager.printer. showPrintUIAsync ();
  • B. printManager.onPrint = onPrint;
  • C. printManager.onprinttaskrequested = onPrint;
  • D. printManager.printer.showPrintUIAsync ();


Answer : C

You develop a Windows Store app. The app is a memory game that displays a 6x6 grid of squares.
When the user taps or swipes a square, the square must flip over to display an image.
When testing the app, you find that swiping the tile does not cause it to flip over.
You need to ensure that the game responds correctly to user input.
Which event should you listen for?

  • A. MSGestureChange
  • B. pointerup
  • C. pointermove
  • D. pointerout


Answer : A

You develop a Windows Store app that uses a peer-to-peer scenario. You submit the app to the Windows Store.
The app fails Windows Store certification.
You need to ensure that the app meets Windows Store certification guidelines.
What should you do?

  • A. Enable the Proximity capability in the app manifest.
  • B. In the Settings charm for the app, include a link to the privacy policy.
  • C. Enable the Shared User Certificates capability in the app manifest.
  • D. Enable the Location capability in the app manifest.


Answer : B

You are developing a Windows Store app that will be used to display daily high temperatures and other weather conditions for five cities.
The app must meet the following requirements:
-> A splash screen is displayed on the device until the data is retrieved from the
Internet.
-> The user must be able to view weather information as soon as the data is fully available.
You need to ensure that the splash screen is displayed at startup until the app has completed loading updated data.
Which actions can you perform to achieve this goal? (Each correct answer presents a complete solution. Choose all that apply.)

  • A. Configure settings in the app manifest to display the splash screen until the data is fully available.
  • B. Create an image that duplicates the splash screen, load the image from the dismissed event of the splash screen, and display the image until the data is fully available.
  • C. Create an image that duplicates the splash screen, and display the image by using fragment loading until the data is fully available.
  • D. Configure settings in the app manifest to display the splash screen for 10 seconds.


Answer : C,D

You are designing a Windows Store app. The app displays prices and other information for various stocks.
The app must allow the user to perform the following actions:
-> Add and remove stocks.
-> Search by stocks name.
-> Display information about stocks.
You need to add the appropriate features to the app bar.
Which features should you add to the app bar? (To answer, drag the appropriate features to the correct locations in the answer area. Each feature 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:
* Use the app bar
Use the app bar to display commands to users on-demand. The app bar shows commands relevant to the user's context, usually the current page, or the current selection.
* Use context menus
You can use context menus for clipboard actions (like cut, copy, and paste), or for commands that apply to content that cannot be selected (like an image on a web page).
* Use the charms
Leverage the charm and app contracts to enable common app commands. Avoid duplicating app contract functionality on your app's canvas or in the app bar.
/ Search: Let your users quickly search through your app's content from anywhere in the system, including other apps. And vice versa.
/ Share: Let your users share content from your app with other people or apps, and receive shared content.
/ Devices: Let your users enjoy audio, video, or images streamed from your app to other devices in their home network.
/ Settings: Consolidate all of your settings under one roof and let users configure your app with common mechanism they're already be familiar with.
* Use the canvas
Users should be able to complete the core scenarios just by using the canvas. Whenever possible, let users directly manipulate the content on the app's canvas, rather than adding commands that act on the content.
For example, in a Restaurant browsing app, finding and viewing restaurant details should be done on the canvas by tapping, panning, or selecting content.

You are developing a Windows Store app.
You need to ensure that unauthenticated users are redirected to the login screen when they attempt to navigate to secure pages
Which navigation member should you use?

  • A. canGoBack
  • B. onbeforenavigate
  • C. canGoForward
  • D. onnavigated


Answer : B

You are developing a Windows Store app that will display and track tasks that a user must complete. The app uses two ListView controls. One ListView control displays incomplete task items. The other ListView control displays completed task items.
The user must be able to:
-> Add new tasks to the list of incomplete tasks.
-> Remove tasks from either list.
-> Mark tasks as complete.
You need to ensure that users can drag items from the incomplete tasks list to the completed tasks list.
How should you complete the relevant HTML markup? To answer, drag the appropriate markup segment to the correct targets. Each markup 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 :

Explanation:


C:\Users\Kamran\Desktop\image.jpg

You are developing a Windows Store app. The app includes a handler for the suggestionsrequested event.
The empty event handler is shown in the following code. (Line numbers are included for reference only.)


The app must meet the following requirements:
-> Provide an app-defined list of choices in the Search pane that responds to user query text changes.
-> Provide suggested search topics only when the user enters a query that contains the text "products".
You need to add code to meet the requirements.
Which code segment should you insert at line 02?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : B

You are developing a Windows Store app by using HTML5 and JavaScript.
You need to list all the keyboard, stylus, mouse, and touch input devices that are connected to the local computer system.
Which Windows library should you use?

  • A. Windows.UI.Input
  • B. Windows.Media.Devices
  • C. Windows.Devices.Enumeration
  • D. Windows.Devices.Input


Answer : D

You are developing a Windows Store app that allows the user to write reviews for a company's products.
The product selection page must switch to a vertical list layout when the app is snapped.
You need to ensure that the product layout is updated.
Which four 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 :

Explanation:
Box 1:


Box 2:

Box 3:

Box 4:

Note:
Step 1: We need to set up the event handler for any Viewstate changes.
This got a lot simpler for the Windows 8 Release Preview. We need only add an event listener to the window resize event like so: window.addEventListener("resize", onViewStateChanged);
Step 2-3:
WhenonViewStateChangedruns it enumerates through all available viewstates and passes the current view state to a custom function.
Example code:
When onViewStateChanged runs it enumerates through all available viewstates and passes the current view state to a custom function I call showMenu. function onViewStateChanged(eventArgs) { var viewStates = Windows.UI.ViewManagement.ApplicationViewState, msg; var newViewState = Windows.UI.ViewManagement.ApplicationView.value; if (newViewState === viewStates.snapped) { showMenu('snapped');
} elseif (newViewState === viewStates.filled) {
showMenu('filled');
} elseif (newViewState === viewStates.fullScreenLandscape) {
showMenu('landscape');
} elseif (newViewState === viewStates.fullScreenPortrait) {
//Currently not supported
}
Step 4: Finally handle the layout changes
* ApplicationViewState enumeration specifies the set of app view state changes that can be handled.
The ApplicationViewState enumeration has these members.
A)FullScreenLandscape | fullScreenLandscape0
The current app's view is in full-screen (has no snapped app adjacent to it), and has changed to landscape orientation.

B) Filled | filled1 -
The current app's view has been reduced to a partial screen view as the result of another app snapping.

C) Snapped | snapped2 -
The current app's view has been snapped.
D) FullScreenPortrait | fullScreenPortrait3
The current app's view is in full-screen (has no snapped app adjacent to it), and has changed to portrait orientation.

You are developing a Windows Store app.
Users must be able to initiate searches by using the Search charm. The app must display the search text in a DIV element named searchBox.
You need to add code to meet this requirement.
Which code segment should you add?


  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : B

You are developing a Windows Store app. The app will format a paragraph of text to resemble the following image.


The app must format the paragraph to meet the following requirements:
-> The paragraph must be divided among three columns.
-> Columns must be separated by vertical lines that are one pixel wide.
You need to ensure that the format of the paragraph meets the requirements.
Which code segment should you add?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : C

You develop a Windows Store app that displays information for a multi-day conference.
You use a ListView control to display the list of available sessions.
Users must be able to group sessions by track, by speaker, or by day.
You need to ensure that users can select sessions and add sessions to their calendars.
Which contract or extension should you use?

  • A. Contact Picker
  • B. Calendar Picker
  • C. Appointment Manager
  • D. Contact Manager


Answer : C

You develop a Windows Store app that plays music files stored locally on your computer.
The app contains the following HTML markup. Line numbers are included for reference only.


You need to ensure that users can play music when the app is NOT displayed on the screen.
What should you do?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : D

You are developing a Windows Store game. The Menu page displays when the game launches. The Game page displays when you launch a game. The Game page reloads each time the player chooses an incorrect answer.
The following code segment runs each time the user navigates to the Game page. Line numbers are included for reference only.


For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.



Answer :

Explanation:


C:\Users\Kamran\Desktop\image.jpg

Page:    1 / 8   
Total 116 questions