70-357 Exam - Developing Mobile Apps

certleader.com

Q1. DRAG DROP

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

You have the following XAML code.

You need to localize the app so that it displays “Bonjour” if the current language in Windows is set to French.

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:

The localized Resources.resw files should be put into subfolders of a folder named Strings.

Box 3:

The Resources.resw files contain localized text.

Box 4:

In Visual Studio you can set “Build Action” for a project item to ‘Resource’ or ‘Embedded Resource’ A “.resx” file is a special kind of embedded resource.

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

Q2. 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

Q3. 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

Q4. 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

Q5. DRAG DROP

You are developing a Universal Windows Platform (UWP) app that will be used on desktop computers and

phones. The app will use facial recognition.

You need to develop a method that verifies whether a camera is present.

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: 

Capture photos and video with MediaCapture.

To get available devices for capturing pictures you can use the following code:

var allVideoDevices = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture);

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

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

You plan to publish the app to the Microsoft Store. The app will have a 30-day trial mode.

During the trial mode, you need to limit the number of exposed features.

Which object should you use to ascertain whether the app is running in trial mode?

A. CurrentApp

B. ListingInformation

C. Current

D. Application

Answer: B

Explanation: 

Exclude or limit features in a trial version by using the current license state of your app, that is stored as

properties of the LicenseInformation class.

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

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

You have the following XAML code.

You need to localize the app so that it displays “Bonjour” if the current language in Windows is set to French.

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:

The localized Resources.resw files should be put into subfolders of a folder named Strings.

Box 3:

The Resources.resw files contain localized text.

Box 4:

In Visual Studio you can set “Build Action” for a project item to ‘Resource’ or ‘Embedded Resource’ A “.resx” file is a special kind of embedded resource.

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

Q8. You are developing a Universal Windows Platform (UWP) app that has the following unit test.

You need to ensure that TestMethod1 appears in the Test Explorer window of Microsoft Visual Studio.

What should you add?

A. [TestCategory(“Enabled”)]before the UnitTest1 declaration

B. [TestProperty(“Enabled”,”True”)]before the TestMethod1 declaration

C. [TestClass]before the UnitTest1 declaration

D. [TestProperty(“AutoStart”,”True”)] before the TestMethod1 declaration

Answer: C

Explanation: 

The [TestClass] attribute is required in the Microsoft unit testing framework for managed code for any class that contains unit test methods that you want to run in Test Explorer.

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

Q9. 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

Q10. 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