
MCQ Questions- List

Quiz
•
Computers
•
University
•
Medium
JENEFA NAVEEN
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements creates an empty list?
a) list1 = []
b) list1 = ()
c) list1 = {}
d) list1 = [None]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code snippet?
list1 = [1, 2, 3, 4, 5]
list1[1:4] = [8, 9, 10]
print(list1)
a) [1, 2, 3, 4, 5]
b) [1, 8, 9, 10, 5]
c) [1, 8, 9, 10, 4, 5]
d) [1, 8, 9, 10]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods returns the number of times a specified element appears in the list?
a) append()
b) count()
c) index()
d) remove()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
list1 = [1, 2, 3]
list2 = [4, 5, 6]
list3 = list1 + list2
print(len(list3))
6
7
8
9
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods removes and returns the last element of a list?
a) pop()
b) remove()
c) del()
d) clear()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
list1 = [1, 2, 3, 4]
list2 = list1.copy()
list1[1] = 5
print(list2)
a) [1, 2, 3, 4]
b) [1, 5, 3, 4]
c) [1, 5, 3, 4, 5]
d) [1, 2, 5, 4]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods reverses the order of the elements in a list?
a) sort()
b) reverse()
c) pop()
d) index()
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Prob. prog 2

Quiz
•
University
11 questions
RDBMS

Quiz
•
University
10 questions
PYTHON-STRINGS

Quiz
•
University
10 questions
Python Round 2

Quiz
•
University
11 questions
Ordre supérieur et arbres 2

Quiz
•
University
10 questions
Tes Awal Modul 4

Quiz
•
University
10 questions
TIU Quiz-9

Quiz
•
University
15 questions
ROTC Make-up 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