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
Q6: Consider the statement int list[10][8];.Which of the
Q10: Assume you have the following declaration int
Q14: All components of an array are of
Q21: Which of the following correctly declares name
Q26: A collection of a fixed number of
Q27: In a(n) _ data type, each data
Q29: Suppose that gamma is an array of
Q37: Suppose that sales is an array of
Q38: When you pass an array as a
Q40: Consider the following declaration: int alpha[5] =