Multiple Choice
Given the following declaration:int j; int sum;
Double sale[10][7];
Which of the following correctly finds the sum of the elements of the fourth column of sale?
A) sum = 0;
For(j = 0; j < 7; j++)
Sum = sum + sale[j][3];
B) sum = 0;
For(j = 0; j < 7; j++)
Sum = sum + sale[j][4];
C) sum = 0;
For(j = 0; j < 10; j++)
Sum = sum + sale[j][4];
D) sum = 0;
For(j = 0; j < 10; j++)
Sum = sum + sale[j][3];
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Consider the following declaration:char charArray[51]; char discard;<br>Assume
Q3: The one place where C++ allows aggregate
Q4: The statement int list[25]; declares list to
Q5: What is the output of the following
Q6: Consider the statement int list[10][8];.Which of the
Q7: Suppose list is a one dimensional array
Q8: Assume you have the following declaration double
Q9: Assume you have the following declaration char
Q10: Assume you have the following declaration int
Q11: The form of the for loop shown