exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 76 discussion

Actual exam question from Microsoft's 70-480
Question #: 76
Topic #: 4
[All 70-480 Questions]

You are developing an application that consumes an external web service. The web service returns the latest stock rate. The application has two methods:
✑ The getResults() method makes an AJAX web service request.
✑ The ShowRate() method displays the stock rate from the web service response.
The application has two JavaScript variables named newStockRate and stockRate to store the latest and previous stock rates, respectively.
Users must be able to compare the old stock rate with the new stock rate.
You need to ensure that newStockRate and stockRate retain their values for comparison.
Which code segment should you use?




  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
danhan
Highly Voted 5 years, 7 months ago
C is wrong because StockRate is undefined outside of getResults. I tend to D, but it is hard to say due to the typos...
upvoted 7 times
Sanfour
5 years ago
D is the correct answer
upvoted 2 times
...
...
rossie
Most Recent 4 years, 5 months ago
D is correct.
upvoted 2 times
...
alexcode
4 years, 8 months ago
A is correct.
upvoted 1 times
...
ethemyapar
4 years, 10 months ago
I think there is no appropriate answer.
upvoted 1 times
...
Joshua
5 years, 7 months ago
Don’t think any of these are the answer. NewStockRate doesn’t get set in D
upvoted 3 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 ...