ÔN TẬP CÂU LỆNH LẶP FOR VÀ WHILE
Quiz
•
Science
•
10th Grade
•
Practice Problem
•
Hard
Tài văn
Used 13+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Biến chạy trong vòng lặp for i in range(<giá trị cuối>) tăng lên mấy đơn vị sau mỗi lần lặp?
1
2
0
Tất cả đều sai.
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Cho các câu lệnh sau, hãy chỉ ra câu lệnh đúng:
x = 0
for i in range(10): x = x + 1
x = 0
for i in range(10): x:= x + 1
x = 0
for i in range(10) x = x + 1
x:= 0
for i in range(10): x = x + 1
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Trong Python, câu lệnh nào dưới đây được viết đúng?
for i in range(10): prin(“A”).
for i in range(10): print(“A”).
for i in range(10): print(A).
for i in range(10) print(“A”).
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Trong câu lệnh lặp:
j=0
for j in range(10):
j = j + 2
print(j)
Khi kết thúc câu lệnh trên, câu lệnh print(j) được thực hiện bao nhiêu lần?
10 lần.
1 lần.
5 lần.
Không thực hiện.
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Trong Python, đâu là cú pháp của câu lệnh lặp "for" ?
for i in range(10):
for i = 1 to 10:
loop i from 1 to 10:
foreach i in range(10):
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Hàm range() trong câu lệnh lặp "for" được sử dụng để làm gì?
Tạo một chuỗi số nguyên
Tạo một chuỗi ký tự
Kiểm tra điều kiện
Tạo điều kiện
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Trong lập trình, điều gì là quan trọng khi sử dụng câu lệnh lặp "for"?
Thứ tự của các lệnh
Số lần lặp
Điều kiện kết thúc
Tất cả đều đúng
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
23 questions
All About SARS-CoV-2
Quiz
•
1st Grade - Professio...
20 questions
ON KHOA HOC
Quiz
•
10th Grade
20 questions
Chủ đề F: Cấu trúc lặp
Quiz
•
9th - 12th Grade
16 questions
Lịch sử triết học Hy Lạp
Quiz
•
1st - 10th Grade
19 questions
KTGK 1 (câu 1-câu 19)
Quiz
•
9th - 12th Grade
17 questions
Quiz on Weather Changes
Quiz
•
1st Grade - University
20 questions
Quiz về Quang Hợp
Quiz
•
7th Grade - University
21 questions
KHTN 9 - Trắc nghiệm Đ/S
Quiz
•
9th - 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 Science
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
10 questions
Exploring Light and Waves Concepts
Interactive video
•
6th - 10th Grade
12 questions
Endothermic and Exothermic Reactions
Quiz
•
7th - 10th Grade
20 questions
Balanced and unbalanced forces
Quiz
•
10th Grade
10 questions
Exploring Thermal Energy and Temperature Concepts
Interactive video
•
6th - 10th Grade
10 questions
Exploring Kinetic and Potential Energy Concepts
Interactive video
•
6th - 10th Grade
32 questions
Explore Mixtures and Solutions
Quiz
•
9th - 12th Grade
