Exam 8: Lists and Tuples
Exam 1: Introduction to Computers and Programming35 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Simple functions34 Questions
Exam 4: Decision Structures and Boolean Logic35 Questions
Exam 5: Repetition Structures35 Questions
Exam 6: Value-Returning functions and Modules35 Questions
Exam 7: files and Exceptions35 Questions
Exam 8: Lists and Tuples35 Questions
Exam 9: More About Strings35 Questions
Exam 10: Dictionaries and Sets35 Questions
Exam 11: Classes and Object-Oriented Programming35 Questions
Exam 12: Inheritance35 Questions
Exam 13: Recursion35 Questions
Exam 14: GUI Programming35 Questions
Select questions type
In slicing, if the end index specifies a position beyond the end of the list, Python will use the length of the list instead.
(True/False)
4.9/5
(40)
The built-in function _______________ returns the length of a sequence.
(Short Answer)
4.8/5
(35)
What would be the value of the variable list after the execution of the following code? list = [1, 2, 3, 4]
List[3] = 10
(Multiple Choice)
5.0/5
(36)
A(n) _______________ is an object that holds multiple items of data.
(Short Answer)
4.8/5
(48)
What would you use if an element is to be removed from a specific index?
(Multiple Choice)
4.8/5
(40)
What method can be used to place an item in the list at a specific index?
(Multiple Choice)
4.8/5
(34)
Which list will be referenced by the variable number after the execution of the following code? number = range(0, 9, 2)
(Multiple Choice)
4.8/5
(44)
The primary difference between a tuple and list is that _____.
(Multiple Choice)
4.9/5
(30)
Arrays, which most other programming languages allow, have much more capabilities than list structures.
(True/False)
4.9/5
(37)
What would be the value of the variable list2 after the execution of the following code? list1 = [1, 2, 3]
List2 = list1
List1 = [4, 5, 6]
(Multiple Choice)
4.7/5
(37)
The first step in calculating the average of the values in a list is to get the total of the values.
(True/False)
4.8/5
(34)
Showing 21 - 35 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)