Multiple Choice
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 <= 3; j++)
{
Cin >> num;
Sum = sum + num;
}
Cout << sum << endl;
A) 24
B) 25
C) 41
D) 42
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: A loop _ is a set of
Q4: The number of iterations of a counter-controlled
Q20: What is the next Fibonacci number in
Q24: The function eof is a member of
Q31: A(n) _-controlled while loop uses a bool
Q35: The _ statement can be used to
Q40: Which of the following loops is guaranteed
Q41: Suppose j,sum,and num are int variables,and
Q42: What is the value of x after
Q47: What is the output of the