Bài tập kiểu danh sách

Bài tập kiểu danh sách

10th Grade

10 Qs

quiz-placeholder

Similar activities

Year 6 Science GL Style Practice Paper

Year 6 Science GL Style Practice Paper

5th Grade - University

10 Qs

Presidents Unit 1 Quiz 1

Presidents Unit 1 Quiz 1

10th Grade

14 Qs

Plate Tectonics and the Seafloor Practice

Plate Tectonics and the Seafloor Practice

10th Grade - University

10 Qs

NUCLEO E DIV. CELULARES

NUCLEO E DIV. CELULARES

9th - 12th Grade

10 Qs

Review Chapter 3 Vocab

Review Chapter 3 Vocab

4th Grade - University

13 Qs

Roots: Unit 1-9

Roots: Unit 1-9

5th Grade - University

15 Qs

Ch 8 - Cell Transport

Ch 8 - Cell Transport

9th - 12th Grade

12 Qs

The Bill of Rights

The Bill of Rights

9th - 12th Grade

15 Qs

Bài tập kiểu danh sách

Bài tập kiểu danh sách

Assessment

Quiz

others

10th Grade

Practice Problem

Medium

Created by

Thảo Thị

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào sau đây dùng để khởi tạo list gồm 5 số nguyên?

a={1,5,8,9,10}

so nguyen=[1,5,8,9,10]

m=[1,5,8,9,10]

a=[5]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho biết kết quả khi thực hiện đoạn lệnh sau:

a=[5,9,10,20]

print(a[2])

2

9

20

10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào tính độ dài danh sách trong Python?

A. len()
B. del
C. append()
D. insert()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào thêm phần tử vào cuối DANH SÁCH trong Python?

A. len()
B. del
C. append()
D. insert()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào được sử dụng để khởi tạo một danh sách rỗng trong Python?

A. new_list = list()
B. new_list = []

C. new_list = list(0)

D. new_list = [0]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Các phần tử trong danh sách Python được phân tách bằng ký tự gì?

A. Dấu chấm phẩy (;)
B. Dấu phẩy (,)
C. Dấu hai chấm (:)
D. Dấu chấm (.).

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Các phần tử trong một danh sách có thể là kiểu dữ liệu gì?

A. Chỉ có thể là kiểu số
B. Chỉ có thể là kiểu chuỗi

C. Có thể là kiểu số, xâu kí tự, danh sách, ...

D. Chỉ có thể là kiểu logic

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

Already have an account?