CS108 Spring 2014 Week 4: Actual QUIZ Questions with Answers Introduction to Computational Science 1. Computational science is the intersection of what 3 subjects? a. b. c. d. e. Math, Computer Science, and Environment Math Computer Science and Science Models, Computer Science and Statistics Models, Computers and Math Math, Statistics, and Science Answer: b Introduction to Agent-based Modeling 2. What are the 3 main phases in all agent-based models? a) Setup, runtime loop and making the turtles move around b) Creating turtles, scattering the turtles on the plane and setting their color c) Asking the turtles to scatter on the surface, move around the surface and change the patch color d) Asking the turtles to move on the surface, change the patch color and exiting the program e) Setup, runtime loop and exit Answer: e 3. What are 3 abstractions in the runtime loop of an agent-based model? a) b) c) d) e) Agents with rules, the model environment, and time Turtles, the model environment and exiting the program Agents with rules, time and turtles Patches, time and exiting the program Agents with rules, turtles, and time Answer: a Document1 4. What factors allow an agent-based model to produce different results upon different runs with the same input parameters? a) b) c) d) e) The use of agent based variables The use of random numbers in the model The use of global variables The use of input parameters The use of patches in the model Answer: b NetLogo and the Random Walk 5. How do we generate a random walk? a) right random 90 left random 90 forward 1 b) right 90 left 90 forward 1 c) right random 360 forward 1 d) left 360 forward 1 e) It is a automatic function in NetLogo Answer : c 6. What is the range of integers generated by “random 360”? a) b) c) d) e) 0 – 360 1 – 360 1 – 359 0 – 359 Just numbers around 360 Answer: d Document1 7. What is a uniform probability distribution? a) Every number in the distribution has an equal probability of being used when a random number is called for. b) Only numbers that are regularly used are used when a random number is called for. c) Most numbers in the distribution are used all the time if a random number is called for. d) The probability that any number is used when a random number is called for increases uniformly as the numbers increases. e) The probability of using a number can only be determined by the user one at a time. Answer: a NetLogo and Wiggle Motion 8. How do you generate a wiggle walk? a) right random 90 left random 90 forward 1 b) right 90 left 90 forward 1 c) right random 360 forward 1 d) left 360 forward 1 e) It is a automatic function in NetLogo Answer : a NetLogo Programming 9. Predict a turtle’s heading once this procedure is run once. to go ask turtles [ forward 1 Document1 set heading random 45 right 90 ] end a) b) c) d) e) The turtle’s heading will be a random heading between 0 to 134 degrees; The turtle’s heading will be between 0 to 44 degrees from its original heading; The turtle’s heading will be a random heading between 0 and 90 degrees; The turtle’s heading will be a random heading between 90 and 134 degrees. The turtle’s heading will be between 44 to 90 degrees from its original heading Answer: d Blown to Bits 10. Describe a property of a digital copy (made by a computer) and why that property is important? Possible Answer: A digital copy is an exact replica of something. Because the copy is identical, the concept of an original copy no longer has meaning and making digital copies of Document1