Search Header Logo

Ôn tập ktr giữa kì II

Authored by Thiên Dung

Computers

11th Grade

Used 1+ times

Ôn tập ktr giữa kì II
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Quan sát các lệnh sau, lệnh nào đang khi khởi tại dữ liệu danh sách Ds

Ds==[]

Ds={1,2,3,4}

Ds=[1,3,5]

[1,2,3]=Ds

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Để khởi tạo danh sách gồm 50 số 0, phương án nào sau đây đúng

A=0...50

A=[0...50]

A=[0]*50

A=[0*50]

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Phát biểu nào sai về kiểu dữ liệu danh sách

Kiểu dữ liệu danh sách là kiểu dữ liệu gồm một dãy các giá trị

Các phần tử trong kiểu dữ liệu danh sách phải cùng kiểu dữ liệu

Chỉ số của các phần tử trong kiểu dữ liệu danh sách bắt đầu từ 0

Kiểu dữ liệu danh sách cho phép thay đổi từng giá trị của từng phần tử bằng lệnh gán

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Lệnh nào để chèn x vào vị trí k của danh sách A

k.insert(A,x)

A.insert(x,k)

A.insert(k,x)

x.insert(k,A)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Để sắp xếp danh sách a, phương án nào sau đây đúng

reverse (a)

a.reverse()

a.sort()

sort(a)

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Cho danh sách a=[9,7,3,8,1] kết quả của lệnh sau: a.insert(2,6)=?

a=[9,6,7,3,8,1]

a=[9,7,6,3,8,1]

a=[9,7,3,4,1,6]

a=[5,7,3,8,1,2]

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Cho danh sách A=[7,3,8,1,9] kết quả của lệnh sau: a.remove(3)=?

A=[7,8,1,9]

A=[7,3,1,9]

A=[7,3,8,9]

A=[7,3,8,1,9]

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?