BaiThucHanhKieuDanhSach-Python

Quiz
•
Science
•
10th Grade
•
Medium
Trieu Tham
Used 15+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Để khai báo một danh sách rỗng ta dùng cú pháp sau:
<tên danh sách> ==[]
<tên danh sách> = 0
<tên danh sách> = []
<tên danh sách> = [0]
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Trong python, để khai báo một danh sách và khởi tạo sẵn một số phần tử ta dùng cú pháp nào?
<tên danh sách> = []
<tên danh sách> = []
[]
<tên danh sách> = [0]
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Để khởi tạo danh sách c gồm 100 số 0 ta dùng cú pháp:
c = 0*100
c = 0*[100]
c = [0]*100
c = [0*100]
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Để gọi đến phần tử đầu tiên trong danh sách a ta dùng lệnh:
a.[1]
a[0]
a.0
a[]
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Để lấy ra phần tử ở cuối danh sách a và đồng thời cũng xóa phần tử đó khỏi danh sách ta dùng lệnh:
a.pop()
pop a()
pop()
del a()
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Để khai báo danh sách a và khởi tạo danh sách a có 3 phần tử 10, 20, 30, phương án nào sau đây đúng?
a = (10,20,30)
a = {10,20,30}
a = [10,20,30]
a = 10,20,30
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Để thêm số 5 vào cuối danh sách a, phương án nào sau đây đúng?
a.append(5)
append(5)
a.pop(5)
pop(5)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Physical and Chemical Properties

Quiz
•
9th - 10th Grade
10 questions
KIỂM TRA B15-THỰC HÀNH KIỂU DSACH

Quiz
•
10th Grade
6 questions
Kiểm tra kiểu danh sách

Quiz
•
10th Grade
15 questions
MỞ ĐẦU HOÁ HỌC 10

Quiz
•
10th Grade
6 questions
Bai 6. Giai bai toan tren may tinh

Quiz
•
10th Grade
8 questions
TEST : Tốc độ phản ứng, tốc độ trung bình

Quiz
•
10th Grade
10 questions
Ôn tập bài 9 KHTN 6 . Sự đa dạng của chất

Quiz
•
6th Grade - University
10 questions
Khám Phá Hiệu Suất Năng Lượng

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
10 questions
Exploring the Scientific Method

Interactive video
•
6th - 10th Grade
10 questions
Exploring Chemical and Physical Changes

Interactive video
•
6th - 10th Grade
10 questions
Exploring the Basics of Density

Interactive video
•
6th - 10th Grade
10 questions
Kinetic and Potential Energy Explained

Interactive video
•
6th - 10th Grade
10 questions
The Evolution of Atomic Theory

Interactive video
•
6th - 10th Grade
10 questions
Exploring Biomes and Ecosystems for Kids

Interactive video
•
6th - 10th Grade
10 questions
Exploring Metals, Nonmetals, and Metalloids

Interactive video
•
6th - 10th Grade
10 questions
Exploring Latitude and Longitude Concepts

Interactive video
•
6th - 10th Grade