Lệnh for trong Python có cú pháp cơ bản nào sau đây?

Câu hỏi về Python

Quiz
•
Computers
•
11th Grade
•
Medium
nghiem trac
Used 5+ times
FREE Resource
48 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for i = 0 to 5:
for i in range(n):
for i=0 in range():
for i range(n):
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giá trị của biến i lần lượt là ba nhiêu trong lệnh for i in range(3):
1, 2, 3
0, 1, 2
0, 1, 2, 3
1, 2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh while trong Python được sử dụng khi:
Biết trước số lần lặp
Không cần điều kiện dừng
Không biết trước số lần lặp
Không cần sử dụng biến đếm
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dòng lệnh sau đây sẽ in gì ra màn hình?
1 2 3 4 5
0 1 2 3 4
1 2 3 4
0 1 2 3 4 5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn mã sau là gì?
1 2 3 4 5
0 1 2 3 4
1 2 3 4
2 3 4 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn mã sau là gì?
10
15
5
6
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn mã sau là gì?
1
2
Lỗi
Lặp vô hạn
Create a free account and access millions of resources
Similar Resources on Quizizz
46 questions
TIN HOC LƠP 4 HK1

Quiz
•
1st Grade - University
46 questions
BAI ON KHOI 5

Quiz
•
1st Grade - University
50 questions
Tin học cuối kỳ 2

Quiz
•
9th - 12th Grade
48 questions
Tin 9. Ôn tập GK1 (24.25)

Quiz
•
9th - 12th Grade
50 questions
Ôn tập CK 2

Quiz
•
10th Grade - University
49 questions
Ôn tập trắc nghiệm tin học 11 HK2_2021

Quiz
•
11th Grade
49 questions
ÔN TẬP CHỦ ĐỀ F TIN 10

Quiz
•
9th - 12th Grade
52 questions
Tin Cuối kì 2

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade