Kiểu Dữ Liệu Danh Sách

Kiểu Dữ Liệu Danh Sách

10th Grade

62 Qs

quiz-placeholder

Similar activities

Komputer dan Jaringan Dasar

Komputer dan Jaringan Dasar

10th - 12th Grade

62 Qs

Python CH1-3 Review

Python CH1-3 Review

8th Grade - Professional Development

59 Qs

ULANGKAJI SAINS KOMPUTER 2

ULANGKAJI SAINS KOMPUTER 2

10th Grade

60 Qs

MOS POWERPOINT 50Q

MOS POWERPOINT 50Q

9th - 12th Grade

60 Qs

Câu Hỏi Ôn Tập Công Nghệ - Tin học cuối năm Lớp 4

Câu Hỏi Ôn Tập Công Nghệ - Tin học cuối năm Lớp 4

5th Grade - University

67 Qs

KIỂM TRA HỌC KỲ 2 MÔN TIN KHỐI 10 - 45P

KIỂM TRA HỌC KỲ 2 MÔN TIN KHỐI 10 - 45P

10th Grade

60 Qs

Preguntas sobre HTML

Preguntas sobre HTML

10th Grade

59 Qs

Kiểm tra kiến thức Python

Kiểm tra kiến thức Python

10th Grade

65 Qs

Kiểu Dữ Liệu Danh Sách

Kiểu Dữ Liệu Danh Sách

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Levi Ackerman

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

62 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đối tượng dưới đây thuộc kiểu dữ liệu nào? A = [1, 2, '3']

list.

int.

float.

string.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào sau đây dùng để thêm phần tử vào list trong python?

abs().

link().

append().

add().

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của chương trình sau là gì? A = [2, 3, 5, "python", 6] A.append(4) A.append(2) A.append("x") del(A[2]) print(len(A))

5.

6.

7.

8.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hoàn thiện chương trình tính tích các phần tử dương trong danh sách A.

>>> S = (…)

>>> for i in range(len(A)):

(…)

S = S * A[i]

>>> print(S)

1, if A[i] > 0:

0, if A[i] > 0:

1, if A[i] >= 0:

0, if A[i] > 0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Toán tử nào dùng để kiểm tra một giá trị có nằm trong danh sách không?

in.

int.

range.

append.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Giả sử A = ['a', 'b', 'c', 'd', 2, 3, 4]. Các biểu thức sau trả về giá trị đúng hay sai?

6 in A

‘a’ in A

True, False.

True, False.

False, True.

False, False.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây xoá toàn bộ danh sách?

clear().

exit().

remove().

del().

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?