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.
TheintSubvariable keeps track of array subscripts and is initialized to 0. TheintHighSubvariable contains the highest subscript for thestrToppingsarray. Which of the following statements will traverse thestrToppingsarray?

A. Do While intSub >= intHighSub
B. For intHighSub As Integer = 0 To intSub
C. Do While intSub <= intHighSub
D. For intSub As Integer = 1 To intHighSub

Answer: C

Computer Science & Information Technology

You might also like to view...

Clicking View and then Tab Order on the Visual Studio menu bar will cause the form to be displayed in __________ mode.

a. design b. tab order selection c. default focus d. compile

Computer Science & Information Technology

You can change the order of documents in the Book panel the same way you change the order of layers in the Layers panel.

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

Computer Science & Information Technology