Online Access Free 98-382 Practice Test
| Exam Code: | 98-382 |
| Exam Name: | Introduction to Programming Using JavaScript |
| Certification Provider: | Microsoft |
| Free Question Number: | 40 |
| Posted: | Oct 14, 2026 |
DRAG DROP
Evaluate the following code. Line numbers are included for reference only.
What is the value of each variable at line 07? To answer, drag the appropriate value to the correct variable. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
You are creating a JavaScript program for an accounting system.
You create the following code. Line numbers are included for reference only.
You evaluate the code to ensure that it follows JavaScript best practices.
Which line should you change?
HOTSPOT
You are creating a JavaScript function that returns a date the specified number of months in the future of the current date.
The function must meet the following requirements:
* Accept a number that represents the number of months to add or subtract from the current date.
* Return the current data adjusted by the number of months passed into the function.
How should you complete the code? To answer, select the appropriate code segments in the answer area.
NOTE: Each correct selection is worth one point.
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.








