exam questions

Exam 98-382 All Questions

View all questions & answers for the 98-382 exam

Exam 98-382 topic 1 question 36 discussion

Actual exam question from Microsoft's 98-382
Question #: 36
Topic #: 1
[All 98-382 Questions]

You are writing a function that calculates the remainder for integer division. The function receives two parameters, a and b, and must return the remainder that is left over when the integer a is divided by the integer b.
You create the following code. Line numbers are for reference only.

You want to complete the function for lines 02 and 03.
Which two sets of code segments should you use? Each correct answer presents a complete solution. (Choose two.)

A.

B.

C.

D.

E.

F.

Show Suggested Answer Hide Answer
Suggested Answer: E
References: https://www.w3schools.com/js/js_arithmetic.asp

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
becky_intelletive
Highly Voted 4 years, 6 months ago
a %= b; is an equivalent statement to a = a % b; Therefore, answers D and E are both correct.
upvoted 8 times
...
dev_ash
Most Recent 3 years, 3 months ago
E and D are both correct - the question says select 2 answers
upvoted 1 times
...
Rmartinez3ije3232
4 years, 8 months ago
C and D is correct.
upvoted 3 times
Rmartinez3ije3232
4 years, 7 months ago
I confused because the letters are over the item, it is E and D.
upvoted 2 times
...
...
Ciupaz
4 years, 9 months ago
Also D is correct.
upvoted 2 times
...
Lionel25603
5 years, 3 months ago
it says two answers
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 ...