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

Quiz
•
Computers
•
11th Grade
•
Hard
Hoàng Nguyễn
Used 2+ times
FREE Resource
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
Similar Resources on Wayground
101 questions
Массивтер

Quiz
•
11th Grade
110 questions
PLTW CSE Unit 3.1/3.2 Review (Python)

Quiz
•
9th - 12th Grade
110 questions
Ôn tập PowerPoint

Quiz
•
9th - 12th Grade
106 questions
Kiểm thử chương trình

Quiz
•
11th Grade
100 questions
Computer Science Revison

Quiz
•
11th Grade
104 questions
Đề Ôn Tập Tin Học 11

Quiz
•
11th Grade
101 questions
tin cuối kỳ 10

Quiz
•
9th - 12th Grade
101 questions
Ôn tập TH11 CĐ4 Giới thiệu các hệ CSDL

Quiz
•
11th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade