Free Microsoft 98-382 Practice Test & Real Exam Questions
HOTSPOT
You are planning to use the Math object in a JavaScript application. You write the following code to evaluate various Math functions:

What are the final values for the three variables? To answer, select the appropriate values in the answer area.
NOTE: Each correct selection is worth one point.

You are planning to use the Math object in a JavaScript application. You write the following code to evaluate various Math functions:

What are the final values for the three variables? To answer, select the appropriate values in the answer area.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:

References: https://www.w3schools.com/js/js_math.asp
DRAG DROP
A JavaScript array is initialized as follows:

You write the following code to manipulate the array:

You need to determine the contents of the array.
Which four elements does the array contain in sequence? To answer, move the appropriate elements from the list of elements to the answer area and arrange them in the correct order.

A JavaScript array is initialized as follows:

You write the following code to manipulate the array:

You need to determine the contents of the array.
Which four elements does the array contain in sequence? To answer, move the appropriate elements from the list of elements to the answer area and arrange them in the correct order.

Correct Answer:

Explanation:
Box 1: 100
Box 2: 40
Box 3: 60
Box 4: 10
References: https://www.bennadel.com/blog/1796-javascript-array-methods-unshift-shift- push-and-pop.htm
HOTSPOT
You are creating a function that does safe division.
The function has the following requirements:
* The function receives two parameters for the numerator and denominator.
* If the denominator is zero, the function must return false.
* If the denominator is not zero, the function must return true.
You write the following code. Line numbers are included for reference only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

You are creating a function that does safe division.
The function has the following requirements:
* The function receives two parameters for the numerator and denominator.
* If the denominator is zero, the function must return false.
* If the denominator is not zero, the function must return true.
You write the following code. Line numbers are included for reference only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:

References:
https://www.w3schools.com/js/js_comparisons.asp
https://www.w3schools.com/jsref/jsref_if.asp
HOTSPOT
You are creating a calendar application. You need to ensure that the code works correctly for all months of the year.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You are creating a calendar application. You need to ensure that the code works correctly for all months of the year.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:

References:
https://www.w3schools.com/js/js_break.asp
https://www.w3schools.com/jsref/jsref_switch.asp
