Online Access Free 98-382 Exam Questions

Exam Code:98-382
Exam Name:Introduction to Programming Using JavaScript
Certification Provider:Microsoft
Free Question Number:40
Posted:Jun 03, 2026
Rating
100%

Question 1

You are creating a web page that allows customers to choose how hot their spice is. If they choose spicy, a warning should be displayed.
You create the following form. Line numbers are included for reference only.

You create the following JavaScript code to display the warning.

When you choose spicy and click Order, the warning fails to display.
You need to solve this problem.
What should you do?

Question 2

HOTSPOT
You are designing a function that allows you to perform unit tests on other functions in a library. You will invoke each library function by using the eval JavaScript function. If an exception occurs when invoking a function, you want to display a message box with the following message:
The function does not exist.
How should you complete the code? To answer, select the appropriate code segment in the answer area.
NOTE: Each correct selection is worth one point.

Question 3

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:

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.

Question 4

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?

Question 5

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.

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.