Cách khai báo biến mảng sau đây, cách nào sai?

10a2-ktra miệng

Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
Thu Nguyễn
Used 2+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
ls = [1, 2, 3]
ls = [x for x in range(3)]
ls = [int(x) for x in input().split()]
ls = list(3)
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Cho khai báo mảng sau:
A = list(“3456789”)
Để in giá trị phần tử thứ 2 của mảng một chiều A ra màn hình ta viết:
print(A[2])
print(A[1])
print(A[3])
print(A[0])
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Giả sử có một list: i = [2, 3, 4]. Nếu muốn in list này theo thứ tự ngược lại ta nên sử dụng phương pháp nào sau đây?
print(list(reversed(i)))
print(list(reverse(i)))
print(reversed(i))
print(reversed(i))
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Để bổ sung phần tử x vào cuối danh sách a ta sử dụng hàm?
a.append(x)
x.append(a)
append(x)
append(a,x)
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Xóa phần tử đứng ở vị trí i trong danh sách a và đưa ra phần tử này ta dùng hàm?
a.pop(i)
a.delete(i)
delete(a,i)
i.pop(a)
Similar Resources on Quizizz
10 questions
Mastering Python Loops and Conditions

Quiz
•
10th Grade
7 questions
Lekcja 1.3

Quiz
•
4th Grade - University
10 questions
“Elektron pochtada ishlashni boshlash” (5-sinf))

Quiz
•
5th Grade - University
10 questions
Kiểm Tra Bài Cũ

Quiz
•
10th Grade
7 questions
Тест по алгоритмам сортировки

Quiz
•
10th Grade
10 questions
Basics of Network and Internet Safety

Quiz
•
10th Grade - University
10 questions
Posttest Aplikasi Pengolah Kata

Quiz
•
9th - 12th Grade
10 questions
bài 22 list

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Information Technology (IT)
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade