Exam 4: Introducing the Python Collections: Lists, Dictionaries, Tuples, and Statistics
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
Match each definition with its term.
-Found by locating the item that occurs in the exact middle of a collection.
Free
(Multiple Choice)
5.0/5
(30)
Correct Answer:
A
One of the most often used measures of a collection of data is known as:
Free
(Multiple Choice)
4.9/5
(46)
Correct Answer:
B
Case Study 3:
>>> ages = {'David':45, 'Brenda':46}
>>> ages
{'David': 45, 'Brenda': 46}
>>>
-Refer to the session in the accompanying Case Study 3. The reference ages refers to a list.
Free
(True/False)
4.9/5
(28)
Correct Answer:
False
Case Study 2:
>>> changeList = [1, 2, "buckle my shoe", 3, 4,
"shut the door"]
2. >>> changeList
3. [1, 2, 'buckle my shoe', 3, 4, 'shut the door']
4. >>> changeList[2] = "the sky is blue"
5. >>> changeList
6. ??????
7. >>> name = "Monte"
8. >>> name[2] = "x"
9. ??????
-Refer to the session in the accompanying Case Study 2. What will be the output on line 9?
(Multiple Choice)
4.9/5
(39)
Match each definition with its term.
-The most frequently occurring value in a collection.
(Multiple Choice)
4.9/5
(33)
Match each definition with its term.
-Calculated by adding up the values in a collection and dividing by the number of items.
(Multiple Choice)
4.8/5
(40)
What represents the value(s) that occur most often in a set of data?
(Multiple Choice)
4.9/5
(42)
The following Python statement creates a list of even numbers in ascending order:
list(range(10, 2, -2))
(True/False)
4.8/5
(49)
Case Study 3:
>>> ages = {'David':45, 'Brenda':46}
>>> ages
{'David': 45, 'Brenda': 46}
>>>
-Refer to the session in the accompanying Case Study 3. What will be the output after the following statement?
>>> ages['Kelsey'] = 19
>>> ages
(Multiple Choice)
4.8/5
(32)
Match each definition with its term.
-Measure of how spread out data values in a collection are.
(Multiple Choice)
4.8/5
(50)
A Python ____ is a collection of associated pairs of items where each pair consists of a key and a value.
(Multiple Choice)
4.8/5
(36)
Define the concept of a list and describe some specific characteristics of lists in Python.
(Essay)
4.8/5
(33)
Showing 1 - 20 of 33
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)