Quiz về Kiểu Dữ Liệu List và Set (1)

Quiz về Kiểu Dữ Liệu List và Set (1)

7th Grade

15 Qs

quiz-placeholder

Similar activities

BASIC Programming (I)

BASIC Programming (I)

10th Grade

10 Qs

Generations of Programming Languages

Generations of Programming Languages

11th Grade

15 Qs

QUIS SUMATIF 1

QUIS SUMATIF 1

12th Grade

15 Qs

IC3_GS6_level 2_Bài 12: Tìm Kiếm Thông Tin

IC3_GS6_level 2_Bài 12: Tìm Kiếm Thông Tin

7th Grade

15 Qs

CHAPTER 1: SYSTEM ANALYSIS AND DESIGN

CHAPTER 1: SYSTEM ANALYSIS AND DESIGN

University

18 Qs

Diagnostic Test Computer Science

Diagnostic Test Computer Science

9th Grade

20 Qs

IC3_GS6_Level2_ Bài 10: Danh tính kĩ thuật số

IC3_GS6_Level2_ Bài 10: Danh tính kĩ thuật số

7th Grade

15 Qs

Quiz 1 - Sistem Informasi Bisnis

Quiz 1 - Sistem Informasi Bisnis

University

10 Qs

Quiz về Kiểu Dữ Liệu List và Set (1)

Quiz về Kiểu Dữ Liệu List và Set (1)

Assessment

Quiz

Information Technology (IT)

7th Grade

Practice Problem

Medium

Created by

Khang Nghĩa

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List trong Python là gì?

Một kiểu dữ liệu chỉ chứa chuỗi.

Một kiểu dữ liệu chỉ chứa số nguyên.

Một kiểu dữ liệu không thay đổi.

Một kiểu dữ liệu cho phép lưu trữ một tập hợp các phần tử.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào được sử dụng để thêm phần tử vào cuối list?

insert()

append()

remove()

pop()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách nào để truy cập phần tử đầu tiên trong list?

my_list[-1]

my_list[0]

my_list[2]

my_list[1]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Điểm khác biệt chính giữa list và set trong Python là gì?

`set` có thể chứa phần tử trùng lặp, còn `list` thì không

`set` không cho phép phần tử trùng lặp, còn `list` thì có

`set` có thể được truy cập bằng chỉ mục, còn `list` thì không

Không có sự khác biệt

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào được sử dụng để xóa toàn bộ phần tử trong list?

clear()

remove()

pop()

append()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp nào dùng để tạo một set?

my_set = set(1, 2, 3)

my_set = (1, 2, 3)

my_set = {1, 2, 3}

my_set = [1, 2, 3]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào dùng để tìm chỉ số của phần tử trong list?

list.search(value)

list.find(value)

list.index(value)

list.locate(value)

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?