Free Microsoft 98-382 Practice Test & Real Exam Questions

  • Exam Code/Number: 98-382
  • Exam Name/Title: Introduction to Programming Using JavaScript
  • Certification Provider: Microsoft
  • Corresponding Certification: Microsoft JavaScript
  • Exam Questions: 40
  • Updated On: Aug 05, 2026
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.
Correct Answer:

Explanation:

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

Explanation:

References: https://www.w3schools.com/js/js_arithmetic.asp
You are designing a web page with a script that must dynamically change the content of a paragraph element to display the value returned by the function randomQuote().
You have created the following code. Line numbers are included for reference only.

Which code segment should you use at line 08?
Correct Answer: A Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
DRAG DROP
You are creating a web page that tests a user's ability to accurately type text. The validation should be case-insensitive.
How should you complete the code? To answer, drag appropriate functions to the correct locations. Each function 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.
Correct Answer:

Explanation:
Box 1: value
Box 2: innerHTML
Box 3: value
Box 4: innerHTML
References: https://www.w3schools.com/jsref/prop_text_value.asp