?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");
Answer: D
Computer Science & Information Technology
You might also like to view...
The ________ function returns the current system date and time
A) Now B) DatePart C) Date D) DateSerial
Computer Science & Information Technology
When influencing the STP priority by using the root command, what will the priority of the local switch become if all other switches have their default priorities?
A) 24,576 B) 32,768 C) 8192 D) 4096
Computer Science & Information Technology