Cấu trúc lặp

Cấu trúc lặp

10th Grade

10 Qs

quiz-placeholder

Similar activities

limbajul pascal

limbajul pascal

10th Grade

12 Qs

J808 LO1 and LO2 planning project keywords / terms

J808 LO1 and LO2 planning project keywords / terms

9th - 11th Grade

15 Qs

حاسب 2

حاسب 2

10th Grade

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

analisis data dan visualisasi data

analisis data dan visualisasi data

10th Grade

10 Qs

Quiz 1.2 Operating system

Quiz 1.2 Operating system

10th Grade

10 Qs

Access

Access

1st - 10th Grade

10 Qs

C++ dasar

C++ dasar

10th - 12th Grade

9 Qs

Cấu trúc lặp

Cấu trúc lặp

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

bichhuyen luu

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 1. Trong NNLT Python, cấu trúc câu lệnh lặp nào sau đây đúng:

for <biến đếm> in range([giá trị đầu], <giá trị cuối>): <lệnh>

for <biến đếm> in ([giá trị đầu], <giá trị cuối>, [bước nhảy]): <lệnh>

for <biến đếm> in range([giá trị đầu], <giá trị cuối>, [bước nhảy])

<lệnh>

for <biến đếm> in range([giá trị đầu] to <giá trị cuối>, [bước nhảy]):

<lệnh>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cấu trúc lặp với số lần chưa biết trước có dạng:

while <điều kiện>:

<câu lệnh >

while <điều kiện>

<câu lệnh >

while <điều kiện>:

while <điều kiện> do

<câu lệnh >

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho đoạn lệnh sau:

for i in range(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

Cho đoạn lệnh sau:

for i in range(1,10,2):

print(i)

Trên màn hình i có các giá trị là:

1,3,5,7,9

1,2,3,4,5,6,7,8,9,10

1,3,5,7,9,10

1,3,5,7,10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong NNLT Python, câu lệnh nào sau đây đúng khi in ra màn hình các số tự nhiên từ 0..10 trên 1 dòng?

for i in range(9): print(i,end='')

for i in range(11): print(i,end=' ')

A. for i in range(10): print(i,end=' ')

for i in range(12): print(i,end=' ')

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Vòng lặp While kết thúc khi nào?

Khi một điều kiện cho trước được thỏa mãn

Khi đủ số vòng lặp

Khi tìm được Output

Tất cả các phương án

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tính tống S = 1 + 2 + 3 + … + n + … cho đến khi S>109. Điều kiện nào sau đây cho vòng lặp while là đúng:

While S>=109:

While S =109:

While S <=109:

While S !=109:

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?