Variables – Integers with Loops

This quiz uses integers as values and then looks at incrementing them through a loop. Before attempting this, a good understanding of variables and loops is required. It might also be good to find out about the use of a trace table.

 

Results

You%20have%20a%20good%20grasp%20of%20variables.%20Have%20a%20look%20at%20any%20questions%20you%20got%20wrong%20and%20see%20if%20you%20can%20work%20out%20why.%0A%0AYou%20can%20try%20out%20the%20actual%20code%20here.%0A%0A%3Ca%20href%3D%22https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F370001507%2F%22%3Ehttps%3A%2F%2Fscratch.mit.edu%2Fprojects%2F370001507%2F%3C%2Fa%3E

You%20need%20to%20work%20on%20your%20understanding%20of%20variables.%0A%0AAsk%20your%20teacher%20about%20how%20to%20make%20a%20table%20to%20help%20you%20understand%20what%20is%20going%20on%20as%20you%20step%20through%20a%20program.%0A%0AYou%20can%20try%20out%20the%20actual%20code%20here.%0A%0A%3Ca%20href%3D%22https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F370001507%2F%22%3Ehttps%3A%2F%2Fscratch.mit.edu%2Fprojects%2F370001507%2F%3C%2Fa%3E

#1. What number will Scratch say ?

#2. What number will Scratch say?

#3. What number will Scratch say?

#4. What number will Scratch say?

#5. What number will Scratch say?

Previous
Score and next steps