
Data Structure
Authored by yeshi dema
Computers
10th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about Python lists is true?
Lists are immutable.
Lists are ordered collections.
Lists can only contain elements of the same data type.
Lists use curly braces {} for initialization.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to add an element 'x' to the end of a list my_list?
'my_list.add(x)'
'my_list.insert(x, -1)'
'my_list.extend(x)'
'my_list.append(x)'
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about tuples in Python?
Tuples are mutable.
Tuples are unordered.
Tuples can be used as keys in dictionaries.
Tuples use square brackets [] for initialization.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary difference between a list and a tuple in Python?
Lists are ordered, and tuples are unordered.
Lists are mutable, and tuples are immutable.
Lists can store elements of different data types, while tuples cannot.
Lists have a fixed size, while tuples can grow dynamically.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about Python sets is true?
Sets allow duplicate elements.
Sets are ordered collections.
Sets are represented using square brackets [].
Sets automatically sort their elements.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following set operation in Python?
'intersection' will be an empty set.
'intersection' will contain the elements {1, 2, 3, 4, 5}.
'intersection' will contain the element {3}.
The code will raise an error.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a Python dictionary, what is the purpose of a key?
Keys are used to access values.
Keys are used to store duplicate values.
Keys are not necessary in dictionaries.
Keys determine the order of elements.
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
15 questions
Binary
Quiz
•
10th Grade
20 questions
ASSO - DHCP, FTP, DNS i Apache2
Quiz
•
9th - 12th Grade
20 questions
ฐานข้อมูลเบื้องต้น
Quiz
•
1st - 12th Grade
20 questions
ระบบจัดการฐานข้อมูล ครั้งที่ 2
Quiz
•
10th Grade
20 questions
FOC Digital Security
Quiz
•
9th - 10th Grade
15 questions
J808 LO1 and LO2 planning project keywords / terms
Quiz
•
9th - 11th Grade
20 questions
2324TX5
Quiz
•
9th - 12th Grade
15 questions
حاسب 2
Quiz
•
10th Grade
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