ôn tập IF... FOR... WHILE

Quiz
•
Instructional Technology
•
11th Grade
•
Hard
VÕ VĂN DIỆN
Used 6+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
luyên tập bài 23

Quiz
•
11th Grade
10 questions
Công nghệ 11_Bài 4 Mặt cắt và hình cắt

Quiz
•
11th Grade
11 questions
V1. cuộc đua kỳ thú

Quiz
•
1st - 12th Grade
10 questions
Bài kiểm tra 15 phút

Quiz
•
7th Grade - University
10 questions
Apple for my apple apple

Quiz
•
KG - Professional Dev...
15 questions
GAMBAR DETAIL

Quiz
•
11th Grade
10 questions
Kiểm Tra Công Nghệ 6

Quiz
•
6th Grade - University
10 questions
DL Refresher

Quiz
•
KG - Professional Dev...
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