
kiểm tra về Lặp - CTC
Authored by nguyễn Minh Huê
Computers
9th - 12th Grade
Used 16+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cấu trúc lặp với số lần không biết trước là:
for <Biến chạy> in range(m,n)
<Khối lệnh cần lặp>
while <Điều kiện>:
<Câu lệnh hay khối lệnh>
while <Điều kiện>:
for <Biến chạy> in range(m,n):
<Khối lệnh cần lặp>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cấu trúc lặp với số lần biết trước là:
for <Biến chạy> in range(m,n)
<Khối lệnh cần lặp>
while <Điều kiện>:
<Câu lệnh hay khối lệnh>
for <Biến chạy> in range(m,n):
for <Biến chạy> in range(m,n):
<Khối lệnh cần lặp>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn lệnh sau:
for i in range(1,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(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
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình sau:
s=0
i=1
while i<=5:
s=s+1
i=i+1
Sau khi thực hiện đoạn chương trình trên giá trị của s là:
9
15
5
10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình sau:
s=0
for i in range(6):
s=s+i
Sau khi thực hiện đoạn chương trình trên giá trị của s là:
1
15
6
21
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho bài toán tính tổng s=1+2+3+...+n. Để giải bài toán trên ta có thể dùng:
Cấu trúc rẽ nhánh.
Cấu trúc lặp.
Hàm ceil()
Hàm toán học sqrt()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
16 questions
Základní části počítače a ergonomie
Quiz
•
9th - 10th Grade
15 questions
Programming
Quiz
•
10th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
15 questions
tpr2_u0_initial test
Quiz
•
10th Grade
20 questions
KIỂM TRA 15P TIN 7 (18-23/10-2022)
Quiz
•
6th - 9th Grade
18 questions
EXA-DIAG-INF-III-AGO-2022
Quiz
•
11th Grade
19 questions
¿Qué es un sistema operativo?
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade