Learning objectives

Write code that finds the sum, average, maximum or minimum of the values in an array, guarding against an array with no elements

Write code that decides whether at least one element or every element has a property, counts the elements that have it, or returns the index of the first or last such element

Write code that examines every pair of neighboring elements, or that uses a nested traversal to detect duplicate values

Write code that shifts, rotates or reverses the elements of an array in place, using a temporary variable so that no value is lost

Write code that builds a new array from selected or rearranged elements of an existing one, or that traverses two arrays in step

Choose between an indexed loop and an enhanced for loop for a stated array task, and justify the choice from what the algorithm must do

Continue with a revision plan

These learning objectives are available to everyone. Sign in with an eligible plan to read the full note and worked examples.