Câu lệnh lặp while

Câu lệnh lặp while

Professional Development

9 Qs

quiz-placeholder

Similar activities

Yugioh dragon quiz (hard)

Yugioh dragon quiz (hard)

KG - Professional Development

10 Qs

How well do you know slime?

How well do you know slime?

2nd Grade - Professional Development

13 Qs

Mister Rogers Trivia Challenge

Mister Rogers Trivia Challenge

Professional Development

12 Qs

ADOBE PHOTOSHOP

ADOBE PHOTOSHOP

Professional Development

10 Qs

Quiz Day  - conocimientos Generales de la operación

Quiz Day - conocimientos Generales de la operación

Professional Development

10 Qs

Что я знаю про монтаж

Что я знаю про монтаж

Professional Development

11 Qs

Quizz Camping ville de Saumur et 49

Quizz Camping ville de Saumur et 49

Professional Development

14 Qs

Conflict of Interest Policy at BYU

Conflict of Interest Policy at BYU

Professional Development

13 Qs

Câu lệnh lặp while

Câu lệnh lặp while

Assessment

Quiz

Arts

Professional Development

Practice Problem

Medium

Created by

Boom TBou

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?