?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 remove spring months from the monthName array. Which of the following methods should Melissa use?
A. ?springMonths = monthName.slice(2, 5);
B. ?springMonths = monthName.splice(2, 3);
C. ?springMonths = monthName.slice(3, 5);
D. ?springMonths = monthName.splice(5, 3);
Answer: B
You might also like to view...
A special value that marks the end of a list of input data is called a __________.
a. terminal value b. sentinel value c. loop control value d. input value e. loop termination value
The Surface covers come with a built-in trackpad
Indicate whether the statement is true or false
To personalize a publication, you must have the information stored in a data source such as Access
Indicate whether the statement is true or false
As others make changes to a shared workbook, you can view and track the changes by viewing the Document Inspector
Indicate whether the statement is true or false