Q1. DRAG DROP
You are developing a Universal Windows Platform (UWP) app.
The app will display a text box named TextBox1 and a button named Button2.
If a user types in the text box, you need to ensure that the box is resized dynamically based on the size of the text. The buttons must always remain to the right of the text box and must always remain aligned.
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:
The new RelativePanel implements a style of layout that is defined by the relationships between its child elements. It's intended for use in creating app layouts that can adapt to changes in screen resolution.
Example:
<RelativePanel>
<TextBox x:Name="textBox1" Text="textbox" Margin="5"/>
<Button x:Name="blueButton" Margin="5" Background="LightBlue" Content="ButtonRight" RelativePanel.RightOf="textBox1"/>
<Button x:Name="orangeButton" Margin="5" Background="Orange" Content="ButtonBelow" RelativePanel.RightOf="textBox1" RelativePanel.Below="blueButton"/>
</RelativePanel>
References: https://msdn.microsoft.com/library/windows/apps/dn894631.aspx#device_families
Q2. You need to provide license metadata to the current app.
Which class should you use?
A. ListingInformation
B. LicenseInformation
C. ProductListing
D. ProductLicense
Correct
Answer: C
Explanation:
TheLicenseInformationproperty (not a class) of theCurrentApp classgets the license metadata for the current app.
Q3. Your company has a private GitHub repository.
A new developer needs to make a change to a project in the repository. What should the developer do first?
A. Create a new local branch of the repository.
B. Create a new remote branch of the repository.
C. Commit the remote repository.
D. Clone the repository locally.
Answer: D
Explanation:
With distributed version control systems like Git, if you want to make a change to a project you copy the whole repository to your own system. You make your changes on your local copy, then you “check in” the changes to the central server.
References:
http://techcrunch.com/2012/07/14/what-exactly-is-github-anyway/
Q4. You are developing a Universal Windows Platform (UWP) app that will be published to the Microsoft Store.
The app will contain the following method.
JavaScript in the app will call the method. You need to implement the method. What should you do first?
A. Create a Windows Runtime Component project.
B. Add a class file to the project.
C. Create a portable class project.
D. Add the method to the App.xaml.cs file.
Correct
Answer: A
Explanation:
By using the Windows Runtime, you can create components (essentially DLLs) in C++, C#, or Visual Basic, and call into them in a simple and natural way from a Windows Store app that's built by using JavaScript.
References:
https://msdn.microsoft.com/en-us/library/hh441572.aspx
Q5. You are packaging a Universal Windows Platform (UWP) app for the Microsoft Store.
You need to set the name of the app that will appear in the Store. Which element should you define in Package.appxmanifest?
A. the Name attribute in the Identity element
B. the Application element
C. the DisplayName attribute in the VisualElements element
D. the DisplayName element
Correct
Answer: C
Explanation:
In the .appxmanifest file, the entry for an app must specify certain attributes of the VisualElements element. Example:
<VisualElements DisplayName="My App" Description="A useful description." Logo="images\icon.png" SmallLogo="images\small_icon.png" ForegroundText="dark" BackgroundColor="#FFFFFF" >
References:
https://msdn.microsoft.com/en-us/library/windows/apps/br211475.aspx
Q6. Your company uses the Agile methodology for software development.
You need to recommend a tool that provides you with the ability to manage the sprint backlog and to link the work items to the source code. What should you recommend?
A. Microsoft Visual Studio Online
B. Microsoft Excel Online
C. Microsoft Visual Studio Release Management
D. Git
Answer: A
Explanation:
Microsoft Visual Studio Team Services/ Microsoft Visual Studio Online is a cloud-based solution let teams share code, track work, and ship software. Teams use the work item types (WITs) provided with the Agile process template to plan and track progress of software projects.
Q7. You are developing a Universal Windows Platform (UWP) app.
In MainPage.xaml, you have the following markup.
You plan to implement localization for the following cultures:
de-DE
fr-CA
en-US
You create a folder within the project named Strings that contains a subfolder for each culture. Each subfolder contains a resource file named Greetings.resw. You need to ensure that TextBlock appears by using the appropriate localization.
Which two modifications should you make to MainPage.xaml? Each correct answer presents part of the solution.
A. Replace x:Name with x:Phase.
B. Change "Greeting" to "Resources/Greeting".
C. Change "Greeting" to "Greetings/Greeting".
D. Replace x:Name with x:FieldModifier.
E. Replace x:Name with x:Uid.
F. Change "Greeting" to "Greetings.resw/Greeting".
Correct
Answer: BE
Explanation:
E: The keys of the key-value pairs are x:Uid values that are placed by the developer in the original XAML. These x:Uid values enable the API to track and merge changes that happen between the developer and the localizer during localization.
References:
http://stackoverflow.com/questions/14929590/resource-localization-use-of-xuid-refering-to-another-assemblys-resource
Q8. You are developing a Universal Windows Platform (UWP) app that will display a list of contacts.
When the app loads, it will display the alphabet and provide users with the ability to zoom in on a letter to display all of the contacts whose name starts with that letter. The app will use a SemanticZoom control.
You need to identify which event you must use in the app. Which event should you identify?
A. ViewChangeStarted
B. Loaded
C. Tapped
D. ManipulationStarted
Correct
Answer: A
Explanation:
TheSemanticZoom.ViewChangeStarted eventoccurs when a view change is requested.
Incorrect:
Not B: Loaded occurs when a FrameworkElement has been constructed and added to the object tree, and is ready for interaction. Not C: Tapped occurs when an otherwise unhandled Tap interaction occurs over the hit test area of this element.
Not D: ManipulationStarted represents that the manipulation recognition logic has detected pointer movement.
Q9. DRAG DROP
You plan to use Microsoft Visual Studio Online for version control.
You need to identify which actions must be performed before you can use Visual Studio Online for version control.
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:
Box 1: Create a Microsoft Account
Box 2: Create a Visual Studio Online account.
Box 3: Create a team Project in Visual Studio
Connect to Visual Studio Team Services
You can use a Microsoft account to create a Visual Studio Online account (Team Services account). After you create your Team Services account, create your first team project. There you set which type of version control you will use: either Team Foundation Server Control or Git.
Note: Create your first team project
1. If you haven't already, sign in to your Team Services account (http://{youraccount}.visualstudio.com).
1a. If you haven't already, create a Microsoft account.
1b. Sign in to Visual Studio Team Services with your Microsoft account (for example, @outlook.com or @hotmail.com).
1c. Give your account a memorable name. Then choose your version control provider to manage your code.
1d. Confirm your account's location.
2. Name your team project. Select a process template to manage your work. Then choose your version control provider.
Here's how to choose your version control:
Git: Work in a decentralized version control system that provides lightweight branches and a good experience when working offline.
Team Foundation Version Control (TFVC): Work in a centralized version control system that provides a good experience, even with a massive codebase.
3. Connect and share your code from Visual Studio, Eclipse, or Xcode.
References:
https://www.visualstudio.com/get-started/setup/connect-to-visual-studio-online-vs#connectvs
Q10. You are developing a Universal Windows Platform (UWP) app by using Microsoft Visual Studio 2015.
You plan to perform unit testing.
You need to automate the creation of the unit tests. What should you use?
A. IntelliTest
B. Application Insights
C. Code Coverage
D. Test Explorer
Correct
Answer: A
Explanation:
IntelliTest explores your .NET code to generate test data and a suite of unit tests. For every statement in the code, a test input is generated that will execute that statement.