Python课堂quiz

Python课堂quiz

收藏豆荚
剥了 5 次
年级:大学
科目:信息科技
敏敏🍊Ora
2025-12-11
9 颗豆豆
1. 单选题
30 秒

Which of the following will result in {1,2,3}?

list("123")

tuple("123")

set("123")

None of the above

2. 单选题
30 秒

Which of the following can create an empty set?

set()

{}

[]

()

3. 单选题
30 秒

For two sets s1 and s2, s1 < s2 means_______.

The size of s1 is smaller than that of s2

The elements of s1 are smaller than those of s2

s1 is a proper subset of s2

s2 is a proper subset of s1

4. 单选题
30 秒

Which of the following operations does not exist for a set s?

len(s)

s.append(1)

max(s)

s - {1}

5. 单选题
30 秒

For the operation a[2]=3, the type of a cannot be ______.

Set

List

Tuple

Dictionary

6. 判断题
30 秒

Elements of a set can be of any data type.

7. 判断题
30 秒

The result of len(set([0,4,5,6,0,7,8])) is 7.

8. 判断题
30 秒

For a = {}, the result of type(a) is <class'set'>.

9. 判断题
30 秒

List can be used as keys of dictionaries.

剥豆豆
金牌
会员
无限剥豆豆游戏,更详尽的游戏报告,更多学员的支持
仅需0.6/日
你可能喜欢
生物期末闯关游戏(二)
剥了 2 次
小小闯关,拿下
剥了 2 次
华为产品知识与销售技巧测验
剥了 2 次
2026DPU珠海年会
剥了 2 次
Week 20 PEP vocabulary
剥了 2 次