Exam 11: Simulation:computer Simulation Using Objects
Exam 1: Introduction to Python: Introduction to Numeric Types, Turtle Graphics, Simple for Loops and Functions34 Questions
Exam 2: Pthon: Estimating PI: Math and Random Methods, Selection and Boolean Expressions, the Print Function33 Questions
Exam 3: Codes and Other Secrets: String Operators and Methods, the Len Built-In Function, Keyword Parameters, User Input33 Questions
Exam 4: Introducing the Python Collections: Lists, Dictionaries, Tuples, and Statistics33 Questions
Exam 5: Bigger Data: File Io: the While Loop, String Formatting, Reading Online Data in CSV and Json Formats33 Questions
Exam 6: Image Processing: Nested for Loops, Functions As Parameters, Namespaces, Lists of Lists33 Questions
Exam 7: Data Mining: Cluster Analysis: More on the While Loop; Parrallel Lists31 Questions
Exam 8: Cryptanalysis: Advanced Dictionaries and Lists, Regular Expressions32 Questions
Exam 9: Fractals: the Geometry of Nature: Recursion, Grammars and Production Rules33 Questions
Exam 10: Astronomy: Creating Classes, Writing Constructors, Accessors, Mutators and Special Methods33 Questions
Exam 11: Simulation:computer Simulation Using Objects34 Questions
Exam 12: Father Was a Rectangle: Inheritance and Object-Oriented Design32 Questions
Exam 13: Video Games: Multithreading, Event Handlers, Static Variables33 Questions
Select questions type
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)