4.8. Mixed Up Code Practice¶
Try to solve each of the following. Click the Check Me button to check each solution. You will be told if your solution is too short, has a block in the wrong order, or you are using the wrong block. Some of the problems have an extra block that isn’t needed in the correct solution. Try to solve these on your phone or other mobile device!
The following segment should print the statement, “So happy 4 you!”. The blocks have been mixed up, and include two extra blocks that are not correct. Drag the blocks from the left and put them in the correct order on the right. Click the <i>Check Me</i> button to check your solution.</p>
The following program segment should print the phrase, “My new book cost $12.”. But, the blocks have been mixed up and include an extra block that isn’t correct. Drag the needed blocks from the left and put them in the correct order on the right. Click the <i>Check Me</i> button to check your solution.</p>
The following program segment should print the phrase, “Sarah Smith likes to swim.”. But, the blocks have been mixed up and include an extra block that isn’t correct. Drag the needed blocks from the left and put them in the correct order on the right. Click the <i>Check Me</i> button to check your solution.</p>
The following program segment should print the phrase, “It takes us 2 hours and 45 minutes to get home from camp.”. But, the blocks have been mixed up and include an extra block that isn’t correct. Drag the needed blocks from the left and put them in the correct order on the right. Click the <i>Check Me</i> button to check your solution.</p>
The following program segment should print the phrase, “Lucy loves lemons.”. But, the blocks have been mixed up and include an extra block that isn’t correct. Drag the needed blocks from the left and put them in the correct order on the right. Click the <i>Check Me</i> button to check your solution.</p>
The following program segment should print the phrase, “My sheepdog looks like a Muppet.”. But, the blocks have been mixed up and include two extra blocks that are not correct. Drag the needed blocks from the left and put them in the correct order on the right. Click the <i>Check Me</i> button to check your solution.</p>
The following program segment should print the phrase, “3 + 300 + 7 = 310.”. But, the blocks have been mixed up and include an extra block that isn’t correct. Drag the needed blocks from the left and put them in the correct order on the right. Click the <i>Check Me</i> button to check your solution.</p>
The following program segment should print the phrase, “I am a CS wizard”. But, the blocks have been mixed up and include an extra block that isn’t correct. Drag the needed blocks from the left and put them in the correct order on the right. Click the <i>Check Me</i> button to check your solution.</p>
The following program segment should print the phrase, “‘Red’ is a primary color. So is ‘blue’.”. But, the blocks have been mixed up and include an extra block that isn’t correct. Drag the needed blocks from the left and put them in the correct order on the right. Click the <i>Check Me</i> button to check your solution.</p>
The following program segment should print the phrase, “Petting dogs makes me happier than anything else.”. But, the blocks have been mixed up and include several extra blocks that are not correct. Drag the needed blocks from the left and put them in the correct order on the right. Click the <i>Check Me</i> button to check your solution.</p>