Multiple Choice
Given the following declaration: which of the following correctly finds the sum of the elements of the fifth row of sale?
A) sum = 0;
For(j = 0; j < 7; j++)
Sum = sum + sale[5][j];
B) sum = 0;
For(j = 0; j < 7; j++)
Sum = sum + sale[4][j];
C) sum = 0;
For(j = 0; j < 10; j++)
Sum = sum + sale[5][j];
D) sum = 0;
For(j = 0; j < 10; j++)
Sum = sum + sale[4][j];
Correct Answer:

Verified
Correct Answer:
Verified
Q29: Suppose that gamma is an array of
Q30: Which of the following statements declares alpha
Q31: Suppose that list is an array of
Q32: In a two-dimensional array, the elements are
Q33: What is the value of alpha[2] after
Q35: Given the declaration int list[20]; the statement
Q36: The word _ is used before the
Q37: Suppose that sales is an array of
Q38: When you pass an array as a
Q39: After the following statements execute, what are