Multiple Choice
Melissa, a computer science engineering student, is learning the basics of programming by exploring arrays. She learns about different array methods. She wishes to learn more on inserting and deleting array items. She creates monthName array to extract only the three spring months—March, April, and May—from a calendar.
-Melissa wants to extract the spring months and store them in the monthName array.Identify a method Melissa should choose to perform this task.
A) springMonths = monthName.slice(2,5) ;
B) springMonths = monthName.splice(2,3) ;
C) springMonths = monthName.slice(3,5) ;
D) springMonths = monthName.splice(5,3) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q76: The collection of commands that is run
Q77: The <u>while</u> statement is used to exit
Q78: A stack data structure employs the _
Q79: The <u>break</u> statement runs a command or
Q80: The <u>do/while</u> loop is generally used when
Q82: Identify the general syntax of the forEach
Q83: When each entry in an array matches
Q84: What is the output of the following
Q85: Identify a method that tests whether the
Q86: The _ method creates a new array