Solved

Which Set of Statements Totals the Values in Two-Dimensional Int

Question 12

Multiple Choice

Which set of statements totals the values in two-dimensional int array items?


A)
Int total = 0;
For (int subItems : items)
For (int item : subItems)
Total += item;
B)
Int total = 0;
For (int item: int[] subItems : items)
Total += item;
C)
Int total = 0;
For (int[] subItems : items)
For (int item : items)
Total += item;
D)
Int total = 0;
For (int[] subItems : items)
For (int item : subItems)
Total += item;

Correct Answer:

verifed

Verified

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

Related Questions