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
Kiểm tra

Quiz
•
10th Grade
9 questions
Увлекательный мир Python

Quiz
•
6th Grade - University
10 questions
Fundamentos de Programación en Python

Quiz
•
6th Grade - University
10 questions
مراجعة في الجملة التكرارية for

Quiz
•
10th Grade
9 questions
Kiến thức về hàm print() trong Python

Quiz
•
2nd Grade - University
10 questions
Quizzi bài 29 Tin học 10

Quiz
•
10th Grade - University
10 questions
TRẮC NGHIỆM VUI PYTHON

Quiz
•
10th Grade
10 questions
Ôn tập danh sách_xâu

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

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade