Case-Based Critical Thinking Questions
?
Case 1: Tony's Pizza & Pasta
?
Tony's Pizza & Pasta restaurant uses an application to update and display menu items and the related price information.
Daily "Chef's Specials" are stored using two one-dimensional parallel arrays. The days of the week are stored in thestrDaysarray, with Sunday as the first element. The daily special for each day is stored in a parallel array namedstrSpecial. Which of the following statements assigns Friday's special, which is rigatoni, to the appropriate element?

A. strSpecial(6) = rigatoni
B. strSpecial(5) = rigatoni
C. strSpecial(6) = "rigatoni"
D. strSpecial(5) = "rigatoni"


Answer: D

Computer Science & Information Technology

You might also like to view...

A ________ uses electronic memory and has no motors or moving parts

A) digital video disc B) solid-state drive C) Blu-ray disc D) mechanical hard drive

Computer Science & Information Technology

NAP is an umbrella of security protection features that monitor and manage a server and its clients.

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

Computer Science & Information Technology

Which of the following is described as "when a person's identity is confirmed or verified through the use of a specific system"?

A. Identification B. Authorization C. Authentication D. Access control

Computer Science & Information Technology

In a switch statement, the word ____ is optional and operates the same as the last else in an if-else chain.

A. if B. break C. case D. default

Computer Science & Information Technology