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 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
Q3: The one place where C++ allows aggregate
Q22: The _ of an array is the
Q24: Consider the following declaration: char str[15];.Which of
Q25: What is the output of the
Q26: The function _ returns the length of
Q27: In a(n) _ data type, each data
Q29: Suppose that gamma is an array of
Q34: The following statements store the value _
Q35: Given the declaration int list[20]; the statement
Q36: The word _ is used before the