
Cấu truc rẽ nhánh

Quiz
•
Other
•
10th Grade
•
Hard
Đỗ Trinh
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Xâu kí tự

Quiz
•
10th Grade
12 questions
Підсумковий тест за II семестр

Quiz
•
7th Grade - University
13 questions
Bản cấu trúc rẽ nhánh cấu trúc lặp còn thiếu

Quiz
•
10th Grade
15 questions
Chủ đề f

Quiz
•
10th Grade
15 questions
Câu hỏi ôn tập về lệnh while trong Python

Quiz
•
10th Grade
10 questions
Trắc nghiệm Câu lệnh rẽ nhánh

Quiz
•
10th Grade
10 questions
Câu hỏi kiến thức bài 9_rẻ nhánh

Quiz
•
KG - 12th Grade
9 questions
Quiz Analisis Data

Quiz
•
10th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
12 questions
Unit Zero lesson 2 cafeteria

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

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University