Exam 7: Lists and Tuples
Exam 1: Introduction to Computers and Programming36 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Decision Structures and Boolean Logic35 Questions
Exam 4: Repetition Structures34 Questions
Exam 5: Functions and Modules69 Questions
Exam 6: Files and Exceptions34 Questions
Exam 7: Lists and Tuples35 Questions
Exam 8: More About Strings35 Questions
Exam 9: Dictionaries and Sets35 Questions
Exam 10: Classes and Object Oriented Programming35 Questions
Exam 11: Inheritance35 Questions
Exam 12: Recursion35 Questions
Exam 13: GUI Programming35 Questions
Select questions type
The _______________ exception is raised when a search item is not in the list being searched.
(Short Answer)
4.8/5
(35)
What would you use if an element is to be removed from a specific index?
(Multiple Choice)
4.8/5
(43)
A(n) _______________ is an object that holds multiple items of data.
(Short Answer)
4.7/5
(30)
A(n) _______________ is a span of items that are taken from a sequence.
(Short Answer)
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
(39)
Lists are dynamic data structures such that items may be added to them or removed from them.
(True/False)
4.8/5
(43)
What would be the value of the variable list after the execution of the following code?
List = [1, 2]
List = list * 3
(Multiple Choice)
4.9/5
(33)
The built-in function _______________ returns the length of a sequence.
(Short Answer)
4.9/5
(34)
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
(36)
The _______________ function returns the item that has the lowest value in the sequence.
(Short Answer)
4.8/5
(38)
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)
4.9/5
(27)
Invalid indexes do not cause slicing expressions to raise an exception.
(True/False)
4.8/5
(40)
The _______________ method reverses the order of the items in the list.
(Short Answer)
4.8/5
(38)
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
(39)
Showing 21 - 35 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)