Ôn tập python2

Ôn tập python2

10th Grade

31 Qs

quiz-placeholder

Similar activities

Kuis Prakarya Awetan Hewani kelas X MIPA

Kuis Prakarya Awetan Hewani kelas X MIPA

10th Grade

35 Qs

Rakit komputer

Rakit komputer

10th - 12th Grade

29 Qs

HW_Un1 Retake

HW_Un1 Retake

9th - 12th Grade

26 Qs

Information Systems and Resources

Information Systems and Resources

10th - 12th Grade

26 Qs

EXAMEN Tema 2: Materiales

EXAMEN Tema 2: Materiales

10th Grade

27 Qs

CN10 _ HK1 _ OT _ KT giữa HK1_30c

CN10 _ HK1 _ OT _ KT giữa HK1_30c

10th Grade

30 Qs

Google

Google

KG - Professional Development

28 Qs

Периферийные устройства

Периферийные устройства

10th Grade - University

26 Qs

Ôn tập python2

Ôn tập python2

Assessment

Quiz

Instructional Technology

10th Grade

Practice Problem

Medium

Created by

Huynh Ngan

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

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

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Cho danh sách: A = [5, 2, 3, 8]

Để in phần tử có giá trị 8, câu lệnh nào sau đây đúng?

print(a[0])

print(a[-1])

print(a[4])

print(a[-3])

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Cho danh sách: A1 = [1,2,3,4]

A2 = [5,6,7,8]

hãy cho biết kết quả của câu lệnh sau: print(A1 + A2)

[1,2,3,4,5,6,7,8]

[5,6,7,8,1,2,3,4]

[1,2,3,4,[5,6,7,8]]

Báo lỗi

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Cho danh sách A= [1,2,3,4,5]

A.extend([7,8])

Hãy cho biết kết quả của câu lệnh print(A)

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

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

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

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

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Cho danh sách A= [1,2,3,4,5]

A.append([7,8])

Hãy cho biết kết quả của câu lệnh print(A)

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

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

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

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

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Hãy cho biết kết quả thực hiện của đoạn chương trình trên:

x= 5

A= [1, 2, 3, 4]

x= 5

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

x= 1

A= [ 2, 3, 4, 5]

x = 0

A= [1, 2, 3, 4, ]

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Hãy cho biết kết quả thực hiện của đoạn chương trình sau:

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

B= A[1:3]

print(B)

[2, 3]

[2,3,4]

[1,2]

Báo lỗi

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Hãy cho biết kết quả thực hiện của đoạn chương trình sau:

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

B= A[:3]

print(B)

[1, 2, 3]

[1,2,3,4]

[1]

Báo lỗi

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?