Case-Based Critical Thinking Questions Case 1 - Tony's Pizza & Pasta
The 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 the strDays array, with Sunday as the first element. The daily special for each day is stored in a parallel array named strSpecial . 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"
Correct Answer:
Verified
Q31: Two or more arrays whose elements are
Q36: To refer to the element located in
Q37: Based on the code below,intScores(0,0)is initialized to
Q40: Based on the statement below, which of
Q43: Write the statements to traverse the strCategory
Q44: How do the elements in parallel one-dimensional
Q45: Explain the difference between a simple variable
Q52: Write the statement that assigns the string
Q54: Write the statement to declare a six-element
Q55: Describe two advantages to using arrays to
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents