Solved

Given the Following Declaration: Which of the Following Correctly

Question 39

Multiple Choice

Given the following declaration: Given the following declaration:   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]; 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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions