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:

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:

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.
Hot Area:

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:

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:

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.
Select and Place:

DRAG DROP
Your instructor has asked you to implement code that would display a two-dimensional array of any size inside a
You write the following code:

You need to complete the code.
Which three 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.
Select and Place:

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.)
A. onmouseup
B. onmouseout
C. onmosedown
D. onmouseover
E. onmouseenter
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
You are creating a JavaScript program for an accounting system.
You create the following code. Line numbers are included for reference only.

You evaluate the code to ensure that it follows JavaScript best practices. Which two lines should you change?
A. 01
B. 02
C. 03
D. 04
E. 05