exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 92 discussion

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

You are developing an ASP.NET MVC application.
The application has a contact view includes a form for editing the displayed contact.
You need to save the Contact object model when the form is posted back to the EditContact method using a POST method request.
Which code segment should you use? Each correct answer presents a complete solution. Choose all that apply.

A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: AB

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
alex_ozr
Highly Voted 5 years, 5 months ago
B&C. QueryString is for query parameters, not form Form
upvoted 19 times
...
LAV
Highly Voted 5 years, 4 months ago
Correct answe is B and C.
upvoted 13 times
...
mr_
Most Recent 4 years, 12 months ago
B & C are correct for sure. There is no query string so other ones are wrong. B & C tested in demo app - both work. There is really similar question to that one but with query string provided. Read requirements carefully because in the other question different answers are correct.
upvoted 8 times
...
aarset89
5 years ago
A and B are correct.
upvoted 1 times
aarset89
5 years ago
Because Getvalue is a method with 2 overload that accepts an integer and string.
upvoted 1 times
mr_
4 years, 12 months ago
Yes, but GetValue returns ValueProviderResult and I doubt that FirstName and LastName is of that type. What is more - it is not method invocation. Look at the square brackets - D is completely wrong in my opinion.
upvoted 1 times
...
...
...
Dev666
5 years ago
B and C
upvoted 4 times
...
hungry_ape9000
5 years ago
FINAL ANSWER: B & C
upvoted 6 times
...
aousos
5 years, 1 month ago
BC it says POST Methods and A is GET
upvoted 3 times
...
mmk1991
5 years, 3 months ago
The question states that the POST method is being used so B and C are correct. If the method was GET it would be A and D.
upvoted 5 times
...
Dhaval
5 years, 4 months ago
A and D
upvoted 1 times
...
Nunu95
5 years, 4 months ago
A and D
upvoted 2 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 ...