
Python List
Authored by priyanka malhotra
Other
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output when we execute list(“hello”)?
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
[‘hello’]
[‘llo’]
[‘olleh’]
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
5
4
None
Error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [2445,133,12454,123], what is max(list1)?
2445
133
12454
123
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
3
5
25
1
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [1, 5, 9], what is sum(list1)?
1
9
15
Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
To shuffle the list(say list1) what function do we use?
list1.shuffle()
shuffle(list1)
random.shuffle(list1)
random.shuffleList(list1)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?
print(list1[0])
print(list1[:2])
print(list1[:-2])
all of the mentioned
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?