Please enable JavaScript to use CodeHS

WY L1: L1.AP.C.02

CodeHS Lessons

Trace the execution of loops and conditional statements, illustrating output and changes in values of named variables.

Standard
6.6 While Loops
6.7 The Break Statement
6.9 For Loops
7.1 Control Structures Challenges
Standard
2.9 For Loops
2.10 If Statements
5.2 If Statements
5.3 Comparison Operators
5.4 Logical Operators
7.1 While Loops
7.2 For Loops
7.4 Nested Control Structures
10.4 Strings and For Loops
12.3 For Loops and Lists
25.4 For Loops
25.18 If Statements
25.19 If/Else Statements
25.20 While Loops
25.21 Putting Together Control Structures
28.10 For Loops
28.17 For Loops and Lists
Standard
1.11 For Loops
1.12 If Statements
Standard
1.10 For Loops
1.11 If Statements
14.4 Strings and For Loops
Standard
1.11 For Loops
1.12 If Statements
Standard
4.10 For/In Loops
9.9 For Loops in JavaScript
9.12 While Loops
9.13 Loop and a Half
Standard
8.10 For/In Loops
19.11 While Loops
19.12 The Break Statement
19.13 For Loops
Standard
14.6 Branching: If Statements
14.7 Looping: While Loops
14.8 Looping: For Loops
Standard
13.2 If Statements
13.3 Comparison Operators
13.4 Logical Operators
Standard
5.6 While Loops
5.7 The Break Statement
5.9 For Loops
6.1 Control Structures Challenges
Standard
6.6 While Loops
6.7 The Break Statement
6.9 For Loops
7.1 Control Structures Challenges
Standard
6.6 While Loops
6.7 The Break Statement
6.9 For Loops
7.1 Control Structures Challenges
Standard
8.1 Conditionals and State Change
8.2 Conditionals using Parameters
Standard
8.1 Conditionals and State Change
8.2 Conditionals using Parameters
Standard
2.3 For Loops
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
2.3 For Loops
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
3.4 For Loops
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.16 If Statements
6.17 If/ Else Statements
6.18 While Loops
6.19 Putting Together Control Structures
Standard
13.4 For Loops
13.16 If Statements
13.17 If/ Else Statements
13.18 While Loops
13.19 Putting Together Control Structures
Standard
7.8 Comparison Operators
7.9 Logical Operators
7.11 For Loops
Standard
1.4 Loops
Standard
1.4 For Loops
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
4.2 If Statements
4.3 Comparison Operators
4.4 Logical Operators
5.1 While Loops
5.2 For Loops
5.4 Nested Control Structures
7.1 Loops
7.2 If/Else Statements
8.4 Strings and For Loops
9.3 For Loops and Lists
12.1 Arduino Challenges
Standard
6.5 For Loops in JavaScript
6.6 General For Loops
6.9 While Loops
6.10 Loop and a Half
7.1 Control Structures Challenges
10.1 Loops
10.2 If/Else Statements
14.1 Arduino Challenges
Standard
2.2 For Loops
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
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
10.1 micro:bit Challenges
Standard
2.1 For Loops
2.2 While Loops
2.4 If/Else Statements
3.1 micro:bit Challenges
Standard
2.1 Loops
2.2 If/Else Statements
3.1 Arduino Challenges
Standard
2.1 For Loops
2.2 While Loops
2.4 If/Else Statements
3.1 micro:bit Challenges
Standard
4.2 If Statements
4.3 Comparison Operators
4.4 Logical Operators
6.1 While Loops
6.2 For Loops
6.4 Nested Control Structures
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
4.1 Iteration
4.2 For Loops
4.5 Informal Code Analysis
Standard
2.9 For Loops
2.10 While Loops
8.8 Informal Code Analysis
Standard
2.4 For Loops
2.16 If Statements
2.17 If/ Else Statements
2.18 While Loops
2.19 Putting Together Control Structures
4.2 If Statements
4.3 Comparison Operators
4.4 Logical Operators
5.1 While Loops
5.2 For Loops
5.4 Nested Control Structures
7.4 Strings and For Loops
8.3 For Loops and Lists
21.10 For Loops
21.11 If Statements
Standard
6.9 For Loops in JavaScript
10.10 For/In Loops
Standard
6.1 Iteration
6.2 For Loops
6.5 Informal Code Analysis
8.7 Additional Loop Examples
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
2.2 If Statements
2.3 Comparison Operators
2.4 Logical Operators
3.1 While Loops
3.2 For Loops
3.4 Nested Control Structures
5.3 For Loops and Lists
16.4 For Loops
16.16 If Statements
16.17 If/ Else Statements
16.18 While Loops
16.19 Putting Together Control Structures
17.9 For Loops
17.10 If Statements
Standard
8.5 For Loops in JavaScript
8.6 General For Loops
8.9 While Loops
8.10 Loop and a Half
9.1 Control Structures Challenges
Standard
2.4 For Loops
2.18 If Statements
2.19 If/ Else Statements
2.20 While Loops
2.22 Putting Together Control Structures
6.2 If Statements
6.3 Comparison Operators
6.4 Logical Operators
7.1 While Loops
7.2 For Loops
7.4 Nested Control Structures
9.4 Strings and For Loops
10.3 For Loops and Lists
Standard
6.11 While Loops
6.12 The Break Statement
6.13 For Loops
19.9 For Loops in JavaScript
Standard
8.5 For Loops in JavaScript
8.6 General For Loops
8.9 While Loops
8.10 Loop and a Half
9.1 Control Structures Challenges
Standard
1.8 For Loops
1.9 While Loops
1.11 If/Else Statements
1.13 micro:bit Challenges
8.9 For/In Loops
11.11 While Loops
11.12 The Break Statement
11.13 For Loops
Standard
2.3 For Loops
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
1.9 For Loops
1.10 If Statements
Standard
6.9 For Loops in JavaScript
10.10 For/In Loops
Standard
12.1 Loops
12.2 If/Else Statements
Standard
11.1 For Loops
11.2 While Loops
11.4 If/Else Statements
12.1 micro:bit Challenges
Standard
5.2 If Statements
5.3 Comparison Operators
5.4 Logical Operators
6.1 While Loops
6.2 For Loops
6.4 Nested Control Structures
Standard
5.2 If Statements
5.3 Comparison Operators
5.4 Logical Operators
6.1 While Loops
6.2 For Loops
6.4 Nested Control Structures
Standard
5.2 If Statements
5.3 Comparison Operators
5.4 Logical Operators
6.1 While Loops
6.2 For Loops
6.4 Nested Control Structures
Standard
5.2 If Statements
5.3 Comparison Operators
5.4 Logical Operators
6.1 While Loops
6.2 For Loops
6.4 Nested Control Structures
9.7 For Loops and Lists
Standard
3.4 For Loops
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
15.6 While Loops
15.7 The Break Statement
15.9 For Loops
16.1 Control Structures Challenges
Standard
8.1 Conditionals and State Change
8.2 Conditionals using Parameters
Standard
1.10 For Loops
1.11 If Statements
Standard
14.5 For Loops in JavaScript
14.6 General For Loops
14.9 While Loops
14.10 Loop and a Half
15.1 Control Structures Challenges
Standard
4.2 If Statements
4.3 Comparison Operators
4.4 Logical Operators
5.1 While Loops
5.2 For Loops
5.4 Nested Control Structures
8.4 Strings and For Loops
9.3 For Loops and Lists
18.4 For Loops
18.16 If Statements
18.17 If/ Else Statements
18.18 While Loops
18.19 Putting Together Control Structures
Standard
8.10 For/In Loops
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.4 For Loops
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
10.1 micro:bit Challenges
Standard
5.2 If Statements
5.3 Comparison Operators
5.4 Logical Operators
7.1 While Loops
7.2 For Loops
7.4 Nested Control Structures
10.5 For Loops
10.17 If Statements
10.18 If/ Else Statements
10.19 While Loops
10.20 Putting Together Control Structures
15.6 While Loops
15.7 The Break Statement
15.9 For Loops
16.1 Control Structures Challenges
Standard
4.6 While Loops
4.7 The Break Statement
4.9 For Loops
23.1 Control Structures Challenges
Standard
8.2 If Statements
8.3 Comparison Operators
8.4 Logical Operators
8.6 While Loops
8.7 For Loops
8.9 Nested Control Structures
10.9 For Loops
10.10 If Statements
Standard
10.5 For Loops in JavaScript
10.6 General For Loops
10.9 While Loops
10.10 Loop and a Half
11.1 Control Structures Challenges
Standard
10.5 For Loops in JavaScript
10.6 General For Loops
10.9 While Loops
10.10 Loop and a Half
11.1 Control Structures Challenges
Standard
6.3 For Loops and Lists
Standard
6.5 For Loops in JavaScript
6.6 General For Loops
6.9 While Loops
6.10 Loop and a Half
7.1 Control Structures Challenges
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
6.4 For Loops
6.13 If Statements
6.14 If/ Else Statements
6.15 While Loops
7.7 If Statements
7.8 Comparison Operators
7.9 Logical Operators
7.11 While Loops
7.12 For Loops
8.11 While Loops
8.12 For Loops
Standard
1.9 For Loops
1.10 If Statements
7.4 For Loops
7.11 If Statements
7.12 If/ Else Statements
9.7 If Statements
9.8 Comparison Operators
9.9 Logical Operators
9.11 While Loops
9.12 For Loops
10.11 While Loops
10.12 For Loops
Standard
8.4 For Loops
8.13 If Statements
8.14 If/ Else Statements
8.15 While Loops
9.7 If Statements
9.8 Comparison Operators
9.9 Logical Operators
9.11 While Loops
9.12 For Loops
12.11 While Loops
12.12 For Loops
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
1.10 For Loops
1.11 If Statements
Standard
1.10 For Loops
1.11 If Statements
Standard
1.4 For Loops
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
6.1 For Loops
6.2 While Loops
6.4 If/Else Statements
7.1 micro:bit Challenges
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
3.4 For Loops
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.17 If Statements
3.18 If/ Else Statements
3.19 While Loops
3.20 Putting Together Control Structures
Standard
4.10 For Loops
4.11 While Loops
7.7 Additional Loop Examples
Standard
7.6 While Loops
7.7 The Break Statement
7.9 For Loops
Standard
9.6 While Loops
9.7 The Break Statement
9.9 For Loops
10.1 Control Structures Challenges
Standard
6.6 While Loops
6.7 The Break Statement
6.9 For Loops
11.4 For Loops
11.5 While Loops
19.1 Control Structures Challenges
Standard
1.5 For Loops
1.17 If Statements
1.18 If/ Else Statements
1.19 While Loops
1.20 Putting Together Control Structures
Standard
1.5 For Loops
1.17 If Statements
1.18 If/ Else Statements
1.19 While Loops
1.20 Putting Together Control Structures
Standard
5.5 For Loops in JavaScript
5.6 General For Loops
5.9 While Loops
5.10 Loop and a Half
6.1 Control Structures Challenges
Standard
4.4 Strings and For Loops
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.9 For Loops
1.10 If Statements
18.4 Strings and For Loops
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
3.9 For Loops
3.10 If Statements
6.2 If Statements
6.3 Comparison Operators
6.4 Logical Operators
7.1 While Loops
7.2 For Loops
7.4 Nested Control Structures
16.4 For Loops
16.18 If Statements
16.19 If/Else Statements
16.20 While Loops
16.21 Putting Together Control Structures
Standard
15.4 Strings and For Loops
Standard
3.9 For Loops
3.10 If Statements
6.2 If Statements
6.3 Comparison Operators
6.4 Logical Operators
7.1 While Loops
7.2 For Loops
7.4 Nested Control Structures
16.4 For Loops
16.18 If Statements
16.19 If/Else Statements
16.20 While Loops
16.21 Putting Together Control Structures
Standard
15.4 Strings and For Loops
Standard
18.6 While Loops
18.7 The Break Statement
18.9 For Loops
19.1 Control Structures Challenges
Standard
14.2 If Statements
14.3 Comparison Operators
14.4 Logical Operators
Standard
15.3 If Statements
15.4 Looping: While Loops
15.5 Looping: For Loops
Standard
10.10 For/In Loops
13.9 For Loops in JavaScript
13.12 While Loops
13.13 Loop and a Half
Standard
10.10 For/In Loops
14.9 For Loops in JavaScript
14.12 While Loops
14.13 Loop and a Half
Standard
13.5 For Loops in JavaScript
13.6 General For Loops
13.9 While Loops
13.10 Loop and a Half
14.1 Control Structures Challenges
Standard
6.6 While Loops
6.7 The Break Statement
6.9 For Loops
14.1 Control Structures Challenges
Standard
6.5 For Loops in JavaScript
6.6 General For Loops
6.9 While Loops
6.10 Loop and a Half
Standard
3.3 For Loops
Standard
4.10 For Loops
4.11 While Loops
9.8 Informal Code Analysis
Standard
8.6 While Loops
8.7 The Break Statement
8.9 For Loops
9.1 Control Structures Challenges
Standard
24.6 Branching: If Statements
24.7 Looping: While Loops
24.8 Looping: For Loops
Standard
2.2 For Loops
5.1 If Statements
5.2 If/ Else Statements
5.3 While Loops
6.1 Putting Together Control Structures
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
7.5 For Loops in JavaScript
7.6 General For Loops
7.9 While Loops
7.10 Loop and a Half
8.1 Control Structures Challenges
Standard
1.4 For Loops
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
15.1 micro:bit Challenges
Standard
1.10 For Loops
1.11 If Statements
33.4 Strings and For Loops
Standard
10.1 Iteration
10.2 For Loops
10.5 Informal Code Analysis
Standard
10.1 Iteration
10.2 For Loops
10.5 Informal Code Analysis
Standard
1.9 For Loops
1.10 If Statements
4.2 If Statements
4.3 Comparison Operators
4.4 Logical Operators
6.1 While Loops
6.2 For Loops
6.4 Nested Control Structures
11.4 For Loops
11.18 If Statements
11.19 If/Else Statements
11.20 While Loops
11.21 Putting Together Control Structures
Standard
2.4 Strings and For Loops
4.3 For Loops and Lists
Standard
3.5 For Loops
3.6 While Loops
7.2 If/Else Statements
8.1 micro:bit Challenges
10.1 Loops
10.2 If/Else Statements
11.1 Arduino Challenges
Standard
1.9 For Loops
1.10 If Statements
4.2 If Statements
4.3 Comparison Operators
4.4 Logical Operators
6.1 While Loops
6.2 For Loops
6.4 Nested Control Structures
Standard
2.4 Strings and For Loops
4.3 For Loops and Lists
Standard
2.3 For Loops
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
2.3 For Loops
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
1.9 For Loops
1.10 If Statements
4.2 If Statements
4.3 Comparison Operators
4.4 Logical Operators
6.1 While Loops
6.2 For Loops
6.4 Nested Control Structures
10.4 Strings and For Loops
12.3 For Loops and Lists
Standard
4.10 For/In Loops
8.9 For Loops in JavaScript
8.12 While Loops
8.13 Loop and a Half
Standard
9.10 For/In Loops
12.9 For Loops in JavaScript
12.12 While Loops
12.13 Loop and a Half
Standard
3.5 For Loops
3.6 While Loops
7.2 If/Else Statements
8.1 micro:bit Challenges
Standard
1.9 For Loops
1.10 If Statements
8.2 If Statements
8.3 Comparison Operators
8.4 Logical Operators
9.1 While Loops
9.2 For Loops
9.4 Nested Control Structures
11.4 Strings and For Loops
12.3 For Loops and Lists
Standard
2.3 For Loops
5.1 If Statements
5.2 If/Else Statements
5.4 While Loops
6.1 Putting Together Control Structures
Standard
1.9 For Loops
1.10 If Statements
5.2 If Statements
5.3 Comparison Operators
5.4 Logical Operators
6.1 While Loops
6.2 For Loops
6.4 Nested Control Structures
Standard
5.5 For Loops in JavaScript
5.6 General For Loops
5.9 While Loops
5.10 Loop and a Half
6.1 Control Structures Challenges
Standard
6.3 For Loops and Lists
Standard
1.10 For Loops
1.11 If Statements
Standard
2.2 If Statements
2.3 Comparison Operators
2.4 Logical Operators
3.1 While Loops
3.2 For Loops
3.4 Nested Control Structures
5.4 Strings and For Loops
6.3 For Loops and Lists
Standard
2.9 For Loops
2.10 If Statements
5.2 If Statements
5.3 Comparison Operators
5.4 Logical Operators
6.1 While Loops
6.2 For Loops
6.4 Nested Control Structures
8.4 Strings and For Loops
10.3 For Loops and Lists
Standard
8.2 If Statements
8.3 Comparison Operators
8.4 Logical Operators
8.5 While Loops
8.6 For Loops
8.7 Nested Control Structures
Standard
11.6 Branching: If Statements
11.7 Looping: While Loops
11.8 Looping: For Loops
Standard
2.3 For Loops
4.10 If Statements
4.11 If/Else Statements