Please enable JavaScript to use CodeHS

NY 9-12: 9-12.CT.5

CodeHS Lessons

Modify a function or procedure in a program to perform its computation in a different way over the same inputs, while preserving the result of the overall program.

Standard
7.1 Functions and Parameters 1
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
9.1 Timers
9.2 Random Circles
9.3 Random Ghosts
9.4 Bouncing Ball
9.5 Mouse Events: Mouse Clicked
Standard
2.14 Using i in For Loops
2.15 Extended Loop Control
2.18 While Loops
5.1 While Loops
5.2 For Loops
23.9 Super Karel
Standard
2.5 Calling a Void Method with Parameters
2.6 Calling a Non-void Method
4.5 Informal Code Analysis
9.3 Overriding Methods
Standard
13.15 Extended Loop Control
13.14 Using i in For Loops
13.18 While Loops
Standard
2.1 Introduction to jQuery
2.2 Iterating with jQuery
2.3 Animations with jQuery
9.14 Functions and Parameters 1
9.15 Functions and Parameters 2
9.16 Functions and Return Values 1
9.17 Functions and Return Values 2
Standard
8.1 Conditionals and State Change
8.2 Conditionals using Parameters
Standard
4.4 Using i in For Loops
4.5 Extended Loop Control
5.3 While Loops
10.9 Super Karel
Standard
3.14 Using i in For Loops
3.15 Extended Loop Control
3.18 While Loops
Standard
6.15 Extended Loop Control
6.14 Using i in For Loops
6.18 While Loops
Standard
1.9 Using Functions
1.10 Mini-Project: Findings
7.11 For Loops
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
5.1 While Loops
5.2 For Loops
Standard
8.1 Functions and Parameters 1
8.2 Functions and Parameters 2
8.3 Functions and Parameters 3
8.4 Functions and Return Values 1
8.5 Functions and Return Values 2
11.1 Timers
11.2 Random Circles
11.3 Random Ghosts
11.4 Bouncing Ball
11.5 Mouse Events: Mouse Clicked
Standard
4.4 Using i in For Loops
4.5 Extended Loop Control
6.3 While Loops
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
1.9 Using Functions
1.10 Mini-Project: Findings
Standard
2.9 For Loops
2.10 While Loops
4.9 Method Overloading
4.15 Polymorphism
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
10.1 Functions and Parameters 1
10.2 Functions and Parameters 2
10.3 Functions and Parameters 3
10.4 Functions and Return Values 1
10.5 Functions and Return Values 2
10.7 Timers
10.8 Random Circles
10.9 Random Ghosts
10.10 Bouncing Ball
10.11 Mouse Events: Mouse Clicked
Standard
10.1 Functions and Parameters 1
10.2 Functions and Parameters 2
10.3 Functions and Parameters 3
10.4 Functions and Return Values 1
10.5 Functions and Return Values 2
10.6 Timers
10.7 Random Circles
10.8 Random Ghosts
10.9 Bouncing Ball
10.10 Mouse Events: Mouse Clicked
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
11.1 Functions and Parameters 1
11.2 Functions and Parameters 2
11.3 Functions and Parameters 3
11.4 Functions and Return Values 1
11.5 Functions and Return Values 2
11.6 Timers
11.7 Random Circles
11.8 Random Ghosts
11.9 Bouncing Ball
11.10 Mouse Events: Mouse Clicked
Standard
3.14 Using i in For Loops
3.15 Extended Loop Control
3.18 While Loops
Standard
1.9 Super Karel
Standard
17.1 Functions and Parameters 1
17.2 Functions and Parameters 2
17.3 Functions and Parameters 3
17.4 Functions and Return Values 1
17.5 Functions and Return Values 2
17.6 Timers
17.7 Random Circles
17.8 Random Ghosts
17.9 Bouncing Ball
17.10 Mouse Events: Mouse Clicked
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
8.1 Functions and Parameters 1
8.2 Functions and Parameters 2
8.3 Functions and Parameters 3
8.4 Functions and Return Values 1
8.5 Functions and Return Values 2
10.1 Timers
10.2 Random Circles
10.3 Random Ghosts
10.4 Bouncing Ball
10.5 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
1.9 Super Karel
Standard
1.9 Super Karel
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
3.14 Using i in For Loops
3.15 Extended Loop Control
3.18 While Loops
Standard
3.15 Using i in For Loops
3.16 Extended Loop Control
3.19 While Loops
Standard
4.10 For Loops
4.11 While Loops
6.9 Method Overloading
6.15 Polymorphism
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
12.1 Functions and Parameters 1
12.2 Functions and Parameters 2
12.3 Functions and Parameters 3
12.4 Functions and Return Values 1
12.5 Functions and Return Values 2
12.6 Timers
12.7 Random Circles
12.8 Random Ghosts
12.9 Bouncing Ball
12.10 Mouse Events: Mouse Clicked
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
10.1 Timers
10.2 Random Circles
10.3 Random Ghosts
10.4 Bouncing Ball
10.5 Mouse Events: Mouse Clicked
Standard
4.10 For Loops
4.11 While Loops
6.9 Method Overloading
6.15 Polymorphism
Standard
4.6 Using i in For Loops
4.7 Extended Loop Control
5.3 While Loops
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
9.1 Functions and Parameters 1
9.2 Functions and Parameters 2
9.3 Functions and Parameters 3
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
9.6 Timers
9.7 Random Circles
9.8 Random Ghosts
9.9 Bouncing Ball
9.10 Mouse Events: Mouse Clicked
Standard
1.14 Using i in For Loops
1.15 Extended Loop Control
1.18 While Loops
Standard
8.1 Conditionals and State Change
8.2 Conditionals using Parameters
Standard
7.1 Functions and Parameters 1
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
9.1 Timers
9.2 Random Circles
9.3 Random Ghosts
9.4 Bouncing Ball
9.5 Mouse Events: Mouse Clicked
Standard
7.1 Functions and Parameters 1
7.2 Functions and Parameters 2
7.3 Functions and Parameters 3
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
Standard
8.5 Calling a Void Method with Parameters
8.6 Calling a Non-void Method
10.5 Informal Code Analysis
12.9 Method Overloading
12.15 Polymorphism
16.3 Overriding Methods
Standard
8.5 Calling a Void Method with Parameters
8.6 Calling a Non-void Method
10.5 Informal Code Analysis