
PTB Checkpoint 2
Quiz
•
others
•
12th Grade
•
Practice Problem
•
Hard
Tran Hung
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Cho bài toán tính tổng các số chẵn 2 + 4 + 6 + 8 + … + n (n là số chẵn). Để giải quyết bài toán, có thể dùng
Câu điều kiện dạng thiếu
Câu lệnh lặp với số lần biết trước
Câu lệnh append()
Câu lệnh break và continue
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Cấu trúc đầy đủ của lệnh range là:
range(start, end, step)
range(n)
range(start, end)
range(index, start, end, step)
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Hãy xác định công việc nào sau đây cần được lặp với số lần xác định:
(1) Đọc sách đến khi buồn ngủ
(2) Tính tổng của các số chia hết cho 3 trong đoạn từ 1 đến 100.
(3) Đọc tên của từng học sinh trong lớp học có 40 em.
(4) Đi bộ quanh công viên trong 30 phút.
(5) Đếm số các số chẵn có trong đoạn từ 1 đến 50.
(2), (3), (5)
(1), (3), (4)
(1), (4), (5)
(3), (4), (5)
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Chương trình bên dưới thực hiện công việc gì? sum = 0 for i in range(10): if i % 2 == 0 sum += i print(sum)
Tính tổng các số chẵn từ 0 đến 10
Tính tổng các số chẵn từ 0 đến 9
Tính tổng các số chẵn từ 2 đến 10
Chương trình lỗi
5.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
Cho chương trình bên dưới, vòng lặp được thực hiện bao nhiêu lần? n = 5 for i in range (n+1): print("Xin chào, tôi là MindX")
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Lệnh nào in ra màn hình các giá trị sau? 11111 22222 33333 44444 55555
for i in range(1, 6): print(i, i, i, i, i).
for i in range(1, 5): print(str(i)*5).
for i in range(1, 6): print(str(i)*5).
for i in range(0, 5): print(str(i)*5).
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
<Điều kiện> trong câu lệnh lặp với số lần không biết trước là
Biểu thức nếu - thì
Biểu thức tính toán
Biểu thức logic
Biểu thức đa thức
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
14 questions
Business of Retail (Chapter 1): Retail Industry Overview
Quiz
•
9th - 12th Grade
10 questions
Cesare Pavese
Quiz
•
12th Grade
12 questions
El imperfecto del subjuntivo
Quiz
•
9th - 12th Grade
5 questions
Domain and Range
Quiz
•
12th Grade
15 questions
HRANJIVE TVARI (uh, m i u, proteini)
Quiz
•
10th Grade - University
15 questions
Quizz repàs SA2.
Quiz
•
2nd Grade - University
15 questions
Review - Middle Ages
Quiz
•
9th - 12th Grade
10 questions
CS&S Sample Test Questions
Quiz
•
12th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for others
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
15 questions
Atomic Habits: Career Habits
Lesson
•
9th - 12th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade
15 questions
Exponential Growth and Decay Word Problems Practice
Quiz
•
9th - 12th Grade
18 questions
AP Bio Insta-Review Topic 6.1*: DNA & RNA Structure
Quiz
•
9th - 12th Grade
