70-357 Premium Bundle

70-357 Premium Bundle

Developing Mobile Apps Certification Exam

4.5 
(15480 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

Microsoft 70-357 Free Practice Questions

Q1. HOTSPOT

You have the following code:

event1 += new PointerEventHandler(Target_PointerPressed);

event2 += new PointerEventHandler(Target_PointerWheelChange);

event3 += new PointerEventHandler(Target_PointerReleased);

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Hot Area:

Answer:  

Explanation: 

*PointerPressed occurs when a single finger touches the screen.

*PointerWheelChanged occurs when the delta value of a mouse wheel changes.

*PointerReleased occurs when that same touch contact is lifted.

ThePointerReleased eventoccurs when the pointer device that previously initiated a Press action is released, while within this element. Note that the end of a Press action is not guaranteed to fire a PointerReleased event; other events may fire instead.

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

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

Q4. DRAG DROP

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

The app manipulates accounts by using a class named Account that you developed.

You need to automate tests for the debit method of the Account class.

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: 

Test methods marked with the TestMethod Attribute are unavailable if the class that contains them is not

marked with the TestClass Attribute. The test class is not valid without the TestClass Attribute.

Q5. What is the best control to use for the top-level navigation? More than one answer choice may achieve this goal. Select the BEST answer.

A. SemanticZoom

B. Pivot

C. SplitView

D. ListView

Answer: B

Explanation: 

Tabs and pivots are used for navigating frequently accessed, distinct content categories. Tabs/pivots can be

used for top-level or sub-level navigation, and can be stacked in a top-level/sub-level pattern.

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

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

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

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

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

Explanation: 

Similar example:

private async void StartRecognizing_Click(object sender, RoutedEventArgs e)

{

// Create an instance of SpeechRecognizer.

var speechRecognizer = new Windows.Media.SpeechRecognition.SpeechRecognizer();

// Compile the dictation grammar by default.

await speechRecognizer.CompileConstraintsAsync();

// Start recognition.

Windows.Media.SpeechRecognition.SpeechRecognitionResult speechRecognitionResult = await

speechRecognizer.RecognizeWithUIAsync();

// Do something with the recognition result.

var messageDialog = new Windows.UI.Popups.MessageDialog(speechRecognitionResult.Text, “Text spoken”);

await messageDialog.ShowAsync();

}

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

Q10. DRAG DROP

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

The app manipulates accounts by using a class named Account that you developed.

You need to automate tests for the debit method of the Account class.

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: 

Test methods marked with the TestMethod Attribute are unavailable if the class that contains them is not

marked with the TestClass Attribute. The test class is not valid without the TestClass Attribute.

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

Q12. DRAG DROP

You are developing a Universal Windows Platform (UWP) app. All of the code sources are hosted in GitHub.

You need to create a new branch in GitHub.

What commands should you run? To answer, drag the appropriate values to the correct targets. Each value

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:

The git checkout command switch branches or restore working tree files.

Specifying -b causes a new branch to be created as if git-branch[1] were called and then checked out.

Box 2:

The git push command push changes to a remote repository.

Example: git push origin

Without additional configuration, pushes the current branch to the configured upstream

http://git-scm.com/docs

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

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

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

Q16. You are developing a Universal Windows Platform (UWP) app that will be published to the Microsoft Store.

You need to ensure that the app can access removable storage drives.

Which file should you modify?

A. Package.appxmanifest

B. Project.json

C. Project.csproj

D. App.xaml.cs

Answer: A

Explanation: 

The removableStorage capability provides programmatic access to files on removable storage, like USB keys and external hard drives, filtered to the file-type associations declared in the package manifest

Package.appxmanifest.Note: Capabilities must be declared in your Universal Windows Platform (UWP) app’s package manifest,

Package.appxmanifest, to access certain API or resources like pictures, music, or devices like the camera, the microphone, or removable storage devices.

The package manifest, Package.appxmanifest, is an XML document that contains the info the system needs to deploy, display, or update a Windows app.

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

Q17. You are developing a Universal Windows Platform (UWP) app that will be published to the Microsoft Store.

You need to change the name of the app that will be displayed in the Store.

Which file should you modify?

A. App.xaml.cs

B. Package.appxmanifest

C. AssemblyInfo.cs

D. Project.json

Answer: B

Explanation: 

The removableStorage capability provides programmatic access to files on removable storage, like USB keys and external hard drives, filtered to the file-type associations declared in the package manifest

Package.appxmanifest.

Note: Capabilities must be declared in your Universal Windows Platform (UWP) app’s package manifest,

Package.appxmanifest, to access certain API or resources like pictures, music, or devices like the camera, the microphone, or removable storage devices.

The package manifest, Package.appxmanifest, is an XML document that contains the info the system needs to deploy, display, or update a Windows app.

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

Q18. You are developing a Universal Windows Platform (UWP) app that will be published to the Microsoft Store.

You need to ensure that the app can access removable storage drives.

Which file should you modify?

A. Package.appxmanifest

B. Project.json

C. Project.csproj

D. App.xaml.cs

Answer: A

Explanation: 

The removableStorage capability provides programmatic access to files on removable storage, like USB keys and external hard drives, filtered to the file-type associations declared in the package manifest

Package.appxmanifest.Note: Capabilities must be declared in your Universal Windows Platform (UWP) app’s package manifest,

Package.appxmanifest, to access certain API or resources like pictures, music, or devices like the camera, the microphone, or removable storage devices.

The package manifest, Package.appxmanifest, is an XML document that contains the info the system needs to deploy, display, or update a Windows app.

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

START 70-357 EXAM