Python Lists Quiz

Quiz
•
Computers
•
University
•
Easy
Sherif Abdelhamid
Used 24+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for creating a list in Python?
my_list = {1, 2, 3, 4, 5}
my_list = [1, 2, 3, 4, 5]
my_list = [1 2 3 4 5]
my_list = (1, 2, 3, 4, 5)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list in Python?
list_name[0]
list_name[1]
list_name[first]
list_name[-1]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to add an element to the end of a list in Python?
append()
insert()
remove()
extend()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of [1, 2, 3] + [4, 5, 6] in Python?
[1, 2, 3, 4, 5]
[5, 7, 9, 11]
[1, 2, 3, 9, 10, 11]
[1, 2, 3, 4, 5, 6]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term for a list within another list in Python?
Sub list
Nested list
Listception
Double list
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the last element of a list in Python?
list_name[-1]
list_name.last
list_name[last]
list_name(1)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is a list in Python mutable or immutable?
fixed
mutable
dynamic
immutable
Create a free account and access millions of resources
Similar Resources on Wayground
7 questions
Tipos de Datos en Python

Quiz
•
12th Grade - University
15 questions
Python Programming - Introduction

Quiz
•
University
10 questions
Python Round 2

Quiz
•
University
10 questions
TIU Quiz-9

Quiz
•
University
15 questions
[Python For All] Quiz 5 - Numpy

Quiz
•
University
10 questions
Python-Expressions#1

Quiz
•
12th Grade - University
15 questions
Py-Hackathon - Week 2 - Day 2

Quiz
•
University
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University