Skip to main content

Section 9.12 Arrays-WE4-P1

Subsection 9.12.1 Subgoals for Evaluating Arrays

  1. Set up array from 0 to size-1

  2. Evaluate data type of statements against array

  3. Trace statements, updating slots as you go

    1. Remember assignment subgoals

Subsection 9.12.2 Arrays-WE4-P1

Exercises Exercises

1.

Q37: Given the following code, what is the value in sum after execution?

2.

Q38: Given the following code, what is the value in sum after execution?

You have attempted of activities on this page.