Câu hỏi về Mảng trong Python

Câu hỏi về Mảng trong Python

11th Grade

105 Qs

quiz-placeholder

Similar activities

Engineering and Technology FINAL

Engineering and Technology FINAL

11th Grade

100 Qs

PreTest Informatika 1

PreTest Informatika 1

9th - 12th Grade

100 Qs

GDI - Shutter Stock - 2/23/24

GDI - Shutter Stock - 2/23/24

9th - 12th Grade

110 Qs

Python Certification Preparation

Python Certification Preparation

11th - 12th Grade

100 Qs

Google Basics, Classroom, Drive, Docs & Sheets Review

Google Basics, Classroom, Drive, Docs & Sheets Review

9th - 12th Grade

100 Qs

Ôn tập tin học 11 HK 1

Ôn tập tin học 11 HK 1

11th Grade

100 Qs

javascript

javascript

KG - University

100 Qs

QUIZZ AIJ XII - Latihan PTS Semester Ganjil 2020

QUIZZ AIJ XII - Latihan PTS Semester Ganjil 2020

KG - Professional Development

100 Qs

Câu hỏi về Mảng trong Python

Câu hỏi về Mảng trong Python

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Hoàng Nguyễn

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

105 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mảng 1 chiều trong Python được khai báo như thế nào?

array = [1, 2, 3]

array = (1, 2, 3)

array = {1, 2, 3}

array = set(1, 2, 3)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây để in phần tử đầu tiên của mảng arr = [10, 20, 30, 40]?

print(arr[1])

print(arr[0])

print(arr[2])

print(arr[4])

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây sẽ thay đổi phần tử thứ 2 của mảng arr = [10, 20, 30, 40] thành 50?

arr[2] = 50

arr(2) = 50

arr[1] = 50

arr[3] = 50

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để lấy độ dài của mảng trong Python, lệnh nào sau đây là đúng?

len(arr)

size(arr)

length(arr)

arr.size()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mảng sau có bao nhiêu phần tử: arr = [1, 2, 3, 4, 5]?

5

6

4

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây dùng để thêm phần tử 10 vào cuối mảng arr = [1, 2, 3]?

arr.add(10)

arr.append(10)

arr.insert(10)

arr.append(10, 20)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Nếu mảng arr = [1, 2, 3], kết quả của lệnh arr[1:3] là gì?

[2, 3]

[1, 2]

[1, 3]

[3]

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?