Pass4itsure > Microsoft > Microsoft Certifications > 98-382 > 98-382 Online Practice Questions and Answers

98-382 Online Practice Questions and Answers

Questions 4

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.

Hot Area:

Buy Now
Questions 5

HOTSPOT

You need to evaluate the following code segment. Line numbers are included for reference only.

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the code segment.

Hot Area:

Buy Now
Questions 6

HOTSPOT

You analyze the following code fragment. Line numbers are included for reference only.

Hot Area:

Buy Now
Questions 7

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.

Hot Area:

Buy Now
Questions 8

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.

Hot Area:

Buy Now
Questions 9

HOTSPOT

You are creating a calendar application. You need to ensure that the code works correctly for all months of the year.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Buy Now
Questions 10

HOTSPOT

You are creating a function that does safe division.

The function has the following requirements:

The function receives two parameters for the numerator and denominator.

If the denominator is zero, the function must return false.

If the denominator is not zero, the function must return true.

You write the following code. Line numbers are included for reference only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Hot Area:

Buy Now
Questions 11

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.

Hot Area:

Buy Now
Questions 12

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?

A. Option A

B. Option B

C. Option C

D. Option D

Buy Now
Questions 13

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.)

A. Option A

B. Option B

C. Option C

D. Option D

E. Option E

F. Option F

Buy Now
Exam Code: 98-382
Exam Name: Introduction to Programming Using JavaScript
Last Update: Jan 12, 2025
Questions: 39
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99