Microsoft Developing Mobile Apps 70-357 Exam Questions

Page: 1 / 14
Total 51 questions
Question 1

Note: This question is part of a series of questions that present the same scenario. Each

question in the series contains n unique solution. Determine whether the solution meets the stated goals.

You need to implement the appropriate XAML layout (or the Timeline app.

Solution: You create an instance of a RelativePanel class.

Does this meet the goal?



Answer : A


Question 2

Note: This question it part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.

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

Your app stores files on a user's device.

You need to be able to replace the existing files with new files generated by the user.

Solution You run the StorageFile. OpenSequentialReadAsync method to replace the existing file.

Does this meet the goal?



Answer : B

The OpenSequentialReadAsync() method opens a sequential-access stream over the current file for reading file contents.


Question 3

You are a developer for LitWare,Inc.'Universal Windows Platform (UWP) app.

Access to the hardware within the app is not functioning correctly.

You need to add the capabilities to the package.appmanifest file.

Which markup segment should you insert at line PM16?



Answer : D


Question 4

You are developing a Universal Windows Platform (UWP) app. The app must allow the user to select only one file at a time.

You need to ensure that the app displays the appropriate dialog window.

Which method should you use?



Answer : A

To pick a single file.

Windows.Storage.StorageFile file = await picker.PickSingleFileAsync();

if (file != null)

{

// Application now has read/write access to the picked file

this.textBlock.Text = 'Picked photo: ' + file.Name;

}

else

{

this.textBlock.Text = 'Operation cancelled.';

}


Question 5

You must create a control that meets the following requirements:

* allows you to extend the behavior of a combo box allows the arrow image is located at the right edge of a standard control to be replaced with a new image

* has a property that sets and returns the image

*has a visual interface of the control that is defined by using XAML

*defines the properties for the control in code

You need to create the control.

Which object should you use?



Answer : A

ContentDialog represents a dialog box that can be customized to contain checkboxes, hyperlinks, buttons and any other XAML content.


Question 6

Note: This question It part of a series of that present the tame scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.

You must create a project for shared code.

Solution: You implement the shared code in a .NET class library.

Does this meet goal?



Answer : B

The .NET Framework Portable Class Library, not a .NET class library, project type in Visual Studio helps you build cross-platform apps and libraries for Microsoft platforms quickly and easily.

Portable class libraries can help you reduce the time and costs of developing and testing code. Use this project type to write and build portable .NET Framework assemblies, and then reference those assemblies from apps that target multiple platforms such as Windows and Windows Phone.

Even after you create a Portable Class Library project in Visual Studio and start developing it, you can change the target platforms. Visual Studio will compile your library with the new assemblies, which helps you identify the changes you need to make in your code.

From scenario:

The app must be compatible with current and future XBOX apps that use C++.


Question 7

You have a Universal Windows Platform (UWP) app. The app has a page that includes the following XAML markup. Line numbers are included for reference only.

Users report that the page takes a long time to refresh.

You need to improve the load time for the page while maintaining the same layout and functionality.

What should you do?



Answer : D

Use single-cell grids for overlapping UI

A common UI requirement is to have a layout where elements overlap each other. Typically padding, margins, alignments, and transforms are used to position the elements this way. The XAML Grid control is optimized to improve layout performance for elements that overlap.


Page:    1 / 14   
Total 51 questions