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

98-382 Online Practice Questions and Answers

Questions 4

HOTSPOT

For each of the following segments, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.

Hot Area:

Buy Now
Questions 5

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 6

HOTSPOT

Your instructor has asked you to write a program that uses simple rules to help determine if a person should take the train, drive their car, or ride a bike, depending on the conditions of the weather and the amount of gas in the car's tank.

The program has the following requirements:

When the temperature is above 65 degrees and it is not raining, the person should be told to ride their bike.

When it is raining, the person should be told to drive their car.

If their car has half a tank of gas or less, they should be told to take the train.

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

Hot Area:

Buy Now
Questions 7

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 8

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:

Buy Now
Questions 9

DRAG DROP

You are using JavaScript to create a calculator.

You create the following HTML. Line numbers are included for reference only.

You must create a function named add() that adds the values in the a and b input elements and displays the result in the result input element.

You define the following function in JavaScript:

function add() {

}

You need to complete the body of the function.

Which three code segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.

NOTE: Each correct selection is worth one point.

Select and Place:

Buy Now
Questions 10

DRAG DROP

You need to write a loop that will traverse the length of an array to find the value orange. If an array element value is null, the code should immediately go to the next element. When the value is found, the loop should exit.

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

Buy Now
Questions 11

DRAG DROP

You are developing a web page that uses JavaScript. The script needs to display information to the user using a popup box.

Match each function that displays a popup box with its appropriate scenario.

To answer, drag the appropriate function from the column on the left to its appropriate scenario on the right. Each function may be used once, more than once, or not at all.

NOTE: Each correct selection is worth one point.

Select and Place:

Buy Now
Questions 12

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 13

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
Exam Code: 98-382
Exam Name: Introduction to Programming Using JavaScript
Last Update: Jun 01, 2026
Questions: 39
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99