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:
Verified
Q16: If the Boolean expression A is True
Q17: What value is assigned to decTaxes by
Q18: Which of the following code segments assigns
Q19: Which statement assigns the string strAddress to
Q20: What value will be assigned to intIndex
Q22: The If…Then…Else statement follows only one of
Q23: The expression Integer.TryParse("12.5", intNbr) performs the following:
A)
Q24: The expression Single.TryParse("12.5", sngNbr) performs the following:
A)
Q25: Which of the following operators takes a
Q26: It is not possible to use a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents