Suppose sum and num are int variables, and the input is 18 25 61 6 -1. What is the output of the following code?sum = 0;cin >> num;while (num != -1){ sum = sum + num; cin >> num;}cout
A. 92
B. 109
C. 110
D. 119
Answer: C
Computer Science & Information Technology
You might also like to view...
Which of the following choices makes up one of the two-step stages of development?
A. Detailed design process B. Software implementation process C. Software integration process D. Quality assessment process
Computer Science & Information Technology
Suppose that you insert 100 keys in ascending order into a red-black BST. What is the height of the resulting tree?
a. 7 b. 100 c. 10 d. 5
Computer Science & Information Technology
Clicking a command that is followed by an ellipsis will cause a dialog box to display
Indicate whether the statement is true or false
Computer Science & Information Technology
Discuss the Diffusion of Innovation theory. What is the difference between an innovator and a laggard?
What will be an ideal response?
Computer Science & Information Technology