Solved

Given the Following Declaration: Which of the Following Correctly

Question 25

Multiple Choice

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

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents