Question: 7. (16%) Multiple Choice Question: Select one best answer (1) What is the value of loopCount after control exits the following loop? loopCount 1 while
7. (16%) Multiple Choice Question: Select one best answer (1) What is the value of loopCount after control exits the following loop? loopCount 1 while (loopCount45) alpha - alpha7; loopCount++ A. 1 B. 46 C. 45 D. 44 (2) What is the value of somelnt after control exits the following loop? somelnt 273; while (somelnt> 500) somelnt somelnt - 3; A. 270 (3) Given the input data what is the output of the following code fragment? (All variables are of type int.) B. 497 C. 273 D. 500 25 10 6 -1 sum 0 cin >> number while (number-1) cin >> number sum sum+ number; cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
