
Python

Quiz
•
Computers
•
University
•
Hard

NANCY P
Used 3+ times
FREE Resource
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]
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Idiomatic Python

Quiz
•
University
10 questions
Python - Functions

Quiz
•
University
15 questions
Exploring Python Fundamentals

Quiz
•
12th Grade - University
15 questions
Python-Day-3

Quiz
•
12th Grade - University
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
15 questions
Round 4 - Harvest

Quiz
•
University
15 questions
Quiz4

Quiz
•
University
10 questions
Puzzle Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University