Multiple Choice
Case-Based Critical Thinking Questions Case 9-1 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 insert abbreviations of spring months into the monthName array. Which of the following methods should she use?
A) monthName.reverse(5, 3, "Mar", "Apr", "May") ;
B) monthName.sort(2, 3, "Mar", "Apr", "May") ;
C) monthName.join(5, 3, "Mar", "Apr", "May") ;
D) monthName.splice(2, 3, "Mar", "Apr", "May") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q18: Identify the expression used to reference array
Q31: Identify the general syntax of the forEach
Q32: Case-Based Critical Thinking Questions Case 9-2 Gregor,
Q35: What is the output of the following
Q37: Case-Based Critical Thinking Questions Case 9-2 Gregor,
Q39: Identify the output of the following code.
Q40: Case-Based Critical Thinking Questions Case 9-1 Melissa,
Q51: When a <u>pass </u>statement is encountered,control is
Q58: <u>Statement labels</u> are used to identify statements
Q60: Identify a method that decreases array by