Learning Resource Type

Classroom Resource

Computer Science Principles Unit 5 Chapter 2 Lesson 13: Introduction to Arrays

Subject Area

Digital Literacy and Computer Science

Grade(s)

9, 10, 11, 12

Overview

This lesson introduces arrays as a means of storing lists of information within a program. The class begins by highlighting the difficulties that arise when trying to store lists of information in a variable. Students then watch a short video introducing arrays and a subset of the operations that can be performed with them. Students will work in Code Studio for the remainder of the class as they practice using arrays in their programs. At the conclusion of the sequence, students build a simple app which can be used to store and cycle through a list of their favorite things. In the next lesson, students will continue working with a version of this app that can display images and not just text strings.

Students will be able to:
- identify an array as a data structure used to store lists of information in programs.
- create arrays and access information stored within them using an index.
- manipulate an array using the append, insert, and remove operations.
- account for the fact that JavaScript arrays are zero-indexed when using them in a program.

Note: You will need to create a free account on code.org before you can view this resource.

    Digital Literacy and Computer Science (2018) Grade(s): 09-12

    DLCS18.HS.7

    Compare and contrast fundamental data structures and their uses.

    Unpacked Content

    UP:DLCS18.HS.7

    Vocabulary

    • data structures
    • arrays
    • stacks
    • queues
    • list
    • strings

    Knowledge

    Students know:
    • when to include varying types of data structures into a program to achieve a desired result.

    Skills

    Students are able to:
    • compare and contrast fundamental data structures and their uses.
    • properly use varying types of data structures in a program to achieve a desired result.

    Understanding

    Students understand that:
    • data structures organize data for ease of recall.
    • data structures differ by organization structure and purpose.
    Link to Resource

    CR Resource Type

    Lesson/Unit Plan

    Resource Provider

    Code.org
    Accessibility
    License

    License Type

    Custom
    ALSDE LOGO