How should you complete the relevant code?
You are implementing a method that creates an instance of a class named User. The User class contains a
public event named Renamed. The following code segment defines the Renamed event: Public event
EventHandler<RenameEventArgs> Renamed;
You need to create an event handler for the Renamedevent by using a lambda expression.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the
correct locations in the answer area. Each code segment may be used once, more than once, or not at all.
You may need to drag the split bar between panes orscroll to view content.)
Which effects result from the design principles?
You are developing a Windows Store app.
You need to identify the effects of applying Microsoft design principles to the user interface.
Which effects result from the design principles? (To answer, drag the appropriate effects to the correct
locations in the answer area. Each effect 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.)
Which code segment should you use?
You are creating a console application by using C#.
You need to access the assembly found in the file named car.dll.
Which code segment should you use?
Which code segments should you use?
You are developing a Windows Store text editor app by using HTML5 and JavaScript. Users must be able to
select text within the app and then copy the text. You need to enable the copy feature. Which code segments
should you use? (Each correct answer presents part of the solution. Choose all that apply.)
How should you complete the relevant code?
You are developing a page for a Windows Store app.
You have the following requirements for the page:
– Display a button on the bottom app bar that allows the user to insert a picture. This button must bebound to
the Insert command in the view model.
– Display a button in the main content area of the page that allows the user to open documents. This button
must be bound to the Open command in the view model.
You need to ensure that the requirements are met.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct
locations in the answer area. Each code segment maybe used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
Which access modifier should you use for the GetData() method?
An application includes a class named Person. The Person class includes a method named GetData.
You need to ensure that the GetData() method can beused only by the Person class and not by any class
derived from the Person class.
Which access modifier should you use for the GetData() method?
Which code segment should you add?
You are developing a Windows Store app. The app will format a paragraph of text to resemble the following
image.
The app must format the paragraph to meet the following requirements:
The paragraph must be divided between two columns. Columns must be separated by vertical lines that are
two pixels wide. You need to ensure that the formatof the paragraph meets the requirements. Which code
segment should you add?
Which codesegment should you use?
You are creating an application that manages information about your company’s products. The
application includes a class named Product and a method named Save.
The Save() method must be strongly typed. It must allow only types inherited from the Product class that
use a constructor that accepts no parameters.
You need to implement the Save() method. Which codesegment should you use?
How should you complete the relevant code?
You are developing a page for a Windows Store app.
You have the following requirements for the page:
– Display a button on the bottom app bar that allows the user to insert a picture. This button must bebound to
the Insert command in the view model.
– Display a button in the main content area of the page that allows the user to open documents. This button
must be bound to the Open command in the view model.
You need to ensure that the requirements are met.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct
locations in the answer area. Each code segment maybe used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
Which four code segments should you use in sequence?
You are developing an application by using C#. The application will output the text string “First Line”
followed by the text string “Second Line”.
You need to ensure that an empty line separates thetext strings.
Which four code segments should you use in sequence? (To answer, move the appropriate code segments
to the answer area and arrange them in the correct order.)