
tin gk2

Quiz
•
Other
•
9th - 12th Grade
•
Hard
Xuân Kim
FREE Resource
43 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong NNLT Python, cấu trúc câu lệnh lặp nào sau đây đúng:
A. for <biến đếm> in range([giá trị đầu], <giá trị cuối>): <lệnh>
B. for <biến đếm> in ([giá trị đầu], <giá trị cuối>, [bước nhảy]): <lệnh>
C. for <biến đếm> in range(<giá trị đầu>… <giá trị cuối>, [bước nhảy]): <lệnh>
D. for <biến đếm> in range([giá trị đầu], <giá trị cuối>, [bước nhảy]): <lệnh>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2. Trong NNLT Python, câu lệnh nào sau đây đúng khi in ra màn hình các số tự nhiên từ 0..10 trên 1 dòng?
A. for i in range(9): print(i,end='')
B. for i in range(10): print(i,end='')
C. for i in range(11): print(i,end='')
D. for i in range(12): print(i,end='')
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3. Trong NNLT Python, câu lệnh nào sau đây sai khi in ra màn hình các số tự nhiên từ 0..10 trên 1 dòng?
A. for i in range(0,11,1): print(i,end='')
B. for i in range(11): print(i,end='')
C. for i in range(0,11): print(i,end='')
D. for i in range(11,1): print(i,end='')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4. Trong NNLT Python, câu lệnh nào sau đây đúng khi in ra màn hình các số tự nhiên từ 10..0 trên 1 dòng?
A. for i in range(10,0,-1): print(i,end='')
B. for i in range(10,-1): print(i,end='')
C. for i in range(10,-1,-1): print(i,end='')
D. for i in range(10,1,-1): print(i,end='')
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5. Cho đoạn chương trình sau:
s=0
for i in range(5): s=s+i
Sau khi thực hiện, giá trị của s bằng bao nhiêu?
A. 5
B. 10
C. 0
D. 15
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6. Câu lệnh sau cho kết quả là gì?
for i in range(5): print(i,end='')
A. 1234
B. 12345
C. 01234
D. 012345
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7. Câu lệnh sau cho kết quả là gì?
for i in range(10):
if i%2==0: print(i,end='')
A. 02468
B. 13579
C. 2468
D. 246810
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Câu Hỏi Trắc Nghiệm Tin Học Lớp 10

Quiz
•
10th Grade
40 questions
Thi Chúc mừng Sinh nhật Đoàn

Quiz
•
10th Grade
45 questions
ĐỀ CƯƠNG CUỐI NĂM

Quiz
•
10th Grade
40 questions
PAS Aplikasi Pengolah Angka X AKL smtr ganjil

Quiz
•
10th Grade
43 questions
Trắc nghiệm tin 12B4

Quiz
•
12th Grade
43 questions
Basic Principles Practice

Quiz
•
11th Grade - University
42 questions
Công Nghệ 10 cuối kì II

Quiz
•
10th Grade
45 questions
Medical Terminology- Week 22-25

Quiz
•
10th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

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

Interactive video
•
6th - 10th Grade
20 questions
Distribute and Combine Like Terms

Quiz
•
7th - 9th Grade
12 questions
Graphing Inequalities on a Number Line

Quiz
•
9th Grade
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Cell Organelles

Quiz
•
9th Grade
20 questions
Cell Transport

Quiz
•
9th Grade