Kiến thức về List trong Python

Kiến thức về List trong Python

6th Grade

15 Qs

quiz-placeholder

Similar activities

Bài 5. Thao tác với bảng tính

Bài 5. Thao tác với bảng tính

1st - 12th Grade

20 Qs

BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

1st - 12th Grade

10 Qs

Biến và gán giá trị cho biến

Biến và gán giá trị cho biến

6th - 8th Grade

15 Qs

BÀI 9. TRÌNH BÀY DỮ LIỆU BẰNG BIỂU ĐỒ

BÀI 9. TRÌNH BÀY DỮ LIỆU BẰNG BIỂU ĐỒ

1st - 12th Grade

12 Qs

BÀI 6 ĐỊNH DẠNG TRANG TÍNH

BÀI 6 ĐỊNH DẠNG TRANG TÍNH

1st - 12th Grade

20 Qs

Ôn tập Tin học 5 HKI

Ôn tập Tin học 5 HKI

4th Grade - University

20 Qs

Tin học 5

Tin học 5

1st - 12th Grade

20 Qs

PY_HW10

PY_HW10

6th Grade

10 Qs

Kiến thức về List trong Python

Kiến thức về List trong Python

Assessment

Quiz

Computers

6th Grade

Medium

Created by

LONG NGUYEN

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List là gì trong Python?

List trong Python là một kiểu dữ liệu dùng để lưu trữ một giá trị duy nhất trong một biến.

List trong Python là một kiểu dữ liệu chỉ dùng để lưu trữ chuỗi ký tự.

List trong Python là một kiểu dữ liệu chỉ dùng để lưu trữ số nguyên.

List trong Python là một kiểu dữ liệu dùng để lưu trữ nhiều giá trị khác nhau trong một biến.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách khai báo một List trong Python?

my_list = '1, 2, 3'

my_list = [1, 2, 3]

my_list = (1, 2, 3)

my_list = {1, 2, 3}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để truy cập phần tử trong một List?

list.at(index)

list[element]

list{index}

list[index]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để cập nhật giá trị của một phần tử trong List?

my_list.update(index, new_value)

my_list.replace(index, new_value)

my_list[index] = new_value

my_list.add(index, new_value)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để thêm một phần tử vào List?

my_list.extend(new_element)

my_list.insert(new_element)

my_list.append(new_element)

my_list.add(new_element)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để xóa một phần tử khỏi List?

del my_list[index]

my_list.remove(element) hoặc my_list.pop(index)

my_list.exclude(element)

my_list.clear()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để sắp xếp một List trong Python?

my_list.reorder()

my_list.sort()

my_list.order()

my_list.arrange()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?