Introduction to Problem Types

Please read the following, watch the videos, and try to solve the problems.

Solving Mixed-up Code Problems

If you see a problem like the one below you will need to put the mixed-up code in the correct order on the right side. You may need to indent the blocks as well. There may also be extra blocks that are not needed in a correct solution that you can leave on the left side. Click the “Check” button to check your solution.

See the video below for an example.

Before you keep reading...

Runestone Academy can only continue if we get support from individuals like you. As a student you are well aware of the high cost of textbooks. Our mission is to provide great books to you for free, but we ask that you consider a $10 donation, more if you can or less if $10 is a burden.

Try to solve the following mixed-up code problem. This problem doesn’t require any indentation.

Drag the blocks from the left and put them in the correct order on the right. The text in each block defines the order.

Try to solve the following mixed-up code problem. This problem requires indentation.

Drag the blocks from the left and put them in the correct order on the right with the correct indentation. The text in each block defines the order and indentation.

Try to solve the following mixed-up code problem. This problem requires indentation and has extra blocks that are not needed in a correct solution.

Drag the blocks from the left and put them in the correct order on the right with the correct indentation. There is an extra block that is not needed in the correct solution.

The mixed-up code problems have a “Help me” button at the bottom of the problem. Once you have checked at least three incorrect solutions you can click the button for help. It will remove an incorrect code block, if you used one in your solution, or combine two blocks into one if there are more than three blocks left.

See the video below for an example.

What to do next

Click on the following link to go the problems: Problems

You have attempted 1 of 6 activities on this page