Exam 7: Lists and Tuples
Exam 1: Introduction to Computers and Programming39 Questions
Exam 2: Input, Processing, and Output40 Questions
Exam 3: Decision Structures and Boolean Logic40 Questions
Exam 4: Repetition Structures41 Questions
Exam 5: Functions66 Questions
Exam 6: Files and Exceptions40 Questions
Exam 7: Lists and Tuples40 Questions
Exam 8: More About Strings37 Questions
Exam 9: Dictionaries and Sets39 Questions
Exam 10: Classes and Object-Oriented Programming38 Questions
Exam 11: Inheritance36 Questions
Exam 12: Recursion35 Questions
Exam 13: Gui Programming42 Questions
Select questions type
Lists are ___________,which means their elements can be changed in a program.
Free
(Short Answer)
4.9/5
(84)
Correct Answer:
mutable
Invalid indexes do not cause slicing expressions to raise an exception.
Free
(True/False)
4.8/5
(80)
Correct Answer:
True
What will be the output after the following code is executed?

Free
(Multiple Choice)
4.7/5
(82)
Correct Answer:
D
In order to create graphs using the matplotlib package,you need to import the pyplot module.
(True/False)
4.9/5
(68)
Arrays,which are allowed by most other programming languages,have more capabilities than Python list structures.
(True/False)
4.7/5
(68)
Which list will be referenced by the variable number after the following code is executed?
Number = range(0,9,2)
(Multiple Choice)
4.7/5
(84)
The ___________ function can be used to convert a list to a tuple.
(Short Answer)
4.8/5
(77)
The __________ exception is raised when a search item is not in the list being searched.
(Short Answer)
4.8/5
(88)
What will be the value of the variable list2 after the following code executes?

(Multiple Choice)
4.9/5
(80)
The __________ method is commonly used to add items to a list.
(Short Answer)
4.8/5
(84)
A(n)__________ is an object that holds multiple items of data.
(Short Answer)
4.7/5
(67)
The remove method removes all occurrences of an item from a list.
(True/False)
5.0/5
(74)
The index of the first element in a list is 1,the index of the second element is 2,and so forth.
(True/False)
4.8/5
(77)
The built-in function __________ returns the length of a sequence.
(Short Answer)
4.9/5
(83)
Which of the following would you use if an element is to be removed from a specific index?
(Multiple Choice)
4.9/5
(81)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)