
GREENFOOT RANDOM NUMBER CODE
When you want specific code to be executed only if certain conditions are met, what type of Java construct would you use? (1) Points while loop If you want one message to display if a user is below the age of 18 and a different message to display if the user is 18 or older, what type of construct would you use? Review (1) Pointsįor all loop do loop while loop if (*) Incorrect.

In Alice, we use the WHILE control statement to implement the conditional loop. A procedure that is used to launch the program. (*) A procedure that is dragged into the Code editor. From your Alice lessons, what is a one-shot procedural method? Review (1) Points A procedure that is invoked when the Run button is clicked.Ī procedure that is used to make a scene adjustment. Which of the following does not describe variables? Mark for Review (1) Points A place in memory where data of a specific type can be stored for later retrieval and use. True or false? Mark for Review (1) Points True (*) False Incorrect. Expressions with relational operators produce true and false values. Further refine and define the tasks needed for each high level step.ģ. Identify the high level steps for the science concept. Identify the detailed steps for the science concept. Further refine and define the tasks needed for each high level step. From your Alice lessons, if you examined a science process that had many steps, which of the following is a way that you could apply functional decomposition to this process? for Review (1) Points 1. Scene editor Storyboard (*) Scenario Correct 16. What should you refer to for the animation's design specifications as you program your Alice animation? (1) Points Code True or false? (1) Points Trueįalse (*) Incorrect.
GREENFOOT RANDOM NUMBER HOW TO
In Alice, a computer program requires functions to tell it how to perform the procedure.

In Alice, Do In Order and Do Together: (1) Points Are move statementsĪre control statements (*) Are complex statements None of the above Correct 14. True or false? (1) Points True (*)įalse Correct 13. In Alice, the procedures' arguments allow the programmer to adjust the object, motion, distance amount, and time duration. True or false? Mark for Review (1) Points True False (*) Correct 12. In Alice, functions are dragged into the control statement, not the procedure.

Define the value of the variable LapCount based on the following math calculation: LapCount + 10 = 15 (1) Points 2Ĥ 5 (*) 15 10 11. Which of the following programming instructions commands the fish to continuously move forward a random speed between 0.5 and 1.0 meters, minus 0.25 meters, until it collides with the shark? (1) Points (*) To position the object in the Scene editor. To compute and answer a question about an object. What is the purpose of a function in Alice? (1) Points To define how the object should execute a task. From your Alice lessons, random numbers are numbers generated by the user with a pattern in their sequence. (*) Downloading the Alice 3 collision detector app. In Alice, we can avoid object collision using what? (1) Points Slowing movements down. In Alice, which of the following programming statements moves the butterfly forward, double the distance to the tree? Mark for Review (1) Points this.Butterfly move forward Correct 6. True or false? (1) Points True (*) FalseĬorrect 5. Defining the scenario, and the Alice animation to represent the scenario, is the first step to programming your animation. What does a visual storyboard help the reader understand? (1) Points (Choose all correct answers) The components of the scene. (*) One fish needs to swim forward 1 meter. In Alice, which of the following is the most likely situation where procedural abstraction could be used? Mark for Review (1) Points Five dogs all need to bark and run at the same time. An Alice event is considered what? (1) Points A party with at least 20 people.Īn object's orientation.
