After doing all parts of the lesson you should be able to answer these questions.
Write down the answers first. Click the to check your answer.
1. Given the code below, what values could number have?
2. Given the code below, what values could num have?
3. Given the code below, what values could num have?
4. In the code below, how many different values can num have?
5. In this code, what does the bear comlain about most?
6. If you want num to represent flipping a coin, what value should you give num?
7. If you want to select a random amount to jump, what type should you use?
8. If you want to select a random number of times to jump, what type should you use?
9. Which has more values RandomUtilities.nextIntegerFromAToBExclusive( 1, 3 ); or RandomUtilities.nextIntegerFromAToBInclusive( 1, 3 );
10. Integer sayIt = RandomUtilities.nextIntegerFromAToBInclusive( 0, 3 );A loop executes sayIt times. Is it possible that the loop exceutes 0 times?
Please review the material for any questions you miss.