70-357 Exam - Developing Mobile Apps

certleader.com

Q1. DRAG DROP

You are developing a Universal Windows Platform (UWP) app.

While testing the app, you discover performance issues.You need to profile the performance of the app as the app runs.

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.

Select and Place:

Answer:  

Explanation: 

Visual Studio diagnostic tools help you analyze the performance of your programs .Click Debug / Start

Diagnostic Tools Without Debugging. Change the target to your project, and then select which Tool you want to run, such as Code Analysis.

https://msdn.microsoft.com/en-us/library/dn957936.aspx

Q2. DRAG DROP

You are developing an app in Microsoft Visual Studio 2015. The source code is stored in a team project in

Visual Studio Online. Visual Studio Online is configured to use Team Foundation version control. The team

project is configured to use a Builds check-in policy.

After you make some changes to the code, the project fails to build because of code errors.

You need to provide another developer with the ability to review the code changes.

Which four 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.

Select and Place:

Answer:  

Explanation: 

Box 1, Box 2:

From the web portal home page, start a feedback request by clicking the Request feedback button.

Box 3:

Add the feedback reviewers.

Box 4:

Reviewers launch your application and provide feedback through the free Microsoft Feedback Client which they need to install.

https://msdn.microsoft.com/en-us/library/vs/alm/work/connect/get-feedback

Q3. DRAG DROP

You are developing a Universal Windows Platform (UWP) app that will take photos. The app will be used

across Windows 10 device families.

You need to ensure that when the app runs on a phone, the app can use the built-in features of the phone.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets.Each element 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.

Select and Place:

Answer:  

Explanation: 

Box 1, box 2:

Example code:

Windows.Foundation.Metadata.ApiInformation.IsTypePresent(“Windows.Phone.UI.Input.HardwareButtons”);

if (isHardwareButtonsAPIPresent)

{

Windows.Phone.UI.Input.HardwareButtons.CameraPressed +=

HardwareButtons_CameraPressed;

}

Box 3:

Example: Making the Back button appear requires just one line of code:

SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =

AppViewBackButtonVisibility.Visible;

https://msdn.microsoft.com/en-us/library/windows/apps/dn894631.aspx

Q4. DRAG DROP

You are developing a Universal Windows Platform (UWP) app that will provide users with the ability to assign tasks to their contacts. The app will have a button that users click to display their contact list.

You need to develop the click event handler for the button.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets.

Each element 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.

Select and Place:

Answer:  

Explanation: 

Example:

private async void PickAContactButton_Click(object sender, RoutedEventArgs e)

{

ContactPicker contactPicker = new ContactPicker();

Contact contact = await contactPicker.PickContactAsync();

}

https://msdn.microsoft.com/en-us/library/windows/apps/mt185415.aspx

Q5. DRAG DROP

You are developing a Universal Windows Platform (UWP) app that will take photos. The app will be used

across Windows 10 device families.

You need to ensure that when the app runs on a phone, the app can use the built-in features of the phone.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets.Each element 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.

Select and Place:

Answer:  

Explanation: 

Box 1, box 2:

Example code:

Windows.Foundation.Metadata.ApiInformation.IsTypePresent(“Windows.Phone.UI.Input.HardwareButtons”);

if (isHardwareButtonsAPIPresent)

{

Windows.Phone.UI.Input.HardwareButtons.CameraPressed +=

HardwareButtons_CameraPressed;

}

Box 3:

Example: Making the Back button appear requires just one line of code:

SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =

AppViewBackButtonVisibility.Visible;

https://msdn.microsoft.com/en-us/library/windows/apps/dn894631.aspx

Q6. DRAG DROP

You are developing a Universal Windows Platform (UWP) app that will provide users with the ability to assign tasks to their contacts. The app will have a button that users click to display their contact list.

You need to develop the click event handler for the button.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets.

Each element 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.

Select and Place:

Answer:  

Explanation: 

Example:

private async void PickAContactButton_Click(object sender, RoutedEventArgs e)

{

ContactPicker contactPicker = new ContactPicker();

Contact contact = await contactPicker.PickContactAsync();

}

https://msdn.microsoft.com/en-us/library/windows/apps/mt185415.aspx

Q7. DRAG DROP

You are developing a Universal Windows Platform (UWP) app named App1.

App1 can be started by using Cortana. To start the app, users must be able to say “App1 play my music” or “App1 play music”.

You need to write the Voice Command Definition (VCD) file to meet the requirement.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets.

Each element 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.

Select and Place:

Answer:  

Explanation: 

To specify where the app name can be spoken in the voice command.

The ListenFor element has a RequireAppName attribute that specifies where the app name can appear in the voice command. The BeforePhrase indicates that users must say your app name before the command phrase.

Example: Here, Cortana listens for “Adventure Works when is my trip to Las Vegas”.

<ListenFor RequireAppName=”BeforePhrase”> when is [my] trip to {destination} </ListenFor>

https://msdn.microsoft.com/en-us/library/windows/apps/mt185616.aspx

Q8. DRAG DROP

You are developing a Universal Windows Platform (UWP) app.

You need to ensure that the app can respond to speech.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets.Each element 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.

Select and Place:

Answer:  

Q9. You are developing a Universal Windows Platform (UWP) app.

You need to convert a .resx file to a .resources file

Which tool should you use?

A. Resgen

B. Regasm

C. Winres

D. Regsvcs

Answer: A

Explanation: 

The Resource File Generator (Resgen.exe) converts text (.txt or .restext) files and XML-based resource format (.resx) files to common language runtime binary (.resources) files that can be embedded in a runtime binary executable or satellite assembly.

https://msdn.microsoft.com/en-us/library/ccec7sz1(v=vs.110).aspx

Q10. DRAG DROP

On the details page, you render the picture of the computer inside an object of the Rectangle type.

You need to implement the ability to rotate the rectangle that contains the picture.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets.

Each element 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.

Select and Place:

Answer:  

Explanation: 

Box 1, Box 2: Get the Rectangle and its RenderTransform matrix:

Rectangle rectToMove = e.OriginalSource as Rectangle;

Matrix rectsMatrix = ((MatrixTransform)rectToMove.RenderTransform).Matrix;

Box 3, box 4, box 5: Rotate the Rectangle:

rectsMatrix.RotateAt(e.DeltaManipulation.Rotation,

e.ManipulationOrigin.X,

e.ManipulationOrigin.Y);

https://msdn.microsoft.com/library/ee649090(v=vs.100).aspx