Which code segment should you use?
You are developing an application that uses a third-party JavaScript library named doWork().
The library occasionally throws an “object is null or undefined” error with an error code of
-2146823281.
The application must:
Extract and handle the exceptions thrown by doWork()
Continue normal program execution if other exceptions occur
You need to implement the requirements.
Which code segment should you use?
Which project template should you use?
You are developing a Windows Store app by using Microsoft Visual Studio.
The app must use a flat navigation pattern.
You need to start the app development from a built-in Visual Studio project template.
Which project template should you use?
What is displayed in the alert from line 11?
Which code segment should you insert at line 02?
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?
Which two actions will achieve this goal?
You are developing a web application that consumes services from a third-party application. A web
worker processes the third-party application requests in the background. A page in the application
instantiates the web worker process.
You need to establish two-way communications between the web worker process and the page.
Which two actions will achieve this goal? (Each correct answer presents a complete solution. Choose
two.)
Which property of the StandardDataFormats class should you use?
You are developing a newsreader app that provides users with daily aggregated articles
from popular news sites.
You must allow users to share the URI of the articles.
The app must allow at least one of the following ways to share the URI:
With another Windows Store app
With the user’s default web browser
You need to implement the sharing functionality.
Which property of the StandardDataFormats class should you use?
Which code segment should you use?
You are developing an HTML5 web application that displays customer mailing address information.
The application loads addresses from a web service by using AJAX. The following code defines a
Customer object and loads address data.
You need to implement the loadAddress function.
Which code segment should you use?
Which code segment should you insert at line 04?
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?
Which line of code should you use?
You are developing an HTML5 web page.
The appearance of the text box must change when a user moves the focus to another element on
the page.
You need to develop the page to respond to user action.
Which line of code should you use?
Which code segment should you use?
You are developing a Windows Store app that will play video files stored locally on the user’s
computer. The app will support the Play To feature.
The app includes a button that must programmatically invoke the Play To flyout when
pressed.
You need to ensure that clicking the button displays the Play To flyout.
Which code segment should you use?