Solved

Case-Based Critical Thinking Questions Case 9-1 Melissa, a Computer Science

Question 72

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents