exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 97 discussion

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

You are evaluating a method that calculates loan interest. The application includes the following code segment. (Line numbers are included for reference only.)

When the loanTerm value is 5 and the loanAmount value is 4500, the loanRate must be set to 6.5 percent.
You need to adjust the loanRate value to meet the requirements.
What should you do?

  • A. Replace line 15 with the following code segment: loanRate = 0.065m;
  • B. Replace line 07 with the following code segment: loanRate = 0.065m;
  • C. Replace line 17 with the following code segment: interestAmount = loanAmount * 0.065m * loanTerm;
  • D. Replace line 04 with the following code segment: decimal loanRate = 0.065m;
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
renatofrancisco
Highly Voted 5 years, 2 months ago
The A is correct
upvoted 14 times
akoj
5 years, 2 months ago
5 < 5 is false => A isn't correct C is the correct answer
upvoted 2 times
akoj
5 years, 2 months ago
Please delete - I was wrong
upvoted 6 times
...
...
...
rickert12
Most Recent 5 years, 2 months ago
C works as well
upvoted 3 times
blob
5 years, 2 months ago
No it doesn't. You would disrupt other cases.
upvoted 3 times
Kilsimon
4 years, 6 months ago
Well - A also disrupts other cases. It just disrupts less cases than C.
upvoted 1 times
Focal
4 years, 5 months ago
Exactly, so that makes it the best possible 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago