BaiThucHanhKieuDanhSach-Python

BaiThucHanhKieuDanhSach-Python

10th Grade

10 Qs

quiz-placeholder

Similar activities

TABLA PERIODICA

TABLA PERIODICA

1st - 12th Grade

8 Qs

Projectile Motion Pre Test

Projectile Motion Pre Test

7th - 10th Grade

10 Qs

Our Future

Our Future

KG - 12th Grade

10 Qs

Pre and post assessment - evolution

Pre and post assessment - evolution

10th Grade

10 Qs

Carbon-based molecules

Carbon-based molecules

9th - 10th Grade

11 Qs

SNC2L Chp  4 Support Your Opinion

SNC2L Chp 4 Support Your Opinion

10th Grade

10 Qs

ANIMALES INVERTEBRADOS

ANIMALES INVERTEBRADOS

4th Grade - University

10 Qs

Stem Cells Grade 9 quiz

Stem Cells Grade 9 quiz

9th - 10th Grade

11 Qs

BaiThucHanhKieuDanhSach-Python

BaiThucHanhKieuDanhSach-Python

Assessment

Quiz

Science

10th Grade

Medium

Created by

Trieu Tham

Used 15+ 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

20 sec • 1 pt

Để khai báo một danh sách rỗng ta dùng cú pháp sau:

<tên danh sách> ==[]

<tên danh sách> = 0

<tên danh sách> = []

<tên danh sách> = [0]

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Trong python, để khai báo một danh sách và khởi tạo sẵn một số phần tử ta dùng cú pháp nào?

<tên danh sách> = []

<tên danh sách> = []

[]

<tên danh sách> = [0]

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Để khởi tạo danh sách c gồm 100 số 0 ta dùng cú pháp:

c = 0*100

c = 0*[100]

c = [0]*100

c = [0*100]

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Để gọi đến phần tử đầu tiên trong danh sách a ta dùng lệnh:

a.[1]

a[0]

a.0

a[]

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Để lấy ra phần tử ở cuối danh sách a và đồng thời cũng xóa phần tử đó khỏi danh sách ta dùng lệnh:

a.pop()

pop a()

pop()

del a()

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Để khai báo danh sách a và khởi tạo danh sách a có 3 phần tử 10, 20, 30, phương án nào sau đây đúng?

a = (10,20,30)

a = {10,20,30}

a = [10,20,30]

a = 10,20,30

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Để thêm số 5 vào cuối danh sách a, phương án nào sau đây đúng?

a.append(5)

append(5)

a.pop(5)

pop(5)

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?