
Câu hỏi về Mảng trong Python
Quiz
•
Computers
•
11th Grade
•
Hard
Hoàng Nguyễn
Used 2+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
100 questions
1 БӨЛІМ
Quiz
•
11th Grade
100 questions
Мейірбике ісі бойынша тест
Quiz
•
11th Grade
100 questions
Engineering and Technology FINAL
Quiz
•
11th Grade
100 questions
PreTest Informatika 1
Quiz
•
9th - 12th Grade
108 questions
Ôn Tập Tin học Cuối Kỳ 2
Quiz
•
11th Grade
100 questions
Adobe Photoshop CS5 Basics Quiz
Quiz
•
11th Grade
103 questions
Kiểm Tra Cuối Kỳ Môn Tin Học 11
Quiz
•
11th Grade
100 questions
modul 2023
Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
21 questions
Halloween & Math
Quiz
•
8th - 12th Grade
13 questions
Halloween Movie Trivia
Quiz
•
9th - 12th Grade
7 questions
Halloween - Myths & Legends
Interactive video
•
10th - 12th Grade
