Câu lệnh lặp while
Quiz
•
Arts
•
Professional Development
•
Practice Problem
•
Medium
Boom TBou
Used 2+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Câu 1. Trong các phát biểu sau, phát biểu nào chưa chính xác?
While là lệnh lặp với số lần không biết trước.
For là lệnh lặp với số lần xác định trước.
Khối lệnh lặp while được thực hiện cho đến khi <điều kiện> = False.
Số lần lặp của lệnh lặp for luôn được xác định bởi vùng giá trị của lệnh range().
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Câu 2. Cho đoạn chương trình python sau:
Tong = 0
while Tong < 10:
Tong = Tong + 1
Sau khi đoạn chương trình trên được thực hiện, giá trị của tổng bằng bao nhiêu:
9
10
11
12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết kết quả của đoạn chương trình dưới đây:
a = 10
while a < 11: print(a)
Trên màn hình xuất hiện một số 10
Trên màn hình xuất hiện 10 chữ a
Trên màn hình xuất hiện một số 11
Chương trình bị lặp vô tan
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5. Tính tổng S = 1 + 2 + 3 + 4 +… + n + … cho đến khi S>10000. Điều kiện nào sau đây cho vòng lặp while là đúng:
while S >= 10000
while S < 10000
while S <= 10000
While S >10000
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hãy đưa ra kết quả trong đoạn lệnh sau:
x = 1
while (x <= 5):
print(“python”)
x = x + 1
5 từ python
4 từ python
3 từ python
Không có kết quả
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn đáp án đúng nhất:
i = 0; x = 0
while i < 10:
if i%2 == 0:
x += 1
i += 1
print(x)
2
3
4
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp lệnh lặp với số lần chưa biết trước:
while <điều kiện> to <câu lệnh>
while <điều kiện> to <câu lệnh1> do<câu lệnh 2>
while <điều kiện> do: <câu lệnh>
. while <điều kiện>: <câu lệnh>
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
10 questions
Ulangan Harian Materi Tipografi - X DKV 2021
Quiz
•
Professional Development
12 questions
Mister Rogers Trivia Challenge
Quiz
•
Professional Development
10 questions
ADOBE PHOTOSHOP
Quiz
•
Professional Development
10 questions
Quiz Day - conocimientos Generales de la operación
Quiz
•
Professional Development
11 questions
Что я знаю про монтаж
Quiz
•
Professional Development
14 questions
Quizz Camping ville de Saumur et 49
Quiz
•
Professional Development
13 questions
Conflict of Interest Policy at BYU
Quiz
•
Professional Development
9 questions
ESTRTEGIAS VC FEBRERO
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Arts
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
