Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Case-Based Critical Thinking Questions Case 1 - Tony’s Pizza & Pasta The restaur

ID: 3851177 • Letter: C

Question

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.

Which of the following statements declares a class-level one-dimensional array named strToppings that stores the 14 available pizza toppings?

Dim strToppings(13) As String

Private strToppings(13) As String

Private strToppings(14) As String

Dim strToppings(14) As String

a.

Dim strToppings(13) As String

b.

Private strToppings(13) As String

c.

Private strToppings(14) As String

d.

Dim strToppings(14) As String

Explanation / Answer

The answer to the above stated question is

a.)Dim strToppings(13) As String

The reason behind this is that it is in the class-level one dimensional array which is named strToppings and as the index of the array starts from 0.Hence, the number inside the function must be 13 to keep 14 string values. Hence, option A is the perfect option.

Please rate the answer if it helped.....Thankyou

Hope it helps....