
TEST LIST PYTHON

Quiz
•
Education
•
11th Grade
•
Hard
huu nhi
Used 5+ times
FREE Resource
15 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
30 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> = [<danh sách phần tử, phân cách bởi dấu phẩy>]
<tên danh sách> = []
[<danh sách phần tử, phân cách bởi dấu phẩy>]
<tên danh sách> = [0]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để khởi tạo danh sách b có 5 phần tử 1, 2, 3, 4, 5 ta dùng cú pháp:
A. b = 1, 2, 3, 4, 5
b = (1, 2, 3, 4, 5)
b = [1..5]
b = [1, 2, 3, 4, 5]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để khởi tạo danh sách c gồm 100 số 0 ta dùng cú pháp:
A.
B.
C.
D.
c = 0*100
c = 0*[100]
c = [0]*100
c = [0*100]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để thêm phần tử vào cuối danh sách ta dùng hàm:
append()
pop()
clear()
remove()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để xóa phần tử thứ 2 trong danh sách a ta dùng lệnh:
del(2)
del a[2]
del a
remove(2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để xóa tất cả các phần tử trong danh sách ta dùng hàm gì?
append()
pop()
clear()
remove()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Soal Asam Basa Kelas XI IPA

Quiz
•
9th - 12th Grade
15 questions
Webpage Designing

Quiz
•
11th Grade
15 questions
Toán lớp 5 : Bài 2: Ôn tập các phép tính với số tự nhiên

Quiz
•
5th Grade - University
10 questions
10 CÂU HỎI BÀI TẬP TN

Quiz
•
9th - 12th Grade
15 questions
giáo dục công dân 5/5/2023

Quiz
•
9th - 12th Grade
20 questions
TIN HỌC 11 - TX2-HK2-2425

Quiz
•
11th Grade
18 questions
Test sulle disequazioni

Quiz
•
10th Grade - University
15 questions
Toán 5. BTVN ôn tập đề cương đại lượng đo lường

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Education
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
16 questions
Metric Conversions

Quiz
•
11th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade