
Python Tuples Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Shiwen Zhang
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下面哪一个是元组?
thistuple = 'apple, banana, cherry'
thistuple = {'apple', 'banana', 'cherry'}
thistuple = ('apple', 'banana', 'cherry')
thistuple = ['apple', 'banana', 'cherry']
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下面哪个代码可以在python里面表示一个元组?
tuple = '1, 2, 3'
tuple = {1, 2, 3}
tuple = [1, 2, 3]
tuple = (1, 2, 3)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下哪项不是元组的特征?
元组是有序集合。
元组可以包含重复元素。
元组在创建后可以修改。
元组是不可变的。
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
哪种数据结构用于将多个项目存储在一个变量中?
元组
字符串
整数
浮点数
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
使用正确的语法打印水果元组中的元素数量
fruits = ("apple", "banana", "cherry")
print(________)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
您可以通过引用索引号来访问元组中的元素,那么第一个元素的索引号是多少?
1
0
-1
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
完善对应的语法,使代码可以输出元组fruits里面的第一个元素
fruits = ("apple", "banana", "cherry")
print(_______)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Data Science Basics
Quiz
•
University
10 questions
3-1資料處理
Quiz
•
7th Grade - University
10 questions
Operating-System Operations
Quiz
•
University
15 questions
2425 S5 ICT Lesson Quiz - DB Normalization
Quiz
•
11th Grade - University
10 questions
排序测试
Quiz
•
University
13 questions
數字系統的基本概念與應用
Quiz
•
12th Grade - University
10 questions
erp-採購-10
Quiz
•
University - Professi...
20 questions
Pandas基础
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th 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
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
