Exam 11: Simulation:computer Simulation Using Objects

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

To create a grid using row major order, first create a row by repeatedly appending ____ to an empty list.

(Multiple Choice)
4.9/5
(34)

As you consider the implementation for the Fish, Bear, and Plant classes, you have probably noticed that there are a number of duplications. The technique of ____ would help to solve this issue.

(Multiple Choice)
4.8/5
(38)

The freezeWorld method of a simulation calls the ____ method of wscreen to allow the graphics window to remain drawn after the simulation has ended.

(Multiple Choice)
4.8/5
(39)

Explain how to identify the instance variables and methods that should belong to an object.

(Essay)
4.8/5
(26)

Assume a list g exists. When using row major order representing a grid, how do you access an item at location (x, y) in g?

(Multiple Choice)
4.7/5
(29)

Consider the bears and fish simulation presented in your text. Imagine that a fish is at location (x, y) and squares are drawn all around it in two dimensions. What are the coordinates for the location that is immediately above the fish in the previous row?

(Multiple Choice)
4.7/5
(40)

The complexity of a computer simulation is dependent on the complexity of the underlying reality as well as the specific characteristics we are interested in representing.

(True/False)
4.9/5
(28)

Explain how you might add a Plant class to the bears and fish simulation presented in your text.

(Essay)
4.8/5
(46)

Match each definition with its term. -A programmatic model of some specific aspects of a real situation or system.

(Multiple Choice)
4.8/5
(41)

What is a computer simulation?

(Essay)
4.8/5
(34)

Match each definition with its term. -Identified by nouns and used to create objects that correspond to parts of a problem.

(Multiple Choice)
4.9/5
(34)

Computer simulations use ____ as a way of introducing some realistic variability into the underlying model.

(Multiple Choice)
4.8/5
(40)

When creating objects, the list of things that an object can do will become methods.

(True/False)
4.8/5
(39)

The solution for the bears and fish simulation in your text creates a two-dimensional grid. Explain how to implement this type of grid in Python.

(Essay)
4.8/5
(40)
Showing 21 - 34 of 34
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)