
Câu hỏi về cấu trúc lặp trong Python
Authored by nguyen cuc
Information Technology (IT)
10th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
19 questions
Latihan Quiz
Quiz
•
10th Grade
20 questions
Тест по основам Python(intro1)
Quiz
•
9th - 12th Grade
15 questions
Understanding Loops in C Programming
Quiz
•
1st Grade - University
18 questions
Autômato - Identificação de Funcionamento - Programação - 9ano
Quiz
•
9th Grade - University
15 questions
Quiz về Kiểu Dữ Liệu List và Set (1)
Quiz
•
7th Grade - University
20 questions
ASESMEN DIAGNOSTIK INFORMATIKA KELAS 7
Quiz
•
7th Grade - University
20 questions
soal ulangan informatika 1
Quiz
•
10th Grade
20 questions
Nivelamento 7° e 8° ano
Quiz
•
10th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
12 questions
Equation of a Circle
Lesson
•
10th Grade
18 questions
Mendelian Genetics
Quiz
•
10th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade