IT認証試験問題集
毎月、ITshikenは1500人以上の受験者が試験準備を助けて、試験に合格するために受験者にご協力します
 ホームページ / 98-382 問題集  / 98-382 問題練習

Microsoft 98-382 問題練習

Introduction to Programming Using JavaScript 試験

最新更新時間: 2019/07/10,合計16問。

平成から令和へ:98-382 最新真題を買う時、日本語版と英語版両方を同時に獲得できます。

実際の問題集を練習し、試験のポイントを了解し、テストに申し込むするかどうかを決めることができます。

さらに試験準備時間の35%を節約するには、98-382 問題集を使用してください。

 / 2

Question No : 1
HOTSPOT
You analyze the following code fragment. Line numbers are included for reference only.






正解:

Question No : 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?



正解:
Explanation: https://www.w3schools.com/jsref/jsref_tofixed.asp

Question No : 3
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.



正解:

Question No : 4
DRAG DROP
A JavaScript array is initialized as follows:



You write the following code to manipulate the array:



You need to determine the contents of the array.
Which four elements does the array contain in sequence? To answer, move the appropriate elements from the list of elements to the answer area and arrange them in the correct order.



正解:


Explanation: https://www.bennadel.com/blog/1796-javascript-array-methods-unshift-shift-push-and-pop.htm

Question No : 5
HOTSPOT
You evaluate the following code:



You need to determine the values of sampleStudent, sampleCourse.name, and sampleCourse.grade that are output by console.log().
What are the final values for the three variables? To answer, select the appropriate values in the answer area.



正解:


Explanation: https://www.w3schools.com/js/js_output.asp

Question No : 6
DRAG DROP
You are creating a web page that tests a user’s ability to accurately type text. The validation should be case-insensitive.
How should you complete the code? To answer, drag appropriate functions to the correct locations. Each function 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.



正解:


Explanation: https://www.w3schools.com/jsref/prop_text_value.asp

Question No : 7
You are creating a web page that allows customers to choose how hot their spice is. If they choose spicy, a warning should be displayed.
You create the following form. Line numbers are included for reference only.



You create the following JavaScript code to display the warning.



When you choose spicy and click Order, the warning fails to display.
You need to solve this problem.
What should you do?

正解:
Explanation:
Explanation: https://www.w3schools.com/jsref/coll_doc_forms.asp

Question No : 8
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.



正解:


Explanation: https://www.w3schools.com/tags/ref_httpmethods.asp

Question No : 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.



正解:


Explanation: https://www.w3schools.com/jsref/jsref_eval.asp

Question No : 10
DRAG DROP
You are creating a web page that requests a username.
You create the following HTML form:



You need to write a function that retrieves the username from the form.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each function 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.



正解:


Explanation: https://www.w3schools.com/jsref/coll_doc_forms.asp

Question No : 11
You are writing a JavaScript program for Contoso Suites that will output HTML.
You need to output each room type on a new line using the correct method.
You create the following code for the function. Line numbers are included for reference only.



You need to insert the correct code at Line 9. Which line should you use?

正解:

Question No : 12
You are creating a dynamic HTML page by using JavaScript.
Your page has an image of the sun. When the user’s mouse pointer moves across the image of the sun, the image should change to the image of the moon. When the user’s mouse pointer is no longer over the image should change back to the image of the sun.
You need to write the code for the image swap.
Which two events must you program for? (Choose two.)

正解:
Explanation: https://www.w3schools.com/jsref/dom_obj_event.asp

Question No : 13
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.



正解:


Explanation: https://www.w3schools.com/jsref/met_element_getelementsbytagname.asp

Question No : 14
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?

正解:
Explanation:
Explanation: https://www.w3schools.com/html/html_scripts.asp

Question No : 15
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.



正解:


Explanation: https://www.w3schools.com/js/js_window_location.asp

 / 2