Microsoft 98-382 - Introduction to Programming Using JavaScript Exam

Question #11 (Topic: Topic 1)
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.
Select and Place:
[Microsoft-98-382-1.0/xmlfile-23_1.jpg]
Answer: [Microsoft-98-382-1.0/xmlfile-25_1.jpg]
Question #12 (Topic: Topic 1)
HOTSPOT
You evaluate the following code:
[Microsoft-98-382-1.0/xmlfile-26_1.png]
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.
Hot Area:
[Microsoft-98-382-1.0/xmlfile-27_1.jpg]
Answer: [Microsoft-98-382-1.0/xmlfile-28_1.jpg]
Question #13 (Topic: Topic 1)
DRAG DROP
A JavaScript array is initialized as follows:
[Microsoft-98-382-1.0/xmlfile-28_2.png]
You write the following code to manipulate the array:
[Microsoft-98-382-1.0/xmlfile-29_1.png]
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.
Select and Place:
[Microsoft-98-382-1.0/xmlfile-29_2.png]
Answer: [Microsoft-98-382-1.0/xmlfile-30_1.png]
Question #14 (Topic: Topic 1)
HOTSPOT
You need to evaluate the following code segment. Line numbers are included for reference only.
[Microsoft-98-382-1.0/xmlfile-30_2.png]
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:
[Microsoft-98-382-1.0/xmlfile-32_1.png]
Answer: [Microsoft-98-382-1.0/xmlfile-34_1.png]
Question #15 (Topic: Topic 1)
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?
[Microsoft-98-382-1.0/xmlfile-35_3.png]
A.
[Microsoft-98-382-1.0/xmlfile-35_4.png]
B.
[Microsoft-98-382-1.0/xmlfile-35_5.png]
C.
[Microsoft-98-382-1.0/xmlfile-35_6.png]
D.
Answer: C
Download Exam
Page: 3 / 8
Total 39 questions