Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 5.1 What are Data Structures?

Description

In this lesson, students will learn about four types of Data Structures. An array is a list of fixed size. An array list is a list of changing size. A 2D-Array is a grid, table, or list of lists. A Hash Map is a Key-Value store.


Objective

Students will be able to:

  • Explain the difference between an Array, an Array List, a 2D Array, and a Hash Map.
  • Choose the correct Data Structure for a given purpose
  • Understand how Data Structures fit into their programs