Leads4pass > 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 analyze the following code fragment. Line numbers are included for reference only.

Hot Area:

Buy Now
Questions 6

HOTSPOT

You work as a JavaScript developer for Adventure Works. You are writing a simple script that performs the following actions: Declares and initializes an array Fills the array with 10 random integers Adds every other number starting with the first 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 7

HOTSPOT

You are creating JavaScript code that manipulates dates. You want to initialize a Date object with the date January 1, 2017 by using the year, month, and date parameters.

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

Hot Area:

Buy Now
Questions 8

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 9

HOTSPOT

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 10

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.

Select and Place:

Buy Now
Questions 11

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?

A. document.getElementById("tester").value = randomQuote();

B. document.getElementById("tester").title = randomQuote();

C. document.getElementById("tester").innerHTML = randomQuote();

D. document.getElementById("tester").script = randomQuote();

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

This question requires that you evaluate the underlined text to determine if it is correct. You review the following JavaScript code:

When this code executes, the value of x is 0.

Review the underlined text. If it makes the statement correct, select "No change is needed". If the statement is incorrect, select the answer choice that makes the statement correct.

A. No change is needed

B. the value of x is 3

C. the value of x is 5

D. the value of x is undefined

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

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99