exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 41 discussion

Actual exam question from Microsoft's 70-483
Question #: 41
Topic #: 1
[All 70-483 Questions]

DRAG DROP -
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 Renamed event 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 or scroll to view content.)
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
CNTPD1
Highly Voted 5 years ago
Is there part of the question missing? By the context it is clear that we need to add user to "users" list, but I don't see a part about it stated in the question.
upvoted 9 times
...
SwordMaster
Most Recent 4 years, 7 months ago
D is correct, cause DataContractSerializer inherits XmlObjectSerializer. So there is no more choices.
upvoted 1 times
noussa
4 years, 5 months ago
can u please explain more? why not using delegate? thank u
upvoted 1 times
Rishleen
4 years, 5 months ago
Question specified that you should do it 'by using a lambda expression'. Delegate is anonymous method. AFAIK should work same tho :)
upvoted 1 times
...
...
...
XardasLord
5 years, 1 month ago
The answer is correct.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...