98-382 試験問題を無料オンラインアクセス
試験コード: | 98-382 |
試験名称: | Introduction to Programming Using JavaScript |
認定資格: | Microsoft |
無料問題数: | 40 |
更新日: | 2025-10-13 |
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?
HOTSPOT
You are evaluating a colleague's code to ensure it meets best practices.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
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.
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.