CS151L Fall 2013 Week 7: Possible Quiz Questions

advertisement
CS151L Fall 2013
Week 7: Possible Quiz Questions
Password: Mandelbrot
Designing and Running Experiments in NetLogo
1.
What is a computer simulation?
a) A device that can be used to simulate a computer.
b) A computer code that explores how a computer can be used in the real
world.
c) Running the computer model to simulate the passage of time and
exploring the behavior of the modeled system.
d) An abstraction of the real world that captures the elements of the
system and the behavior of the elements being modeled.
e) Something that you teacher tells you to do on the computer.
Answer: c
2.
Which of the following is the least important (or unimportant) element
when running a stochastic computer model to make generalizations and
conclusions about the model’s behavior?
a) Sweeping input parameters.
b) Repetitions at each set of input parameters.
c) Recording the output and recording which set in input parameters
were used in the run that generated that output.
d) Randomly selecting input parameters until the required output is
obtained.
e) Testing the model by running it with input parameters for which the
correct output is known.
Answer: d
Document1
3.
What is a deterministic computer simulation?
a) A simulation that gives you numbers for an answer.
b) A simulation that actually can be used to determine something.
c) A simulation that is being run by people who are determined to get the
correct answer.
d) A simulation that does not involve randomness and provides single
outputs for each set of inputs.
e) A simulation that was written by a very determined programmer.
Answer: d
4.
What is a stochastic simulation?
a) A simulation that can produce different outputs for the same set of
inputs because randomness is involved.
b) A simulation that can be used to develop an understanding of problem
based on the chaste system in India.
c) A simulation that uses the stochastic algorithm developed by a
programmer named Stochast.
d) A simulation with inputs that are set using a uniform random
distribution.
e) A simulation with inputs that are set using a normal random
distribution.
Answer: a
5.
Why do you need to repeat runs of a stochastic simulation at the same
input parameters?
a) Because you teacher wants to torture you, repeatedly.
b) Because that is what the computer lab tells you to do.
c) Because you are not sure you entered the input parameters correctly.
d) 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.
e) Because you must average the results for each set of input parameters
to get a representative answer.
Answer: e
Document1
Population Dynamics
6.
Which of these things is negative feedback for a population of rabbits?
a) Plants that rabbits can eat which grows more quickly in the presence
of rabbit poop.
b) A debilitating disease that can be transmitted from one rabbit to
another.
c) A non-native, rodent species that eats a different kind of plant than the
rabbits eat.
d) Punishing the rabbits with a small electric shock when they try to exit
their safe and protected habitat.
e) All of the above.
Answer: b
Breeds and Shapes
7.
You define a breed in NetLogo by:
a) Defining it anywhere in your program using the “set” command, as
long as it is defined before you use the breed.
b) Defining it anywhere in your program using the “let” command, as
long as it is defined before you use the breed.
c) Defining it by setting its shape in the setup procedure.
d) Defining it at the very top of your program using the “breed”
command.
e) Defining it anywhere in your program using the “breed” command, as
long as it is defined before you use the breed.
Answer: d
Creating Turtles in NetLgog
8.
What are the three ways to create turtles in NetLogo?
a) Create, Spawn, Breed
b) Create, Sprout and Hatch
c) Spawn, Sprout, Breed
d) Hatch, Spawn, Make
e) Procreate, Sprout, Breed
Answer: b
Document1
9.
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
a)
b)
c)
d)
e)
Yes all the turtles will give birth to turtles.
Yes, on average, a bit more than half of the turtles will give birth.
Yes, on average, a bit less than half of the turtles will give birth.
Maybe yes, maybe no. It depends on the value of (random 25) for each turtle.
No, the turtles will all die.
Answer: e
10.
The reading of Blown-to-Bits says we leave digital fingerprints when we
use our computers and access the Internet because_____
a) 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.
b) People often choose to fill out forms on the Internet and enter personal
information.
c) People often choose to use school or company owned computers to
access the Internet and these computers are often monitored.
d) People sometimes use computers with viruses or other malware which
can track all the user’s accesses.
e) 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.
Answer: a
Document1
=============== outtakes =================
11.
What is the main difference between a deterministic simulation and a
stochastic simulation?
a)
A deterministic simulation can determine something and a stochastic
simulation just guesses at it.
b)
A deterministic simulation involves numbers and a stochastic simulation
does not.
c)
A deterministic simulation does not involve randomness and a stochastic
simulation does involve randomness.
d)
There is no real difference between deterministic simulations and
stochastic simulations.
e)
A deterministic simulation is used to simulate real world events and a
stochastic simulation is not.
Answer: c
12.
What is a computer model?
a)
An abstraction of the real world that captures the elements of the system
and the behavior of the elements being modeled.
b)
Someone who serves as a subject for artists, photographers, etc.
c)
A small replica of a larger object.
d)
A device that represents something, which is used for comparison or
imitation.
e)
A person who were fashionable clothing and walks down a runway.
Answer: a
13.
What are the steps needed in running a good simulation using a
stochastic model (one that uses randomness)?
a)
Selecting the input parameters, sweeping input parameters, and selecting
output results needed.
b)
Sweeping input parameters, repetitions at each set of input parameters
and selecting output results needed.
c)
Selecting input parameters, running the code once at each set of input
parameters and then printing the output.
d)
Selecting input parameters, selecting output parameters and running the
code once.
e)
Sweeping input parameters, selecting output parameters and sweeping
output parameters.
Document1
Answer: b
14.
What is Positive Feedback in population dynamics?
a)
Something that causes an increase in the population you are studying.
b)
A positive comment or statement.
c)
A positive view on a group or population.
d)
An actual increase in the population that you are studying.
e)
The loud screeching sound that you sometimes get in speakers.
Answer: a
15.
a)
b)
c)
d)
e)
What is Negative Feedback in population dynamics?
Something that causes a decrease in the population you are studying.
A negative comment or statement
A negative view on a group or population.
An actual increase in the population that you are studying.
A muffling of sound.
Answer: a
16.
a)
b)
c)
d)
e)
Which of these things is negative feedback for a population of rabbits?
Not enough food for the rabbits to eat.
Rabbit hunting season starting.
An increase in the coyote population that eat rabbits.
A new infectious rabbit disease that has a high death rate.
All of the above
Answer: e
17.
When modeling a population of a species, what sorts of things can affect
birth and death rates in a population?
a)
The specific types of agent/agent interactions, agent/environment
interactions, and changes in the agent.
b)
How fast you run the model after you finish developing it.
c)
The colors you choose for the agents and patches when developing your
model.
d)
What computer you run the model on.
e)
The shape of agents you choose when developing your model.
Answer: a
18.
In the following segment of code, “food-location” is a
Document1
breed [ foragers forager ]
breed [ followers follower ]
foragers-own [ food-location food-distance food-found? ]
followers-own [ foragers-food-location forager-distance ]
a)
b)
c)
d)
e)
Local variable
Global variable
Turtle variable
Food-location in not a variable
Patch variable
Answer: c
Document1
Download