Does this meet the goal?

Note: This question is pert of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have the following C# code. (Line numbers are included for reference only.)

You need the foreach loop to display a running total of the array elements, as shown in the following output.
136
10
15
Solution: You insert the following code at line 02:

Does this meet the goal?
A. Yes
B. No

microsoft-exams

5 thoughts on “Does this meet the goal?

  1. Please change the requirement .It was something like this:
    “You need the foreach loop to display a running total of the array elements, as shown in the following output.
    1
    3
    6
    10
    15

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.