Ôn tập python2

Ôn tập python2

10th Grade

31 Qs

quiz-placeholder

Similar activities

Electrónica Digital 3

Electrónica Digital 3

1st - 10th Grade

33 Qs

INSTALACIONES DE CLIMATIZACIÓN

INSTALACIONES DE CLIMATIZACIÓN

10th Grade

26 Qs

FUNDAMENTOS DE INGENIERÍA DE UN ROBOT 1º ESO

FUNDAMENTOS DE INGENIERÍA DE UN ROBOT 1º ESO

7th Grade - University

30 Qs

Puertas Lógicas 1

Puertas Lógicas 1

10th Grade

27 Qs

Resursi i proizvodnja

Resursi i proizvodnja

10th Grade - University

26 Qs

Quiz Informatika Pak TW

Quiz Informatika Pak TW

9th - 12th Grade

26 Qs

Photoshop Basics

Photoshop Basics

10th - 12th Grade

29 Qs

Sets and Real Numbers

Sets and Real Numbers

9th 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

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

Already have an account?