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

11. (TCO 4) Which of the following expressions is correct if you want to end a w

ID: 3657567 • Letter: 1

Question

11.(TCO 4) Which of the following expressions is correct if you want to end a while-loop when the character variableansweris anything other than the character 'y' in either upper or lower case?(Points : 5) while(answer == 'y' && answer == 'Y')
while(answer == "y" && answer == "Y")
while(answer == 'y' || answer == 'Y')
while(answer == "y" || answer == "Y") 11.(TCO 4) Which of the following expressions is correct if you want to end a while-loop when the character variableansweris anything other than the character 'y' in either upper or lower case?(Points : 5)

Explanation / Answer

correct answer is: while(answer == 'y' || answer == 'Y')

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote