Loop & def Python

Loop & def Python

6th - 8th Grade

25 Qs

quiz-placeholder

Similar activities

Ex 2º 1ª Ev TECH

Ex 2º 1ª Ev TECH

2nd Grade - University

24 Qs

June28 Marin

June28 Marin

4th - 8th Grade

23 Qs

Tech Apps 1 - 2nd Semester Exam

Tech Apps 1 - 2nd Semester Exam

7th Grade

25 Qs

EXAMEN B3A Y B3B

EXAMEN B3A Y B3B

3rd Grade - University

20 Qs

ôn tập

ôn tập

8th Grade

20 Qs

7th grade CS exam

7th grade CS exam

6th - 8th Grade

20 Qs

AV2_Robótica_2B_2025

AV2_Robótica_2B_2025

3rd Grade - University

20 Qs

Coding Quiz Practice

Coding Quiz Practice

6th - 8th Grade

21 Qs

Loop & def Python

Loop & def Python

Assessment

Quiz

Instructional Technology

6th - 8th Grade

Medium

Created by

Nguyễn HN)

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Vòng lặp nào trong Python sử dụng cho việc lặp lại một chuỗi các giá trị?

Which loop in Python is used for iterating over a sequence of values?

for

while

do-while

repeat-until

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây dùng để dừng vòng lặp ngay lập tức trong Python?

break

continue

pass

exit

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh continue trong vòng lặp for dùng để làm gì?

What is the continue statement used for in a for loop?

Thoát khỏi vòng lặp

Break out of the loop

Bỏ qua phần còn lại của vòng lặp và bắt đầu lặp tiếp theo

Skip the rest of the loop and start the next iteration

Tạo vòng lặp vô hạn

Create infinite loop

Tiếp tục vòng lặp hiện tại mà không thay đổi gì

Continue the current loop without changing anything

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

0 1 2 3 4

0 1 2

0 1 2 3

0 1 2 3 4 5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

What is the result of the following code?

0

3

4

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

What is the result of the following code?

1 3 5 7 9

2 4 6 8 10

1 2 3 4 5 6 7 8 9

1 2 3 4 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Vòng lặp nào dưới đây có thể gây ra vòng lặp vô hạn nếu điều kiện không đúng cách?

Which of the following loops can cause an infinite loop if the condition is not correct?

for

while

for & while

None

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?