
Cấu truc rẽ nhánh
Quiz
•
Other
•
10th Grade
•
Hard
Đỗ Trinh
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào dùng để rẽ nhánh trong Python?
switch
loop
if
while
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh if hoạt động như thế nào?
Luôn thực hiện
Thực hiện khi điều kiện đúng
Bỏ qua khi đúng
Báo lỗi khi điều kiện sai
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp đúng của lệnh if là:
if (a > b) then:
if a > b:
if a > b then
if a > b {} else {}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn mã sau:
python
CopyEdit
x = 5
if x % 2 == 0:
print("Chẵn")
else:
print("Lẻ")
Kết quả in ra là gì?
Chẵn
Lẻ
Không có gì
Lỗi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào đúng về thụt lề trong Python?
Có thể viết liền dòng
Không cần cách lề
Cách lề sai gây lỗi
Dùng dấu chấm phẩy để kết thúc lệnh
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điều kiện x > 10 or x < 3 đúng khi nào?
x = 5
x = 8
x = 12
x = 10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn lệnh Python đúng để kiểm tra số a là âm hay không:
if a < 0: print("Âm")
if a < 0 print("Âm")
if a < 0) print("Âm")
if (a < 0) then print("Âm")
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
snakes
Quiz
•
3rd Grade - University
14 questions
Military Career Opportunities
Quiz
•
9th - 12th Grade
14 questions
Ôn tập kỳ I lớp 4 0405
Quiz
•
3rd Grade - University
15 questions
WMS Schoolwide expectations
Quiz
•
6th Grade - University
10 questions
2.27.20 - Week 1 Advisory quiz (9th Grade)
Quiz
•
9th - 12th Grade
15 questions
Southeast Asia
Quiz
•
9th - 10th Grade
10 questions
Lab safety, rules, and procedures
Quiz
•
9th - 12th Grade
15 questions
Selling Process
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Other
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
7 questions
Combining & Revising Sentences- EOC English I Crunchtime
Quiz
•
9th - 10th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
