Em hãy thực hiện ghép các cú pháp với ý nghĩa các lệnh.
Ôn tập - Bài 23 Một số lệnh làm việc với kiểu dữ liệu danh sách

Quiz
•
Instructional Technology
•
9th - 12th Grade
•
Medium
IT hl
Used 4+ times
FREE Resource
7 questions
Show all answers
1.
MATCH QUESTION
1 min • 1 pt
Xoá phần tử x từ danh sách.
<tên danh sách>.insert(k,x)
Chèn phần tử x vào vị trí k của danh sách
<tên danh sách>.clear()
Xoá toàn bộ dữ liệu trong danh sách
<tên danh sách>.remove(x)
Kiểm tra xem giá trị có trong danh sách không
<giá trị> in <danh sách>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để thực hiện chèn phần tử x vào vị trí k của danh sách A ta sử dụng lệnh nào sau đây?
A.append(x)
A.insert(x,k)
A.insert(k,x)
A.remove(x)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để kiểm tra xem giá trị có trong danh sách hay không ta sử dụng lệnh nào sau đây?
<giá trị> in <danh sách>
<danh sách> in <giá trị>
<giá trị> on <danh sách>
<danh sách> on <giá trị>
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dự đoán kết quả đoạn chương trình sau:
>>> A = [10,12,13,2,3,4,9]
>>> 10 in A
False
báo lỗi
True
“Dãy A có số 10”
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dự đoán kết quả đoạn chương trình sau:
>>> A = [10,12,13,2,3,4,9]
>>> A.insert(3,15)
>>>print(A)
[10, 12, 13, 15, 2, 3, 4, 9]
[15, 10, 12, 13, 2, 3, 4, 9]
[10, 12, 13, 2, 3, 4, 9,15]
[10, 12, 15, 13, 2, 3, 4, 9]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dự đoán kết quả đoạn chương trình sau:
>>> A = [10,12,13,2,3,4,9]
>>> A.clear()
>>>print(A)
[]
báo lỗi
A = [10,12,13,2,3,4,9]
[10,12,13,2,3,4,9]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dự đoán kết quả đoạn chương trình sau:
>>> A = [10,12,13,2,3,4,9]
>>> A.remove(13)
>>>print(A)
[10, 12, 2, 3, 4, 9]
[10, 13, 2, 3, 4, 9]
[10, 12, 13, 2, 3, 4]
[10, 13, 2, 3, 9, 4]
Similar Resources on Quizizz
10 questions
Aprendizajes previos

Quiz
•
10th Grade
10 questions
Year 9 IT - HTML and CSS End of Unit Mini Test

Quiz
•
9th Grade
7 questions
Metalimbajul BNF

Quiz
•
10th Grade
10 questions
Quiz Python - Preuniversitario

Quiz
•
12th Grade
10 questions
Introduccion a HTML,CSS y PHP

Quiz
•
10th Grade
10 questions
CÂU LỆNH FOR - DO

Quiz
•
12th Grade
10 questions
INTERVALOS

Quiz
•
10th - 11th Grade
11 questions
Examen JavaScript

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 Instructional Technology
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th 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
26 questions
June 19th

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

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade