
Python Exam 3
Authored by Dr Mohsin
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
57 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This term refers to an individual item in a list.
element
bin
cubbyhole
slot
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This is a number that identifies an item in a list.
element
index
bookmark
identifier
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first index of a list?
1
-1
!
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the last element of a list?
len(list)
1
0
len(list)-1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This will happen if you try to use an index that is out of range for a list.
A ValueError exception will occur
An IndexError exception will occur
The list will be erased and the program will continue
The statement containing the invalid index will be ignored
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to output the length of a list?
len(list_name)
length(list_name)
list_name.len()
list_name.length()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When the * operator's left operand is a list and its right operand is an integer, the operator becomes this.
The multiplication operator
The repetition operator
The initialization operator
Nothing
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?