Solved

Identify the Correct Select Case Statement That Checks the Value

Question 21

Multiple Choice

Identify the correct Select Case statement that checks the value of a variable intMyNum and assigns a value using the following guidelines:
value 1 or 7 or 15 add 100 to the variable
Value 2 or 9 or 21 add 150 to the variable
Value 3 or 6 or 13 add 200 to the variable
None of the above set txtOutput.Text to "Cannot find it"


A) Select Case Value Case intMyNum = 1 Or 7 or 15
IntMyNum += 100
Case intMyNum = 2 Or 9 or 21
IntMyNum += 150
Case intMyNum= 3 Or 6 or 13
IntMyNum += 200
Case else
TxtOutput.Text = "Cannot find it"
End Case
B) Select Case intMyNum Case value = 1, 7, 15
IntMyNum += 100
Case value = 2, 9, 21
IntMyNum += 150
Case value = 3, 6, 13
IntMyNum += 200
Case else
TxtOutput.Text = "Cannot find it"
End Case
C) Select Case intMyNum Case 1, 7, 15
IntMyNum += 100
Case 2, 9, 21
IntMyNum += 150
Case 3, 6, 13
IntMyNum += 200
Case else
TxtOutput.Text = "Cannot find it"
End Case
D) Select Case intMyNum Case value = 1 Or value = 7 or value = 15
IntMyNum += 100
Case value = 2 Or value = 9 or value = 21
IntMyNum += 150
Case value = 3 or value = 6 Or value = 13
IntMyNum += 200
Case else
TxtOutput.Text = "Cannot find it"
End Case

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents