
TEST - LẶP FOR - TIN 10

Quiz
•
Computers
•
10th Grade
•
Hard
Thìn Lê
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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> to range(<giá trị đầu>… <giá trị cuối>): <lệnh>
for <biến đếm> into range([giá trị đầu], <giá trị cuối>): <lệnh>
2.
MULTIPLE CHOICE QUESTION
1 min • 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(10): print(i,end='' ")
for i in range(11): print(i,end='' ")
for i in range(12): print(i,end='' "')
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho đoạn chương trình sau:
s=0
for i in range(5): s=s+i
Sau khi thực hiện, giá trị của s bằng bao nhiêu?
5
10
0
15
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh sau cho kết quả là gì?
for i in range(5): print(i,end="")
1234
12345
01234
012345
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh sau cho kết quả là gì?
for i in range(10):
____if i%2==0: print(i,end='')
02468
13579
2468
246810
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Câu lệnh sau cho kết quả là gì?
for i in range(10):
____if i%2==1: print(i,end='')
02468
13579
246810
1357
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Kết quả của đoạn code sau là gì?
for i in range(1, 6): print(i, end=" ")
0 1 2 3 4 5
1 2 3 4 5 6
1 2 3 4 5
0 1 2 3 4
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
TIN HỌC 10 - BÀI 20

Quiz
•
10th Grade
15 questions
Củng Cố - Biến và lệnh gán trong Python

Quiz
•
10th Grade
14 questions
Bài 29. Nhận biết lỗi chương trình

Quiz
•
9th - 12th Grade
10 questions
Bài 26-Hàm trong Python

Quiz
•
10th Grade
15 questions
Ôn tập KTGK. Bài 19 Câu lệnh điều kiện If

Quiz
•
10th Grade
15 questions
tinGk

Quiz
•
10th Grade
15 questions
Bài 6 Câu lệnh rẽ nhánh

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

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade