KT 15P _ TIN 10 -HK2

KT 15P _ TIN 10 -HK2

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

BASA SUNDA

BASA SUNDA

12th Grade

15 Qs

IR test

IR test

11th Grade - Professional Development

19 Qs

Gdktpl - ck1 - 11 - B8

Gdktpl - ck1 - 11 - B8

11th Grade

20 Qs

UH 3 Ketimpangan Sosial

UH 3 Ketimpangan Sosial

12th Grade

20 Qs

Wawasan Kebangsaan

Wawasan Kebangsaan

1st Grade - Professional Development

15 Qs

SINH HOẠT LỚP TUẦN 14

SINH HOẠT LỚP TUẦN 14

9th - 12th Grade

20 Qs

LÀM TRÒN SỐ

LÀM TRÒN SỐ

10th Grade

18 Qs

Pancasila 1

Pancasila 1

10th Grade

20 Qs

KT 15P _ TIN 10 -HK2

KT 15P _ TIN 10 -HK2

Assessment

Quiz

Education

9th - 12th Grade

Practice Problem

Hard

Created by

Doan Hoa

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Biến chạy i trong vòng lặp

for i in range(n)

tăng lên mấy đơn vị sau mỗi lần lặp?

1

2

tuỳ theo giá trị n

không tăng

2.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Câu lệnh for sau đây thực hiện bao nhiêu lần?

>>>for i in range(10):

x = x + 1

9

10

1

x lần

Answer explanation

range (n): thực hiện n lần (0-> n-1)

vậy nên:

range(10): thực hiện 10 lần (0-9)

3.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Trong câu lệnh lặp:

>>> k=0

>>> for k in range(10):

k = k + 2

>>> print(k)

Khi kết thúc câu lệnh trên, câu lệnh print(k) được thực hiện bao nhiêu lần?

1

10

9

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Trong câu lệnh lặp:

>>> k=0

>>> for k in range(10):

k = k + 2

print(k)

Khi kết thúc câu lệnh trên, câu lệnh print(k) được thực hiện bao nhiêu lần?

1

10

9

5

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Cho đoạn chương trình:

>>> k = 0

>>> for k in range(2,5):

k = k + i

>>> print(k)

Vòng lặp for thực hiện bao nhiêu lần?

5

4

3

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Cho biết kết quả khi chạy đoạn chương trình sau:

>>> s = 0

>>> for i in range(3):

s = s+i

>>>print(s)

0

3

6

đáp án khác

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Cho biết kết quả khi chạy đoạn chương trình sau:

>>> s = 0

>>> for i in range(3):

s = s+ 2 *i

>>>print(s)

6

12

2

4

Create a free account and access millions of resources

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?