
Python
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard

NANCY P
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
append() is used to add new elements at which position in a list?
begin
middle
end
None
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Lists are mutable
Yes
No
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
my_list = ["hello", "world", "hi", "bye"]
What will be the output of
print(my_list[-1])?
"hello"
"world"
"hi"
"bye"
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following list function?
sampleList = [10, 20, 30, 40, 50]
sampleList.pop()
print(sampleList)
sampleList.pop(2)
print(sampleList)
[20, 30, 40, 50]
[10, 20, 40]
[10, 20, 30, 40]
[10, 20, 30, 50]
[10, 20, 30, 40]
[10, 20, 40]
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following list assignment?
aList = [4, 8, 12, 16]
aList[1:4] = [20, 24, 28]
print(aList)
[4, 20, 24, 28, 8, 12, 16]
[4, 20, 24, 28]
[4,8,12,16,20,24,28]
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code?
list1 = ['xyz', 'zara', 'PYnative']
print (max(list1))
PYnative
zara
xyz
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following?
aList = [5, 10, 15, 25]
print(aList[::-2])
[15, 10, 5]
[10, 5]
[25, 10]
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?
Similar Resources on Wayground
10 questions
ML Course Activity-II
Quiz
•
University
10 questions
Logika Fuzzy
Quiz
•
University
10 questions
NEO LMS Training
Quiz
•
University
10 questions
Quis 1 APSI
Quiz
•
University
10 questions
Bài 25 tin 10
Quiz
•
9th Grade - University
15 questions
หน่วยที่2การสร้างมูลค่าเพิ่มให้ผลิตภัณฑ์หรือบริการ
Quiz
•
11th Grade - University
12 questions
Python Quiz 1.4
Quiz
•
University
10 questions
Perangkat komputer
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
