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:May 24, 2026
Rating
100%

Question 1

You are writing an application that uses the sqrt function. The program must reference the
function using the name squareRoot.
You need to import the function.
Which code segment should you use?

Question 2

You are writing an engineering application. You need to create a function that will round numbers to 3 or more decimal places.
You need to create a function that receives the following two parameters:
* The value parameter is the number to be formatted
* The digits parameter is the number of digits to display
The function must return the value with the number of digits specified.
Which function should you use?

Question 3

You are writing a function that calculates the remainder for integer division. The function receives two parameters, a and b, and must return the remainder that is left over when the integer a is divided by the integer b.
You create the following code. Line numbers are for reference only.

You want to complete the function for lines 02 and 03.
Which two sets of code segments should you use? Each correct answer presents a complete solution. (Choose two.)

Question 4

HOTSPOT
The ABC company offers a mid-week discount of 10% on Wednesdays.
You need to write a JavaScript function that meets the following requirements:
* Accepts the day of the week as a string
* Returns the appropriate discount
You create the following code. Line numbers are included for reference only.

You must complete the code at lines 03, 04, and 07.
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 5

HOTSPOT
Variable x has a value of 5. Variable y has a value of 7.
For each of the following expressions, select True if the statement evaluates to true.
Otherwise, select False.
NOTE: Each correct selection is worth one point.

Add Comments

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

insert code
Type the characters from the picture.