Trong Python, câu lệnh nào sau đây được viết đúng?

ĐỀ HỌC KÌ II TIN 10 TĐN

Quiz
•
Other
•
10th Grade
•
Medium
Yến Vũ
Used 7+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for i in range(10); print("Trần Đại Nghĩa").
for i in range(10): print("Trần Đại Nghĩa").
for i in range(10): print(Trần Đại Nghĩa).
for i in range(10) print("Trần Đại Nghĩa").
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong NNLT Python, câu lệnh nào sau đây đúng khi in ra màn hình dãy số tự nhiên từ 10 9 8 7 6 5 4 3 2 1 0 trên 1 dòng?
for i in range(10,0,-1): print(i,end=' ').
for i in range(10,-1): print(i,end=' ').
for i in range(10,-1,-1): print(i,end=' ').
for i in range(10,1,-1): print(i,end=' ').
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điều kiện trong câu lệnh while là biểu thức dạng dữ liệu gì?
str.
int.
bool.
float.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình sau: a=6 s=1 while (a>0): s=s+a a=a-1 print(s) Giá trị của s khi thực hiện đoạn chương trình trên bằng bao nhiêu?
15.
25.
62.
22.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho khai báo list sau: A = [23, 34, 5, 6, 7, 8, 9,18] Để in giá trị phần tử cuối cùng của danh sách A ra màn hình ta viết:
print(A[2]).
print(A[7]).
print(A[3]).
print(A[0]).
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để gọi đến phần tử đầu tiên trong danh sách a ta dùng lệnh gì?
a.[1].
a[0].
a.0.
a[].
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho A=[11,2,33,3,40,70,100]. Cho biết len(A)=?
9
7
10
6
Create a free account and access millions of resources
Similar Resources on Quizizz
35 questions
Ôn Tập TIN HỌC 10

Quiz
•
10th Grade
40 questions
Đề cương ôn tập giữa kì 2 - Lớp 10

Quiz
•
10th Grade
35 questions
TIN HK2

Quiz
•
10th Grade
40 questions
ÔN TẬP CUỐI HỌC KÌ 2- SỬ 10

Quiz
•
9th - 12th Grade
35 questions
ÔN TẬP TRẮC NGHIỆM KTGK1-TIN9

Quiz
•
9th - 12th Grade
40 questions
Kiểm tra kiến thức Micro:bit

Quiz
•
10th Grade
43 questions
tin gk2

Quiz
•
9th - 12th Grade
45 questions
Sinh 9

Quiz
•
9th - 12th 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 Other
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th 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
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade