Which code segment should you use?
You are developing an application. The application calls a method that returns an array of
integers named employeeIds. You define an integer variable named employeeIdToRemove
and assign a value to it. You declare an array named filteredEmployeeIds.
You have the following requirements:
Remove duplicate integers from the employeeIds array.
Sort the array in order from the highest value to the lowest value.
Remove the integer value stored in the employeeIdToRemove variable from the
employeeIds array.
You need to create a LINQ query to meet the requirements.
Which code segment should you use?
Which two actions should you perform?
You are developing an application that includes the following code segment. (Line numbers
are included for reference only.)
The GetAnimals() method must meet the following requirements:
Connect to a Microsoft SQL Server database.
Create Animal objects and populate them with data from the database.
Return a sequence of populated Animal objects.
You need to meet the requirements.
Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)
Which function should you use?
You are developing a Windows Store app by using HTML5 and JavaScript. The app has
HEADER, NAV, and SECTION elements. The SECTION element displays a list of records.
The app will allow users to sort records multiple times.
The app must meet the following requirements:
• Each time the user performs a sort, replace the content in the SECTION element with
the sorted records.
• Animate the updated content by sliding the sorted records into the SECTION
element.
You need to use the WinJS library to apply the animation to the SECTION element.
Which function should you use?
How should you complete the relevant code?
DRAG DROP
You develop a Windows Store app that allows users to record audio notes.
You need to store the notes in the device’s Music library.
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.)
How should you complete the relevant markup?
DRAG DROP
You develop a Windows Store app that uses several new user interface features.
You need to declare capabilities in the application manifest so that you can submit the app to
the Windows Store.
How should you complete the relevant markup? (To answer, drag the appropriate markup
segments to the correct locations in the answer area. Each 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.)
How should you complete the relevant code?
DRAG DROP
You are developing a Windows Store app by using JavaScript. The app will be used to
create video blogs. The app uses the device’s internal camera.
The app must meet the following requirements:
• Allow the user to record audio and video.
• Save files in the .mp4 file format.
• Store files in the user’s Videos library.You need to ensure that the app meets the
requirements.
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.)
Which code segment should you insert at line 08?
You are developing an application that uses the Microsoft ADO.NET Entity Framework to
retrieve order information from a Microsoft SQL Server database. The application includes
the following code. (Line numbers are included for reference only.)
The application must meet the following requirements:
Return only orders that have an OrderDate value other than null.
Return only orders that were placed in the year specified in the OrderDate property or in a
later year.
You need to ensure that the application meets the requirements.
Which code segment should you insert at line 08?
How should you complete the relevant code?
DRAG DROP
You are developing a custom collection named LoanCollection for a class named Loan class.
You need to ensure that you can process each Loan object in the LoanCollection collection
by using a foreach loop.
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.)
How should you complete the relevant code?
HOTSPOT
You are developing a Windows Store app that will include a <div> element.
You are applying animation to the app. The animation must provide visual feedback that the
<div> element has been tapped or clicked.
You need to implement the animation by using a JavaScript library.
How should you complete the relevant code? (To answer, select the correct code segment
from each drop-down list in the answer area.)
Which code segment should you use?
You are developing an application. The application includes a method named ReadFile that
reads data from a file.
The ReadFile() method must meet the following requirements:
It must not make changes to the data file.
It must allow other processes to access the data file.
It must not throw an exception if the application attempts to open a data file that does not
exist.
You need to implement the ReadFile() method.
Which code segment should you use?