Exam 6: Objects and Their Use

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The can be created numerous turtle objects in a given program.

(True/False)
4.8/5
(39)

Give Python code using turtle graphics that draws three squares, one inside of the other as shown below. 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)

Match the following: -memory deallocation

(Multiple Choice)
4.8/5
(38)

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
close modal

Filters

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