List | Set | String - Nâng cao (1)

List | Set | String - Nâng cao (1)

6th - 8th Grade

23 Qs

quiz-placeholder

Similar activities

PTS INFORMATIKA

PTS INFORMATIKA

7th Grade

20 Qs

Quiz Bab 2 Teknologi Informasi dan Komunikasi

Quiz Bab 2 Teknologi Informasi dan Komunikasi

8th Grade

20 Qs

6.Sınıflar 2.Dönem 1.Yazılı Hazırlık

6.Sınıflar 2.Dönem 1.Yazılı Hazırlık

6th Grade

21 Qs

Asesmen Harian Informatika Kelas 7

Asesmen Harian Informatika Kelas 7

7th Grade - University

18 Qs

Internet and App script

Internet and App script

5th Grade - University

22 Qs

Soal pengulangan berfikri komputasioan

Soal pengulangan berfikri komputasioan

7th Grade - University

20 Qs

Diagnostic Test. Computing

Diagnostic Test. Computing

8th Grade

20 Qs

KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar

KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar

7th Grade - University

20 Qs

List | Set | String - Nâng cao (1)

List | Set | String - Nâng cao (1)

Assessment

Quiz

Information Technology (IT)

6th - 8th Grade

Medium

Created by

Khang Nghĩa

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

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

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn code sau là gì?

my_list = [1, 2, 3]

my_list.append([4, 5])

print(my_list)

[1, 2, 3, 4, 5]

[1, 2, 3, [4, 5]]

[1, 2, 3, 4, [5]]

Lỗi

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách nào để truy xuất phần tử cuối cùng của list `lst = [10, 20, 30, 40]?`

lst[4]

lst[-1]

lst[len(lst)]

lst.last()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào xóa phần tử đầu tiên của list `a = [5, 10, 15, 20]`?

a.remove(5)

del a[0]

a.pop(0)

cả b và c đề đúng

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn code sau là gì?

lst = [1, 2, 3, 4]

lst.insert(2, 100)

print(lst)

[1, 2, 100, 3, 4]

[1, 100, 2, 3, 4]

[1, 2, 3, 4, 100]

[100, 1, 2, 3, 4]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào dùng để tạo một bản sao của list a = [1, 2, 3]?

b = a

b = a.copy()

b = list(a)

a, b và c đều đúng

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn code sau là gì?

s = "Hello World"

print(s[::-1])

"dlroW olleH"

"Hello World"

"H"

"d"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách nào để nối chuỗi s1 = "Hello" và s2 = "World" thành "Hello World"?

s1 + s2

s1.join(s2)

s1 + " " + s2

s1.concat(s2)

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?