PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you insert at line 07?

You are developing an application by using C#. The application includes the following code
segment. (Line numbers are included for reference only.)

The DoWork() method must not throw any exceptions when converting the obj object to the
IDataContainer interface or when accessing the Data property.
You need to meet the requirements. Which code segment should you insert at line 07?

How should you complete the relevant code?

HOTSPOT
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, select the correct code segment
from each drop-down list in the answer area.)

How should you complete the relevant code?

DRAG DROP
You are developing a Windows Store app by using JavaScript. The app will be used in
multiple geographic regions.
You need to ensure that the app displays dates in the region-specific full date format.
How should you complete the relevant code? (To answer, drag the appropriate code
segments to the correct locations in the answer are a.
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 code segment should you use?

You are creating an application that manages information about zoo animals. The
application includes a class named Animal and a method named Save.
The Save() method must be strongly typed. It must allow only types inherited from the
Animal class that uses a constructor that accepts no parameters.
You need to implement the Save() method.
Which code segment should you use?

Which three actions should you perform in sequence?

DRAG DROP
You are writing a Windows Store app by using JavaScript.

You need to authenticate a cloud server as a source for Windows Push Notification Services (WNS).
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.)

How should you complete the relevant code?

DRAG DROP
You are developing a Windows Store app by using JavaScript. The app will call a WinMD
component to convert temperature.
The component exposes the following two members:
• A static variable named Fahrenheit
• A public method named GetInCelsius( ) that accepts an integer

You need to ensure that the app will display the temperature in Celsius and Fahrenheit.
How should you complete the relevant code? (To answer, drag the appropriate code
segments to the correct locations in the answer are a.
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 two code segments can you use to achieve this goal?

You are developing an application. The application includes classes named Employee and
Person and an interface named IPerson.
The Employee class must meet the following requirements:
It must either inherit from the Person class or implement the IPerson interface.
It must be inheritable by other classes in the application.
You need to ensure that the Employee class meets the requirements.
Which two code segments can you use to achieve this goal? (Each correct answer presents
a complete solution. Choose two.)

How should you complete the relevant code?

DRAG DROP
You are developing a class named ExtensionMethods
You need to ensure that the ExtensionMethods class implements the IsUrl() method on
string objects.
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.)