AP CSP - Python Lists and Arrays

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Fredric Gluck
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a list and an array in Python?
A list and an array are the same thing in Python.
A list can only hold elements of the same type, while an array can hold elements of different types.
Arrays are built-in data structures in Python, while lists are implemented using the NumPy library.
A list is a built-in data structure in Python that can hold multiple values of different types, while an array is typically implemented using the NumPy library and is used for numerical computations. Arrays are fixed in size and can only hold elements of the same type.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create an empty list in Python?
[]
[False]
[None]
[0]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in a list?
0
1
-1
null
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the last element in a list?
list[1]
list[-1]
list[0]
list[-2]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the append() method in Python lists?
To access an element at a specific index in a list.
To remove an element from a list.
To add an element to the end of a list.
To sort the elements in a list.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you remove an element from a list in Python?
remove() or del
index()
clear()
pop()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between the extend() and append() methods in Python lists?
The extend() method appends elements from an iterable to the list, while the append() method adds a single element to the list.
The extend() method adds a single element to the list, while the append() method appends elements from an iterable to the list.
The extend() method is used to add elements to the beginning of the list, while the append() method adds elements to the end of the list.
The extend() method is used to concatenate two lists, while the append() method is used to remove elements from a list.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
list in python

Quiz
•
10th - 12th Grade
10 questions
H466 - Arrays, Records, Tuples and Lists

Quiz
•
11th Grade - University
10 questions
Mastering Text File Handling in Python

Quiz
•
12th Grade
14 questions
Работа с файлами

Quiz
•
10th Grade
8 questions
Масиви в Python

Quiz
•
11th Grade
10 questions
9-сынып. Python массив.

Quiz
•
1st - 9th Grade
10 questions
Python Array- quiz

Quiz
•
11th Grade
10 questions
Python Revision Tour

Quiz
•
10th Grade
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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade