
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
15 questions
ôn tin học k2 lớp 4

Quiz
•
4th Grade - University
14 questions
Câu hỏi về lập trình Python

Quiz
•
10th Grade
10 questions
Kiểm Tra Môn Tin Học 10

Quiz
•
10th Grade
10 questions
Minecraft Java Edition

Quiz
•
8th Grade - Professio...
14 questions
BÀI 23

Quiz
•
10th Grade
10 questions
Câu hỏi về xâu kí tự

Quiz
•
10th Grade
9 questions
Quiz Analisis Data

Quiz
•
10th Grade
10 questions
Ngôn ngữ lập trình Python

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Exploring Newton's Laws of Motion

Interactive video
•
6th - 10th Grade
20 questions
Cell organelles and functions

Quiz
•
10th Grade
10 questions
Colonial Grievances Against the King Quiz

Quiz
•
10th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade