
Câu hỏi về cấu trúc lặp trong Python
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Medium
nguyen cuc
Used 7+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là sai?
Dùng câu lệnh while ta cũng thể hiện được cấu trúc lặp với số lần biết trước.
Dùng câu lệnh for ta cũng thể hiện được cấu trúc lặp với số lần không biết trước.
Trong Python có 2 dạng lặp: Lặp với số lần biết trước và lặp với số lần không biết trước.
Câu lệnh thể hiện lặp với số lần không biết trước phải sử dụng một biểu thức logic làm điều kiện lặp.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho đoạn chương trình sau: i=1 s=0 while <điều kiện>: s=s+i i=i+1 Đoạn chương trình trên tính tổng s=1+2+3+...+10, <điều kiện> là:
i<=10
i==10
i>=10
i>10
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho đoạn lệnh sau: for i in range(1,5): print(i) Trên màn hình i có các giá trị là:
0 1 2 3 4 5
1 2 3 4 5
0 1 2 3 4
1 2 3 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi có một (hay nhiều) thao tác cần được thực hiện lặp lại một số lần liên tiếp trong quá trình thực hiện thuật toán thì cần dùng
Cấu trúc vòng
Cấu trúc so sánh
Cấu trúc lặp
Cấu trúc rẽ nhánh
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho đoạn chương trình sau: i=0 while i<=5: s=s+i i=i+1 Trong đoạn chương trình trên vòng lặp được thực hiện bao nhiêu lần?
1
2
5
6
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Trong Python có mấy dạng lặp:
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Từ khóa thể hiện số lần lặp được biết trước là:
for
while
if
in
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
16 questions
Sharopova G
Quiz
•
10th Grade
16 questions
TES DIAGNOSTIK X
Quiz
•
10th Grade
20 questions
PTS KELAS 7
Quiz
•
9th - 12th Grade
15 questions
Test wiedzy: Tablice jednowymiarowe w C++
Quiz
•
10th Grade - University
20 questions
ASESMEN DIAGNOSTIK INFORMATIKA KELAS 8
Quiz
•
8th Grade - University
22 questions
ÔN TẬP CRV1
Quiz
•
6th Grade - University
15 questions
Fungsi Statistik, if dan Lookup Ms. Excel
Quiz
•
10th Grade
18 questions
Побитовые операторы в Python
Quiz
•
9th Grade - University
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 Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
