Session 12 Preparation — Videos, Reading and Quizzes

Quizzes:

Do this Quiz on Session 12 as you watch the videos and do the reading (as listed below). This document is a Microsoft Word document; here is the same Quiz on Session 12 (pdf) as a PDF.

You can either:

In either case, bring paper copy of the completed quiz to your Session 12 class.

Videos and Reading (online and textbook):

All of the following are required except any items labeled Optional are, well, optional (i.e., things that may be interesting but do not directly pertain to your success in this course).

  1. Box-and-Pointer Diagrams and Mutable Objects
  2. Lists are Mutable
    • Textbook reading: RE-read Section 6.1.4 — List References (bottom of page 281, 1 page).
      Focus your attention on:
      • List variables, like all variables, refer to their (list) objects.
      • Since a list object is a mutable container, it's “insides” can be changed as shown in the right-hand-side of Figure 2 on page 281.
      • The right-hand-side of Figure 2 on page 281 shows how an assignment of an element of a list does NOT change what the list variable itself refers (points) to. Rather, it MUTATES the list, i.e., changes the insides of the list.
  3. Box-and-Pointer Diagrams and Mutable Objects — Exercise