What will be in text, if Intid contains 3? Select Case Intid Case 1 Text=”Jannet” Case 2 to 4 Text=”Mark” Case 5, 7 Text=”Jerry” Case Else Text=”Sue” End Select

Jannet
Mark
Jerry
Sue

The correct answer is B. Mark.

The Select Case statement is used to select one of several statements to execute based on the value of a variable. In this case, the variable is Intid. The Case statements are evaluated in order, and the first Case statement that matches the value of Intid is executed. In this case, the value of Intid is 3, which matches the Case statement Case 2 to 4. Therefore, the statement Text=”Mark” is executed.

The other options are incorrect because they do not match the value of Intid. Option A, Jannet, would be executed if the value of Intid were 1. Option C, Jerry, would be executed if the value of Intid were 5 or 7. Option D, Sue, would be executed if the value of Intid were anything else.

Exit mobile version