Question: What is displayed when the code corresponding to the following program segment is run and the input is as follows: (a) -1 (b) 0 (c)

What is displayed when the code corresponding to the following program segment is run and the input is as follows:

(a) -1

(b) 0

(c) 1

Set Numberl = 1 Input Number2 Select Case Of Number2 Case -1: Write

Set Numberl = 1 Input Number2 Select Case Of Number2 Case -1: Write "A" Break Case 0: Write "B" Break Case Numberl: Write "C" Break End Case

Step by Step Solution

3.47 Rating (173 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a A b B ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Prelude to Programming Questions!