Search Header Logo

Kiến thức về List trong Python

Authored by LONG NGUYEN

Computers

6th Grade

Used 1+ times

Kiến thức về List trong Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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()

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers