Suppose sum, num, and j are int variables, and the input is 4 7 12 9 -1. What is the output of the following code?cin >> sum;cin >> num;for (j = 1; j > num;
sum = sum + num;}cout
A. 24
B. 25
C. 41
D. 42
Answer: A
Computer Science & Information Technology
You might also like to view...
Which of the following should you NOT do to secure a wireless network?
a. Implement media access control. b. Keep the default network name and router password. c. Create a security encryption passphrase. d. Disable SSID broadcasting.
Computer Science & Information Technology
A computer that requests the services of a server is best known as a:
A) user B) customer C) patron D) client
Computer Science & Information Technology
Which type of virus propagates itself by tunneling through the Internet and networks?
A. Macro B. Phishing C. Trojan D. Worm
Computer Science & Information Technology
The _____ element creates a variable as a user-defined name that stores a value or an object.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology