CS108l spring 2013 Week 7: Quiz



Download 17.58 Kb.
Date18.07.2017
Size17.58 Kb.
#23630
CS108L Spring 2013

Week 7: Quiz



  1. What is a computer simulation?

    1. A device that can be used to simulate a computer.

    2. A computer code that explores how a computer can be used in the real world.

    3. ****Running the computer model to simulate the passage of time and exploring the behavior of the modeled system.

    4. An abstraction of the real world that captures the elements of the system and the behavior of the elements being modeled.

    5. Something that you teacher tells you to do on the computer.



  1. What is a deterministic computer simulation?

  1. A simulation that gives you numbers for an answer.

  2. A simulation that actually can be used to determine something.

  3. A simulation that is being run by people who are determined to get the correct answer.

  4. ***A simulation that does not involve randomness and provides single outputs for each set of inputs.

  5. A simulation that was written by a very determined programmer.



  1. What is a stochastic computer simulation?

  1. ***A simulation that can produce different outputs for the same set of inputs because randomness is involved.

  2. A simulation that can be used to develop an understanding of problem based on the chaste system in India.

  3. A simulation that uses the stochastic algorithm developed by a programmer named Stochast.

  4. A simulation with inputs that are set using a uniform random distribution.

  5. A simulation with inputs that are set using a normal random distribution.



  1. When performing a simulation using a stochastic model and analyzing the results of the simulation which of the following should you NOT do?




  1. Sweep or vary the input parameters.

  2. Repeat simulation runs at each set of input parameters since stochastic models involve randomness and that may vary the outcome..

  3. Record the input parameters that were used to generate each output obtained.

  4. ***Randomly select input parameters until you get the results you are looking for.

  5. Test the model by running it with input parameters for which the correct output is known.




  1. Why do you need to repeat runs of a stochastic simulation at the same input parameters?

  1. Because you teacher wants to torture you, repeatedly.

  2. Because that is what the computer lab tells you to do.

  3. Because you are not sure you entered the input parameters correctly.

  4. Because a model that is stochastic, from Greek stokhastikos which means “capable of guessing”, must be validated by showing that the same input parameters always produce the same output.

  5. ***Because you must average the results for each set of input parameters to get a representative answer.



  1. Which of these things is negative feedback for a population of rabbits?

  1. Plants that rabbits can eat which grows more quickly in the presence of rabbit poop.

  2. ***A debilitating disease that the rabbits catch when they encounter another rabbit.

  3. A non-native, rodent species that eats a different kind of plant than the rabbits eat.

  4. Punishing the rabbits with a small electric shock when they try to exit their safe and protected habitat.

  5. All of the above.



  1. You define a breed in NetLogo by:

  1. Defining it anywhere in your program using the “set” command, as long as it is defined before you use the breed.

  2. Defining it anywhere in your program using the “let” command, as long as it is defined before you use the breed.

  3. Defining it by setting its shape in the setup procedure.

  4. ***Defining it at the top of your program using the “breed” command.

  5. Defining it anywhere in your program using the “breed” command, as long as it is defined before you use the breed.



  1. What are the three ways to create turtles in NetLogo?

  1. Create, Spawn, Breed

  2. ***Create, Sprout and Hatch

  3. Spawn, Sprout, Breed

  4. Hatch, Spawn, Make

  5. Procreate, Sprout, Breed



  1. Will the following NetLogo code hatch any turtles?


turtles-own [energy]
to go-one-time

set energy 0

ask turtles

[

forward 1

set energy (energy – 1)

if (energy < 0) [ die ]

if (pcolor = green) [ set energy (random 25) ]

if energy > 10 [hatch 1]

]

end


  1. Yes all the turtles will give birth to turtles.

  2. Yes, on average, a bit more than half of the turtles will give birth.

  3. Yes, on average, a bit less than half of the turtles will give birth.

  4. Maybe yes, maybe no. It depends on the value of (random 25) for each turtle.

  5. ***No, the turtles will all die because their energy level drops to less than 0 when the turtle moves




  1. The reading of Blown-to-Bits says we leave digital fingerprints when we use our computers and access the Internet because_____




  1. ***Accessing the Internet means downloading information to the computer, some part of the system must know where we are to do that. This leaves a trail.

  2. People often choose to fill out forms on the Internet and enter personal information.

  3. People often choose to use school or company owned computers to access the Internet and these computers are often monitored.

  4. People sometimes use computers with viruses or other malware which can track all the user’s accesses.

  5. Even in a dry climate like New Mexico, people always have some oils on their fingers – this is especially true when eating at the keyboard.




Download 17.58 Kb.

Share with your friends:




The database is protected by copyright ©ininet.org 2024
send message

    Main page