
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
Already have an account?
Similar Resources on Wayground
20 questions
PTS Informatika X Semester 1 2024-2025
Quiz
•
10th Grade
20 questions
Informatique et nouvelles technologies, le saviez-vous ?
Quiz
•
1st Grade - University
15 questions
Karışık Algoritma 9. sınıf
Quiz
•
9th Grade - University
15 questions
CLI Cisco Packet Tracer
Quiz
•
10th Grade
20 questions
TIK KELAS 9
Quiz
•
9th Grade - University
19 questions
Урок_2 Проблеми інформаційної безпеки
Quiz
•
10th Grade
20 questions
Asesmen Aplikasi Perkantoran (TIK)
Quiz
•
10th Grade
22 questions
Ulangan harian bab 1 informatika kelas 10
Quiz
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
10 questions
Exploring the Energy Cycle: Photosynthesis and Cellular Respiration
Interactive video
•
6th - 10th Grade
10 questions
Guess the Christmas Movie by the Scene Challenge
Interactive video
•
6th - 10th Grade
