AP Computer Science A · Lesson 4.12 · Unit 4 · CED topic 4.11

Two-dimensional arrays

Name:   Date:  

1 Why this lesson matters

Read the opening paragraph and the "Required content" box on the lesson page. In your own words, explain each objective below.

11.A. Develop code used to represent collections of related data using two-dimensional (2D) array objects.

2 An array of arrays

Read this section. In your own words, summarize the main idea.

3 Creating a 2D array

Read this section. In your own words, summarize the main idea.

4 Rows and columns

Read this section. In your own words, summarize the main idea.

5 Worked example

Read the "Worked example" box. Then, without looking back, try writing your own answer below.

A theater stores ticket prices in a 2D array. Rows are sections, columns are seat types.

6 Exam focus: avoid this mistake

Read the "Exam focus" box, then restate it in your own words.

7 Sum it up

In two or three sentences, explain this lesson's main idea to someone who has not read it.