Introduction to Programming Using JavaScript

Here you have the best Microsoft 98-382 practice exam questions

  • Preview the first 5 of 39 questions for free
  • These questions were last updated on May 6, 2026
  • This site is not affiliated with or endorsed by Microsoft.
Question 1 of 39

HOTSPOT -

You are designing a web page that contains a blue button. When the button is pressed, it should call a function that displays the message "˜Welcome!'. When the cursor hovers over the button, the button should turn red. When the cursor leaves the button, the button should revert back to its original color of blue.

You want to complete the markup using the appropriate HTML events.

How should you complete the markup? To answer, select the appropriate event in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Exam 98-382: Question 1 - Image 1
Answer

Suggested Answer

References: https://www.w3schools.com/jsref/dom_obj_event.asp Exam 98-382: Question 1 - Image 2
Question 2 of 39

DRAG DROP -

You are creating a web page with a script. The script will insert the window's location inside the page's input element.

How should you complete the code? To answer, drag the appropriate code segment to the correct locations. Each code segment 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.

Select and Place:

Exam 98-382: Question 2 - Image 1
Answer

Suggested Answer

References: https://www.w3schools.com/js/js_window_location.asp Exam 98-382: Question 2 - Image 2
Question 3 of 39

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.

Exam 98-382: Question 3 - Image 1

Which code segment should you use at line 08?

Answer

Suggested Answer

The suggested answer is C.

To dynamically change the content of a paragraph element, the innerHTML property is used. This property sets or returns the HTML content inside an element. In this case, we want to update the content of the paragraph with the id 'tester' to display a new quote from the randomQuote() function. Therefore, the correct code segment to use is document.getElementById('tester').innerHTML = randomQuote();.

Question 4 of 39

HOTSPOT -

You are designing a web page that contains a list of animals. The web page includes a script that outputs animals from a list.

You create the following HTML to test the script:

Exam 98-382: Question 4 - Image 1

You need to create a function that will display the list of animals, including any formatting, in the div element.

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.

Hot Area:

Exam 98-382: Question 4 - Image 2
Answer

Suggested Answer

References: https://www.w3schools.com/jsref/met_element_getelementsbytagname.asp Exam 98-382: Question 4 - Image 3
Question 5 of 39

You are creating a dynamic HTML page by using JavaScript.

Your page has an image of the sun. When the user's mouse pointer moves across the image of the sun, the image should change to the image of the moon.

When the user's mouse pointer is no longer over the image should change back to the image of the sun.

You need to write the code for the image swap.

Which two events must you program for? (Choose two.)

Answer

Suggested Answer

The suggested answer is B, D.

To change the image when the user's mouse pointer moves across the image, you need an event to detect when the pointer enters the area of the image and another event for when it leaves. The 'onmouseover' event triggers when the mouse pointer enters the element area, making it ideal for changing the image from the sun to the moon. The 'onmouseout' event triggers when the mouse pointer leaves the element area, which is perfect for changing the image back to the sun. These events are designed precisely for handling such hover interactions.

34 more questions await

Unlock the full Microsoft 98-382 question bank

5 of 39 completed13%

Choose your plan

One-time payment · No subscription · No hidden fees

Standard

Quick preparation

$25

30 days access

30 day access to all questions
Instant free updates
Highest passing rate in industry
Printable PDF download
No money-back guarantee
Best Value

Premium

Guaranteed success

$60$35

90 days access

PDF

Printable PDF download

New

Save every question as a PDF for offline study or printing.

90 day access to all questions
Instant free updates
Highest passing rate in industry
Pass guaranteed or money back

100% Money-Back Guarantee

Don't pass? Full refund.

4.9/5

Based on 4,448+ reviews

Trusted by thousands of professionals

Join certified professionals who passed their exams with Examice

Examice helped me pass my AWS certification on the first try! The questions were incredibly similar to the real exam. Comments helped me understand answers I was struggling with.
S
Sarah C.
Cloud Engineer
Great results in a short prep time. Passed on my first attempt.
D
David K.
Network Engineer
I needed to pass an exam for work, and this website delivered. The quality for the price is outstanding, and the support is really good. I passed without issues.
M
Michael R.
Security Analyst
Skeptical at first, but impressed. Every question included clear, detailed explanations.
L
Lisa M.
Solutions Architect
The guarantee gave me confidence to invest in the premium package. Turns out I didn't need it. Passed comfortably. The explanations for each answer were incredibly detailed and helped me grasp security concepts that I'd been struggling with for months.
R
Robert H.
Cybersecurity Consultant
Used Examice for my PMP certification. The questions were well structured and covered all exam domains thoroughly.
J
James T.
IT Manager
After failing my first attempt with other study materials, I switched to Examice and passed confidently on my second attempt.
A
Anna W.
Data Engineer
The premium package was worth it. 90 days of access gave me the flexibility to study when it worked for me, without feeling rushed.
E
Emily J.
DevOps Engineer
Straightforward questions that matched the real exam perfectly. Studied for two weeks and passed with a great score.
K
Karen P.
Systems Administrator

Frequently Asked Questions

Everything you need to know. Contact us for more.

Our Microsoft 98-382 questions are based on real exam experiences and are continuously updated to match the current exam format. We maintain a +99% pass rate because our questions closely mirror what you'll see on the actual exam.

With our Premium package, you get a 100% money-back guarantee. If you don't pass your exam after studying with our materials, simply contact us with your exam results and we'll refund your purchase. Terms and conditions apply, read our full refund policy to learn more.

Our question bank is updated regularly based on feedback from recent exam takers. We typically review and update our content every week with reports about new questions or changes to the exam format.

Standard package access cannot be extended. However, Premium package gives you 90 days which is typically more than enough time to prepare thoroughly. If you need additional time, you can purchase a new package at any time.

This is a one-time payment with no recurring charges. Once you purchase, you get full access to all exam questions for the duration of your package (30 days for Standard, 90 days for Premium). No hidden fees or automatic renewals.

Pass on your first try

All 39questions · Detailed explanations · Printable PDF · 90 days access

Money-back guaranteeSecure checkout
$35

one-time payment