- Home
- Microsoft Certification
- 98-382 Exam
- Microsoft.98-382.dumpsfiles Dumps
Free Microsoft 98-382 Exam Dumps Questions & Answers
| Exam Code/Number: | 98-382Join the discussion |
| Exam Name: | Introduction to Programming Using JavaScript |
| Certification: | Microsoft |
| Question Number: | 40 |
| Publish Date: | Oct 15, 2026 |
|
Rating
100%
|
|
Total 40 questions
HOTSPOT
You are creating JavaScript code that manipulates dates. You want to initialize a Date object with the date January 1, 2017 by using the year, month, and date parameters.
How should you complete the code? To answer, select the appropriate code segment in the answer area.

Explanation:

References: https://www.w3schools.com/js/js_dates.asp
DRAG DROP
You are using JavaScript to create a calculator.
You create the following HTML. Line numbers are included for reference only.
You must create a function named add() that adds the values in the a and b input elements and displays the result in the result input element.
You define the following function in JavaScript:
function add() {
}
You need to complete the body of the function.
Which three code segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.
NOTE: Each correct selection is worth one point.

Explanation:

References: https://www.w3schools.com/jsref/jsref_eval.asp
HOTSPOT
You are evaluating a colleague's code to ensure it meets best practices.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

Explanation:

References: https://www.w3schools.com/js/js_conventions.asp
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.

Explanation:

References:
https://www.w3schools.com/js/js_dates.asp
https://www.w3schools.com/js/js_date_methods.asp
https://www.w3schools.com/jsref/jsref_setmonth.asp
DRAG DROP
Your instructor has asked you to implement code that would display a two-dimensional array of any size inside a <div> tag.
You write the following code:
You need to complete the code.
Which three segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.

Explanation:

References: http://www.plus2net.com/javascript_tutorial/array-two-dimension.php