Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use the code shown in Figure 5-41 to answer Questions 6 through 9. If code = \"A

ID: 3813881 • Letter: U

Question

Use the code shown in Figure 5-41 to answer Questions 6 through 9. If code = "A" Then plan = "Standard" ElseIf code = "C" OrElse code = "T" Then plan = "Deluxe" ElseIf code = "R" Then plan = "Premier" Else plan = "Invalid code" End If What will the code in Figure 5-41 assign to the plan variable when the code variable contains the letter T? a. Deluxe b. Premier c. Standard d. Invalid code What will the code in Figure 5-41 assign to the plan variable when the code variable contains the letter R? a. Deluxe b. Premier c. Standard d. Invalid code What will the code in Figure 5-41 assign to the plan variable when the code variable contains the letter C? a. Deluxe b. Premier c. Standard d. Invalid code What will the code in Figure 5-41 assign to the plan variable when the code variable contains the letter X? a. Deluxe b. Premier c. Standard d. Invalid code

Explanation / Answer

6. Ans: a. Delux

here code value = "T", so Elseif code = "T" return true

7. Ans: b. Premier

8. Ans: a. Delux

9. Ans: Invalid code