Examine the code and indicate what text would be displayed on the screen during
ID: 3767408 • Letter: E
Question
Examine the code and indicate what text would be displayed on the screen during the Console.WriteLine statement.
int iDayNumber = 8;
String sDayName = "";
switch (iDayNumber) {
case 1: sDayName = "Sunday"; break;
case 2: sDayName = "Monday"; break;
case 3: sDayName = "Tuesday"; break;
case 4: sDayName = "Wednesday"; break;
case 5: sDayName = "Thursday"; break;
case 6: sDayName = "Friday"; break;
case 7: sDayName = "Saturday"; break;
default: sDayName = "Unknown"; break;
} Console.WriteLine(sDayName);
Explanation / Answer
Unknown
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.