Which function should you use?
Which data access strategies should you use?
HOTSPOT
You are developing a Windows Store app for purchasing school supplies.
The app has the following storage requirements:
Inventory data must be accessible to the app and over the Internet to external suppliers.
Suppliers will access the data over HTTP by using OData.
App storage for the high volume sales periods must be able to scale rapidly, but at the
lowest possible cost.
Color preferences for the user must be stored on the host device.
You need to choose the appropriate data access strategy for each requirement.
Which data access strategies should you use? (To answer, select the correct option from
each drop-down list in the answer area.)
How should you build the code segment?
Which code segment should you add?
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?
Which lines of code should you use?
You are developing an HTML5 page that has an element with an ID of logo. The page includes the
following HTML.
<code>
<div>
Logo:<br>
<div id=”logo”>
</div>
</div>
</code>
You need to move the logo element lower on the page by five pixels.
Which lines of code should you use? (Each correct answer presents part of the solution. Choose
two.)
Which code segments should you use?
Which line of code should you use?
You are developing a web page by using HTML5 and C5S3. The page includes a <div> tag with the ID
set to validate.
When the page is rendered, the contents of the <div> tag appear on a line separate from the content
above and below it. The rendered page resembles the following graphic.
The page must be rendered so that the <div> tag is not forced to be separate from the other
content. The following graphic shows the correctly rendered output.
You need to ensure that the page is rendered to meet the requirement.
Which line of code should you use?
Which CSS class should you use?
Which code segment should you use?
HOTSPOT
You are creating a web worker for an HTML5 application.
The following tasks must be performed from within the web worker:
Register an event listener for the web worker
Start and stop the web worker
You need to define a function that performs the required tasks.
Which code segment should you use? (To answer, select the appropriate option from the drop-down
list in the answer area.)
Which event should you listen for?
You develop a Windows Store app. The app is a memory game that displays a 6×6 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?