
Bài 20. Câu lệnh lặp for

Quiz
•
Computers
•
10th Grade
•
Medium
Nguyễn Thị Trang
Used 7+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp của lệnh lặp với số lần biết trước?
for <i> in range(n):
<khối lệnh>;
for <i> in range(n):
<khối lệnh>:
for <i> in range(n):
<khối lệnh>.
for <i> in range(n):
<khối lệnh>
Answer explanation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, câu lệnh nào dưới đây được viết đúng để in ra kí tự A?
for i in range(10): prin(“A”)
for i in range(10): print(“A”)
for i in range(10): print(A)
for i in range(10) print(“A”)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong câu lệnh lặp trên, khi kết thúc câu lệnh trên, câu lệnh print(j) được thực hiện bao nhiêu lần?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong câu lệnh lặp trên, khi kết thúc câu lệnh trên lệnh có bao nhiêu chữ “A” xuất hiện?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình:
j = 0
for i in range(5):
j = j + i
print(j)
Sau khi thực hiện chương trình giá trị của biến j bằng bao nhiêu?
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Python 2D Lists Quiz

Quiz
•
10th Grade
10 questions
Cấu trúc lặp - Python

Quiz
•
9th - 12th Grade
10 questions
Kiểu dữ liệu danh sách (Khối 10)

Quiz
•
10th Grade
10 questions
Trắc nghiệm: Bài 16-Ngôn ngữ lập trình bậc cao và Python

Quiz
•
10th Grade
15 questions
Python 10 Bài 4

Quiz
•
10th Grade
20 questions
ĐÁP ÁN KTTX số 1 - Tin 7 - HK2 - NH: 24 -25

Quiz
•
1st Grade - University
15 questions
Looping Review

Quiz
•
10th - 12th Grade
10 questions
Advanced Python Iteration Quiz

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade