PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

How should you complete the relevant code?

HOTSPOT
You are developing a Windows Store app by using JavaScript.
You plan to add an animation to the navigation button. The animation must do the following:
• Show motion when tapped.
• Move to the next app screen after completing the animation sequence.
You need to add the animation to the button.
How should you complete the relevant code? (To answer, select the correct code segment in
each drop-down list in the answer area.)

Which code elements should you include?

DRAG DROP
You are developing a Windows Store game that requires access to a Bluetooth-enabled
human interface device (HID).
You need to implement access to the HID device.
Which code elements should you include? To answer, drag the appropriate code or markup
segments to the correct targets. Each code or 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.

Which code segment should you use?

You are creating an application that manages information about your company’s products.
The application includes a class named Product and a method named Save.

The Save() method must be strongly typed. It must allow only types inherited from the
Product class that use a constructor that accepts no parameters.
You need to implement the Save() method.
Which code segment should you use?

Which features should you install?

HOTSPOT
You are developing a Windows Store app.
You have the following requirements.
• Ensure that the app complies with the Windows Store requirements before deploying
the app to the Windows Store.
• Minimize the number of components that you must install from the Windows Store
Software Development Kit (SDK).
You need to install the SDK components.
Which features should you install? To answer, select or clear the appropriate check boxes in
the answer area.

Which two code segments can you use to achieve this goal?

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

Which four code segments should you use in sequence?

DRAG DROP
You are developing an application by using C#. The application will output the text string
“First Line” followed by the text string “Second Line”.
You need to ensure that an empty line separates the text strings.
Which four code segments should you use in sequence? (To answer, move the appropriate
code segments to the answer area and arrange them in the correct order.)

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 throw an InvalidCastException exception if the obj object is not
of type IDataContainer 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?

DRAG DROP
You are developing a class named ExtensionMethods.
You need to ensure that the ExtensionMethods class implements the IsEmail() extension
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.)