exam questions

Exam 98-382 All Questions

View all questions & answers for the 98-382 exam

Exam 98-382 topic 1 question 28 discussion

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

HOTSPOT -
You are creating a function named countdown. The function accepts a single parameter, start, and displays a countdown from that number down to zero in increments of one.
How should you complete the code? To answer, select the appropriate code segments in the answer area.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
References: https://www.w3schools.com/js/js_operators.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
02rids
Highly Voted 5 years, 3 months ago
yes it should be i>=0
upvoted 9 times
...
KSinha
Highly Voted 5 years, 5 months ago
Should the 2nd answer be i>=0 as it stated "displays a countdown from that number down to zero "
upvoted 6 times
...
Nalya
Most Recent 3 years, 11 months ago
je crois que c'est i>0 car après i=1 la fonction décremente et arrive a i=0 avant de s'arreter .par contre si on inclut le 0 la fonction risque d'afficher -1
upvoted 1 times
...
qwerty10101
4 years, 8 months ago
Shouldn't the qns says decrement by one ?
upvoted 3 times
becky_intelletive
4 years, 4 months ago
"decrement by one" would be clearer, but the question's wording of: "countdown from that number down to zero in increments of one" also makes sense. It counts down, and the "increment" (or change between numbers) is one. Instead of saying "change = -1," it says "change = 1 in the negative direction" - in other words, it's effectively the same thing.
upvoted 1 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 ...