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
15 questions
LIÊN KẾT

Quiz
•
10th Grade
10 questions
Cấu trúc lớp vỏ electron nguyên tử

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

Quiz
•
10th Grade
8 questions
TIN HỌC LÀ GÌ NHỈ?

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

Quiz
•
10th Grade
10 questions
High parameter

Quiz
•
1st - 10th Grade
10 questions
Test Online 2 - Đồng vị - Nguyên tử khối

Quiz
•
10th Grade
10 questions
BÀI 2: NGUYÊN TỬ

Quiz
•
7th Grade - University
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 Science
17 questions
Lab Safety

Interactive video
•
10th Grade
10 questions
Lab Safety Essentials

Interactive video
•
6th - 10th Grade
10 questions
Exploring Types of Matter: Elements, Compounds, and Mixtures

Interactive video
•
6th - 10th Grade
10 questions
Exploring the Scientific Method

Interactive video
•
6th - 10th Grade
12 questions
Lab Safety

Quiz
•
6th - 12th Grade
13 questions
Amoeba Sisters: Biomolecules

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

Interactive video
•
6th - 10th Grade
20 questions
Reading Graphs in Science

Quiz
•
9th - 12th Grade