1. Based on the following C++ code fragment:
int k;cin >> k;switch (k) {case 4:case 3: k = k + 5;if (k == 9)break;k -= 4;break;case 1: k += 3;default: k++;} cout < "k = " << k << endl;
a) what is displayed on the screen if the value input for k is 1 ?a. k = 5b. k = 3c. k = 4d. k = 6b) what is displayed on the screen if the value input for k is 4 ?a. k = 5b. k = 8c. k = 9d. k = 7c) what is displayed on the screen if the value input for k is 3 ?a. k = 8b. k = 5c. k = 7d. k = 4
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here