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.
You have decided the Daily "Chef's Specials" need to be stored in a two-dimensional array rather than two parallel one-dimensional arrays. Which of the following statements will declare the array as a procedure-level array namedstrDailySpecial? The number of rows is based on the number of days in the week, and Sunday remains the first element for the days of the week.

A. Dim strDailySpecial(6, 1) As String
B. Dim strDailySpecial(7, 2) As String
C. Dim strDailySpecial(1, 6) As String
D. Dim strDailySpecial(2, 7) As String

Answer: A

Computer Science & Information Technology

You might also like to view...

Access lets you update table records from a query datasheet if the query is based on tables that have a ____ relationship.

A. one-to-one B. many-to-many C. many-to-one D. one-to-many

Computer Science & Information Technology

What is the output of the following code?

``` public class Test { public static void main(String[] args) { String s1 = "Welcome to Java!"; String s2 = s1; if (s1 == s2) System.out.println("s1 and s2 reference to the same String object"); else System.out.println("s1 and s2 reference to different String objects"); } }``` a. s1 and s2 reference to the same String object b. s1 and s2 reference to different String objects

Computer Science & Information Technology