?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 __________ causes the content of another file to be inserted into a program.

a. cout object b. double slash (//) c. #include directive d. semicolon (;) e. None of these

Computer Science & Information Technology

Match the following terms to their meanings:

I. Protects a computer from hackers and malware A. inbound traffic II. Tech-savvy person who tries to gain unauthorized access B. exception list III. Data sent to your computer from other computers on C. outbound traffic the Internet IV. Data sent from your computer to another computer on D. firewall the Internet V. Used on a computer to ensure that a program will not E. hacker be blocked

Computer Science & Information Technology

When performing a Bing search, placing ________ around your search term limits the search results to only those webpages that contain the exact phrase

A) brackets - [ ] B) parentheses - ( ) C) braces - { } D) quotation marks - " "

Computer Science & Information Technology

SSL VPNs require special client software to work.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology