2D Array
Practice: 5pts - Unopened Invert Array
Practice: 7pts - Unopened Reverse
Practice: 5pts - Unopened Split
Practice: 4pts - Unopened Team +/-
Practice: 9pts - Unopened Magic Square
Practice: 7pts - Unopened Consecutive Values
Get familiar with coding using our Practice Problems.
Practice: 5pts - Unopened Invert Array
Practice: 7pts - Unopened Reverse
Practice: 5pts - Unopened Split
Practice: 4pts - Unopened Team +/-
Practice: 9pts - Unopened Magic Square
Practice: 7pts - Unopened Consecutive Values
Still have questions? We’re happy to answer them, just reach out to hello@codehs.com!
CodeHS Practice is a curated list of practice problems to help students gain a stronger understanding of basic programming skills. Each Practice problem is autograded meaning students' code will be run through a series of Test Cases to ensure that their code is functionally and stylistically sound, and accomplished the goals of a given exercise.
Anyone can access the CodeHS Practice problems for free—no CodeHS account required! Simply go to codehs.com/practice and start coding. Note: If you want to track progress, you’ll need to create a CodeHS account.
CodeHS Practice has the most robust coding problems in a variety of programming languages including:
We offer two types of practice problems.
Coding Practice - Students write code for a single method or function that should match the expected output.
Parsons Problems - Students drag the lines of code into the correct order to match the expected output.
Grey/Unopened - the student has not yet opened the activity
Yellow/Started - the student has opened and worked on the activity, but has not completed it
Green/Completed - the student has completed the exercise
The point value for each problem indicates the difficulty level. (1 = easy; 10 = difficult). You can see the points by hovering over the dot next to the exercise.