Exam 6: Objects and Their Use
Exam 1: Introduction102 Questions
Exam 2: Data and Expressions71 Questions
Exam 3: Control Structures129 Questions
Exam 4: Lists85 Questions
Exam 5: Functions83 Questions
Exam 6: Objects and Their Use54 Questions
Exam 7: Modular Design62 Questions
Exam 8: Text Files58 Questions
Exam 9: Dictionaries and Sets33 Questions
Exam 10: Object-Oriented Programming81 Questions
Exam 11: Recursion27 Questions
Select questions type
Give Python code using turtle graphics that draws three squares, one inside of the other as shown below.


(Essay)
4.8/5
(35)
The __________ method of turtle graphics in Python is used to create a turtle screen of a specific size.
(Short Answer)
4.8/5
(41)
Built-in function id can be used to obtain the reference value of any object in Python.
(True/False)
5.0/5
(37)
An object consists of functions, called methods, that operate on the data contained within the object.
(True/False)
4.7/5
(26)
Examine the following Python code:
list1 = [1, 2, 3, 4, 5]
list2 = nList
list1.append(6)
list2.append(7)
for i in list1:
print(i, end = '')
print()
for i in list2:
print(i, end = '')
What will this code output? Explain.
(Essay)
4.8/5
(29)
After the following series of assignments are performed,
List1 = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
List2 = list(list1)
List2[0][0] = 10
(Multiple Choice)
4.9/5
(35)
After the following series of assignments are performed,
List1 = [1, 2, 3, 4]
List2 = list(list1)
List1 = [5, 6, 7, 8]
(Multiple Choice)
4.8/5
(40)
Suppose that list1 is assigned to a list of integers. Given the proper code so that a complete copy of list1 is assigned to variable list2.
(Short Answer)
4.8/5
(40)
Give Python code to determine if two lists, list1 and list2, reference two completely different list objects or not.
(Short Answer)
4.9/5
(43)
There are two values associated with an object, its ___________________ value and its_____________________ value.
(Short Answer)
4.8/5
(37)
There are two types of creating a copy of an object, a ___________ copy and a _____________ copy..
(Short Answer)
4.9/5
(35)
Built-in function id return a unique value for all objects in Python.
(True/False)
4.8/5
(46)
Showing 41 - 54 of 54
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)