Ôn tập python2

Ôn tập python2

10th Grade

31 Qs

quiz-placeholder

Similar activities

Arduino

Arduino

10th Grade - University

30 Qs

ULANGAN HARIAN MULOK

ULANGAN HARIAN MULOK

9th - 12th Grade

30 Qs

ROBOT MRT5

ROBOT MRT5

8th - 11th Grade

27 Qs

Imagen Digital y Modelos de Color

Imagen Digital y Modelos de Color

9th - 12th Grade

29 Qs

CN 11 _ ÔN TẬP CUỐI HK1

CN 11 _ ÔN TẬP CUỐI HK1

9th - 12th Grade

30 Qs

Haircutting vocabulary # 2

Haircutting vocabulary # 2

10th - 12th Grade

27 Qs

Introducing Windows 11

Introducing Windows 11

KG - Professional Development

26 Qs

SMG

SMG

9th - 12th Grade

30 Qs

Ôn tập python2

Ôn tập python2

Assessment

Quiz

Instructional Technology

10th Grade

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?