
Một số lệnh làm việc với danh sách

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Cao 2.
Used 8+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Toán tử nào dùng để kiểm tra một giá trị có nằm trong danh sách không?
in
int
range
append
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là gì?
A = [1, 2, 3, 4, 5, 6, 5]
for k in A:
print(k, end = " ")
1 2 3 4 5 6
1 2 3 4 5 6 5
1 2 3 4 5
2 3 4 5 6 5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ngoài việc kết hợp lệnh for và range để duyệt phần tử trong danh sách, có thể sử dụng câu lệnh nào khác?
int
while
in range
in
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = [‘a’, ‘b’, ‘c’, ‘d’, 2, 3, 4]. Các biểu thức sau trả về giá trị đúng hay sai?
6 in A
‘a’ in A
True, False
True, False
False, True
False, False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = [5, 6, 7, 8, 9, 10, 11, 12]. Biểu thức sau trả về giá trị đúng hay sai?
(3 + 4 – 5 + 18 // 4) in A
True
False
Không xác định
Câu lệnh bị lỗi
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây xoá toàn bộ danh sách?
clear()
exit()
remove()
del()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là sai?
Sau khi thực hiện lệnh clear(), danh sách gốc trở thành rỗng
Lệnh remove () có chức năng xoá một phần tử có giá trị cho trước
Lệnh remove() xoá tất cả các phần tử có giá trị cho trước trong list
Clear() có tác dụng xoá toàn bộ các danh sách
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Câu hỏi trắc nghiệm Tin học 10 - Bài 23

Quiz
•
10th Grade
15 questions
tinGk

Quiz
•
10th Grade
10 questions
Bài 22-Kiểu dữ liệu danh sách

Quiz
•
10th Grade
10 questions
Khởi động

Quiz
•
9th - 12th Grade
15 questions
Ôn tập HK2 Python 10

Quiz
•
10th Grade
10 questions
Bài 23: Một số lệnh làm việc với dữ liệu danh sách

Quiz
•
10th Grade - University
15 questions
Câu hỏi về lập trình Python

Quiz
•
10th Grade - University
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Introduction to Desktop Computer Systems

Quiz
•
9th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Computer Hardware and Input/Output Devices

Interactive video
•
6th - 10th Grade