PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segments should you use?

HOTSPOT
You are developing a Windows Store weather app. Youneed to restore the state of the app while the appis
being reactivated. Which code segments should you use? (To answer, drag the appropriate code segments to
the correct locations in the answer area. Each codesegment may be used once, more than once, or not at all.
You may need to drag the split bar between panes orscroll to view content.)

How should you distribute the code?

You are developing a Windows Store app.
You are using the Model-View-ViewModel (MVVM) architectural pattern to design the app.
You need to identify the type of code to place in each layer.
How should you distribute the 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.

Which three code segments should you insert in sequence at line 09?

You are developing an application that includes a class named Warehouse. The Warehouse class includes
a static property named Inventory- The Warehouse class is defined by the following code segment. (Line
numbers are included for reference only.)

You have the following requirements:
-Initialize the _inventory field to an Inventory instance.
-Initialize the _inventory field only once.
-Ensure that the application code acquires a lock only when the _inventory object must be instantiated.
You need to meet the requirements.
Which three code segments should you insert in sequence at line 09? (To answer, move the appropriate
code segments from the list of code segments to theanswer area and arrange them in the correct order.)

Which actions can you perform to achieve this goal?

You are developing a Windows Store app that will beused 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 usermust 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.)

How should you complete the relevant code?

You are developing a Windows Store app.
You need to create a class that handles INotifyPropertyChanqed events.
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 maybe used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)

Which CSS segment should you add to the style sheet?

You are developing a Windows Store app. The app includes the following HTML markup:

You are creating a Flexible Box layout for the application. The layout must be configured as shown in the
following display.

The Flexible Box layout must conform to the following requirements:
The Child2 DIV element must appear on the right side of the layout. The Child1 DIV element must appear
immediately to the left of Child2. You need to add CSS to ensure that the requirements are met. Which CSS
segment should you add to the style sheet?