ôn tập IF... FOR... WHILE
Quiz
•
Instructional Technology
•
11th Grade
•
Practice Problem
•
Hard
VÕ VĂN DIỆN
Used 6+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết kết quả đoạn chương trình sau:
for i in range(2,7)
print(i, end=’ ‘)
23456
2 3 4 5 6
2 3 4 5 6 7
234567
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết kết quả đoạn chương trình sau:
i = 0
x = 0
while i < 5:
if i % 2 == 0:
x += 1
i += 1
print(x)
3
4
5
0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả nào là output của đoạn code dưới đây?
x = True
y = False
z = False
if not x or y:
print (1)
elif not x or not y and z:
print (2)
elif not x or y or not y and x:
print (3)
else:
print (4)
2
3
4
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sau khi thực hiện đoạn chương trình sau:
x = 20;
if x>12 :
x = 15
x = x+ 2
else: x = x/2
15
12
17
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xác định câu lệnh đúng trong các câu lệnh sau?
if a>=b then max= a; else max=b;
if a>=b: max= a else max= b;
if a>b : max= a else: max=b
if a>=b : max=a else max= b
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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?
for i in range(0,11,1): print(i,end='')
for i in range(11): print(i,end='')
for i in range(0,11): print(i,end='')
for i in range(11,1): print(i,end='')
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh sau cho kết quả là gì?
for i in range(10):
if i%2==1: print(i,end='')
02468
13579
246810
1357
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Sway Q&A
Quiz
•
9th - 12th Grade
10 questions
KIEM TRA 10P CNTT 10
Quiz
•
9th - 12th Grade
10 questions
KHÁI QUÁT VỀ BẢN VẼ KỸ THUẬT
Quiz
•
8th - 12th Grade
10 questions
Sistem Komputer
Quiz
•
1st - 12th Grade
15 questions
Основы HTML
Quiz
•
11th Grade
15 questions
R093 Revision 1
Quiz
•
10th Grade - University
15 questions
IPERCONNESSI
Quiz
•
KG - Professional Dev...
10 questions
Mobil keren
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Instructional Technology
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Thanksgiving Trivia
Quiz
•
11th Grade
34 questions
Geometric Terms
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
16 questions
Proportional Relationships And Constant Of Proportionality
Quiz
•
7th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
