Please enable JavaScript to use CodeHS

IN CS 2: CSII-4.6

CodeHS Lessons

Implement fundamental programming constructs, including data types, control structures, methods, and arrays.

Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
5.4 If Statements
5.5 For Loops in JavaScript
5.6 General For Loops
5.7 For Loop Practice
5.9 While Loops
25.1 Intro to Lists/Arrays
25.2 Indexing Into an Array
25.3 Adding/Removing From an Array
25.4 Array Length and Looping Through Arrays
25.5 Iterating Over an Array
25.6 Finding an Element in a List
25.7 Removing an Element From an Array
Standard
1.9 For Loops
1.10 If Statements and Conditionals
1.11 If/Else Statements
1.12 While Loops
1.14 Control Structures Example
6.2 If/Else Statements
6.6 While Loops
6.9 For Loops
22.1 Intro to Lists/Arrays
22.2 Indexing Into an Array
22.3 Adding/Removing From an Array
22.4 Array Length and Looping Through Arrays
22.5 Iterating Over an Array
22.6 Finding an Element in a List
22.7 Removing an Element From an Array
Standard
2.4 For Loops
2.10 Top Down Design
2.16 If Statements
2.17 If/ Else Statements
2.18 While Loops
2.19 Putting Together Control Structures
4.2 If Statements
5.1 While Loops
5.2 For Loops
8.2 Lists
8.3 For Loops and Lists
8.4 List Methods
9.1 2d Lists
Standard
6.1 Array
7.1 ArrayList
Standard
3.4 Variables
4.4 If Statements
4.10 While Loops
5.1 Functions and Parameters 1
5.2 Functions and Parameters 2
5.3 Functions and Parameters 3
7.1 Intro to Lists/Arrays
Standard
4.4 If Statements
4.10 While Loops
5.1 Functions and Parameters 1
5.2 Functions and Parameters 2
5.3 Functions and Parameters 3
7.1 Tuples
7.2 Lists
Standard
3.4 Variables
4.4 If Statements
4.11 While Loops
5.1 Functions and Parameters 1
5.2 Functions and Parameters 2
5.3 Functions and Parameters 3
7.1 Intro to Lists/Arrays
Standard
13.4 For Loops
13.10 Top Down Design
13.16 If Statements
13.17 If/ Else Statements
13.18 While Loops
13.19 Putting Together Control Structures
Standard
4.4 JavaScript Objects
9.8 If Statements
9.9 For Loops in JavaScript
9.10 For Loop Practice
9.12 While Loops
9.19 Intro to Lists/Arrays
9.20 Indexing Into an Array
9.21 Adding/Removing From an Array
9.22 Array Length and Looping Through Arrays
Standard
4.1 Programming Concepts
4.5 Arrays and Objects
22.4 If Statements
22.5 For Loops in JavaScript
22.6 General For Loops
22.7 For Loop Practice
22.9 While Loops
Standard
2.2 For Loops
3.5 Top Down Design
5.1 If Statements
5.2 If/ Else Statements
5.3 While Loops
6.1 Putting Together Control Structures
Standard
3.4 For Loops
3.10 Top Down Design
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
6.4 For Loops
6.10 Top Down Design
6.16 If Statements
6.17 If/ Else Statements
6.18 While Loops
6.19 Putting Together Control Structures
Standard
2.19 Functions and Return Values 1
2.20 Functions and Return Values 2
8.1 Intro to Lists/Arrays
8.8 Intro to Objects/Maps
Standard
7.11 For Loops
Standard
6.2 Lists
6.3 For Loops and Lists
6.4 List Methods
6.5 2d Lists
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
4.2 If Statements
5.1 While Loops
5.2 For Loops
7.1 Loops
7.2 If/Else Statements
7.4 Functions
9.2 Lists
9.3 For Loops and Lists
9.4 List Methods
10.1 2d Lists
12.1 Arduino Challenges
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
6.4 If Statements
6.5 For Loops in JavaScript
6.6 General For Loops
6.7 For Loop Practice
6.9 While Loops
10.1 Loops
10.2 If/Else Statements
10.4 Functions
14.1 Arduino Challenges
Standard
2.2 For Loops
3.5 Top Down Design
6.1 If Statements
6.2 If/ Else Statements
6.3 While Loops
7.1 For Loops
7.2 While Loops
7.4 If/Else Statements
7.5 Functions
8.1 Putting Together Control Structures
9.1 micro:bit Challenges
Standard
7.1 For Loops
7.2 While Loops
7.4 If/Else Statements
7.5 Functions
10.1 micro:bit Challenges
Standard
2.1 For Loops
2.2 While Loops
2.4 If/Else Statements
2.5 Functions
3.1 micro:bit Challenges
Standard
2.1 Loops
2.2 If/Else Statements
2.4 Functions
3.1 Arduino Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.1 For Loops
14.2 While Loops
14.4 If/Else Statements
14.5 Functions
15.1 micro:bit Challenges
Standard
1.9 For Loops
1.10 While Loops in Karel
1.11 If Statements
1.12 If/Else Statements
2.2 Variables and Types
2.5 Casting
2.6 Booleans
2.9 For Loops
2.10 While Loops
2.11 If Statements
3.1 Java Methods
3.2 Methods and Parameters
3.3 Methods and Return Values
5.2 Introduction to Arrays
5.3 Using Arrays
Standard
5.2 Introduction to Arrays
5.3 Using Arrays
5.5 ArrayList Methods
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
8.4 If Statements
8.5 For Loops in JavaScript
8.6 General For Loops
8.7 For Loop Practice
8.9 While Loops
10.12 Intro to Lists/Arrays
10.13 Adding/Removing From an Array
10.14 Array Length and Looping Through Arrays
10.15 Iterating Over an Array
13.1 Indexing Into an Array
13.2 Finding an Element in a List
13.3 Removing an Element From an Array
Standard
3.10 For Loops
3.11 If Statements
3.12 If/Else Statements
3.13 While Loops in Karel
3.14 Control Structures Example
8.4 If Statements
8.5 For Loops in JavaScript
8.6 General For Loops
8.7 For Loop Practice
8.9 While Loops
10.11 Intro to Lists/Arrays
10.12 Adding/Removing From an Array
10.13 Array Length and Looping Through Arrays
10.14 Iterating Over an Array
17.1 Indexing Into an Array
17.2 Finding an Element in a List
17.3 Removing an Element From an Array
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.1 For Loops
14.2 While Loops
14.4 If/Else Statements
14.5 Functions
15.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.1 For Loops
14.2 While Loops
14.4 If/Else Statements
14.5 Functions
15.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
9.4 If Statements
9.5 For Loops in JavaScript
9.6 General For Loops
9.7 For Loop Practice
9.9 While Loops
11.11 Intro to Lists/Arrays
11.12 Adding/Removing From an Array
11.13 Array Length and Looping Through Arrays
11.14 Iterating Over an Array
18.1 Indexing Into an Array
18.2 Finding an Element in a List
18.3 Removing an Element From an Array
Standard
3.4 For Loops
3.10 Top Down Design
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
6.1 Programming Concepts
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
13.4 If Statements
13.5 For Loops in JavaScript
13.6 General For Loops
13.7 For Loop Practice
13.9 While Loops
Standard
3.4 Variables
4.4 If Statements
4.10 While Loops
5.1 Functions and Parameters 1
5.2 Functions and Parameters 2
5.3 Functions and Parameters 3
7.1 Intro to Lists/Arrays
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
14.4 If Statements
14.5 For Loops in JavaScript
14.6 General For Loops
14.7 For Loop Practice
14.9 While Loops
17.11 Intro to Lists/Arrays
19.1 Indexing Into an Array
17.12 Adding/Removing From an Array
17.13 Array Length and Looping Through Arrays
17.14 Iterating Over an Array
19.2 Finding an Element in a List
19.3 Removing an Element From an Array
Standard
4.2 If Statements
5.1 While Loops
5.2 For Loops
9.2 Lists
9.3 For Loops and Lists
9.4 List Methods
9.5 2d Lists
18.4 For Loops
18.10 Top Down Design
18.16 If Statements
18.17 If/ Else Statements
18.18 While Loops
18.19 Putting Together Control Structures
Standard
8.4 JavaScript Objects
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
9.1 For Loops
9.2 While Loops
9.4 If/Else Statements
9.5 Functions
10.1 micro:bit Challenges
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
10.4 If Statements
10.5 For Loops in JavaScript
10.6 General For Loops
10.7 For Loop Practice
10.9 While Loops
33.1 Intro to Lists/Arrays
33.2 Indexing Into an Array
33.3 Adding/Removing From an Array
33.4 Array Length and Looping Through Arrays
33.5 Iterating Over an Array
33.6 Finding an Element in a List
33.7 Removing an Element From an Array
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
6.4 If Statements
6.5 For Loops in JavaScript
6.6 General For Loops
6.7 For Loop Practice
6.9 While Loops
26.1 Intro to Lists/Arrays
26.2 Indexing Into an Array
26.3 Adding/Removing From an Array
26.4 Array Length and Looping Through Arrays
26.5 Iterating Over an Array
26.6 Finding an Element in a List
26.7 Removing an Element From an Array
Standard
23.5 Arrays and Objects
23.1 Programming Concepts
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.1 For Loops
14.2 While Loops
14.4 If/Else Statements
14.5 Functions
15.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.1 For Loops
14.2 While Loops
14.4 If/Else Statements
14.5 Functions
15.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.1 For Loops
14.2 While Loops
14.4 If/Else Statements
14.5 Functions
15.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.1 For Loops
14.2 While Loops
14.4 If/Else Statements
14.5 Functions
15.1 micro:bit Challenges
Standard
3.4 If Statements
3.9 While Loops
4.1 Functions and Parameters 1
4.2 Functions and Parameters 2
4.3 Functions and Parameters 3
6.1 Intro to Lists/Arrays
Standard
3.4 If Statements
3.9 While Loops
4.1 Functions and Parameters 1
4.2 Functions and Parameters 2
4.3 Functions and Parameters 3
6.1 Intro to Lists/Arrays
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.1 For Loops
14.2 While Loops
14.4 If/Else Statements
14.5 Functions
15.1 micro:bit Challenges
Standard
3.4 For Loops
3.10 Top Down Design
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
3.4 For Loops
3.10 Top Down Design
3.17 If Statements
3.18 If/ Else Statements
3.19 While Loops
3.20 Putting Together Control Structures
Standard
7.2 Introduction to Arrays
7.3 Using Arrays
7.5 ArrayList Methods
Standard
2.4 Variables
3.4 If Statements
3.10 While Loops
4.1 Intro to Lists/Arrays
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.1 For Loops
14.2 While Loops
14.4 If/Else Statements
14.5 Functions
15.1 micro:bit Challenges
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
3.10 For Loops
3.11 If Statements
3.12 If/Else Statements
3.13 While Loops in Karel
3.14 Control Structures Example
10.4 If Statements
10.5 For Loops in JavaScript
10.6 General For Loops
10.7 For Loop Practice
10.9 While Loops
12.11 Intro to Lists/Arrays
18.1 Indexing Into an Array
12.12 Adding/Removing From an Array
12.13 Array Length and Looping Through Arrays
12.14 Iterating Over an Array
18.2 Finding an Element in a List
18.3 Removing an Element From an Array
Standard
16.5 Arrays and Objects
16.1 Programming Concepts
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
Standard
2.9 For Loops
2.10 If Statements
2.11 If/Else Statements
2.12 While Loops in Karel
2.13 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
12.1 Intro to Lists/Arrays
12.2 Indexing Into an Array
12.3 Adding/Removing From an Array
12.4 Array Length and Looping Through Arrays
12.5 Iterating Over an Array
12.6 Finding an Element in a List
12.7 Removing an Element From an Array
Standard
7.2 Introduction to Arrays
7.3 Using Arrays
7.5 ArrayList Methods
Standard
21.5 Arrays and Objects
21.1 Programming Concepts
Standard
2.2 For Loops
3.5 Top Down Design
5.1 If Statements
5.2 If/ Else Statements
5.3 While Loops
6.1 Putting Together Control Structures
Standard
2.9 For Loops
2.10 If Statements
2.11 If/Else Statements
2.12 While Loops in Karel
2.13 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
5.1 Programming Concepts
Standard
2.10 For Loops
2.11 If Statements
2.12 If/Else Statements
2.13 While Loops in Karel
2.14 Control Structures Example
7.4 If Statements
7.5 For Loops in JavaScript
7.6 General For Loops
7.7 For Loop Practice
7.9 While Loops
9.11 Intro to Lists/Arrays
9.12 Adding/Removing From an Array
9.13 Array Length and Looping Through Arrays
9.14 Iterating Over an Array
16.1 Indexing Into an Array
16.2 Finding an Element in a List
16.3 Removing an Element From an Array
Standard
1.4 For Loops
1.10 Top Down Design
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.1 For Loops
14.2 While Loops
14.4 If/Else Statements
14.5 Functions
15.1 micro:bit Challenges
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
5.4 If Statements
5.5 For Loops in JavaScript
5.6 General For Loops
5.7 For Loop Practice
5.9 While Loops
12.1 Intro to Lists/Arrays
12.2 Indexing Into an Array
12.3 Adding/Removing From an Array
12.4 Array Length and Looping Through Arrays
12.5 Iterating Over an Array
12.6 Finding an Element in a List
12.7 Removing an Element From an Array
Standard
1.9 For Loops
1.10 If Statements
1.11 If/Else Statements
1.12 While Loops in Karel
1.13 Control Structures Example
5.4 If Statements
5.5 For Loops in JavaScript
5.6 General For Loops
5.7 For Loop Practice
5.9 While Loops
21.1 Intro to Lists/Arrays
21.2 Indexing Into an Array
21.3 Adding/Removing From an Array
21.4 Array Length and Looping Through Arrays
21.5 Iterating Over an Array
21.6 Finding an Element in a List
21.7 Removing an Element From an Array
Standard
13.1 Array
14.1 ArrayList
Standard
12.1 Array
13.1 ArrayList
Standard
2.4 For Loops
2.10 Top Down Design
2.18 If Statements
2.19 If/ Else Statements
2.20 While Loops
2.22 Putting Together Control Structures
6.2 If Statements
7.1 While Loops
7.2 For Loops
10.2 Lists
10.3 For Loops and Lists
10.4 List Methods
11.1 2d Lists