exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 7 discussion

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

You are developing an ASP.NET MVC web application that includes the following method.

You need to test the AccountBalance method.
Which unit test should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
All unit tests require the [TestMethod] attribute.
The Assert.AreEqual method verifies that specified values are equal.
Incorrect:
Not D: All unit tests require the [TestMethod] attribute.
References:
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assert.areequal(v=vs.110).aspx

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
apostolin
Highly Voted 5 years, 10 months ago
The correct answer is: C.
upvoted 13 times
...
Radhi94
Most Recent 4 years, 5 months ago
C is correct
upvoted 1 times
...
markcowell
4 years, 8 months ago
C is correct
upvoted 2 times
...
hungry_ape9000
5 years, 1 month ago
FINAL ANSWER: C is correct
upvoted 3 times
...
CipherNird
5 years, 6 months ago
C is the correct answer.
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 ...