Câu lệnh điều kiện If trong Python được sử dụng để làm gì?

Quiz về Câu lệnh điều kiện If trong Tin học 10

Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
Th Đinh
Used 1+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kiểm tra điều kiện và thực hiện hành động tương ứng
Tạo giao diện người dùng
Thực hiện các phép toán số học
Lưu trữ dữ liệu
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biểu thức lôgic trong Python có thể có giá trị nào?
Chỉ True
Chỉ False
Không có giá trị nào
True hoặc False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cấu trúc cơ bản của lệnh If trong Python là gì?
if điều_kiện thực_thi
if thực_thi: điều_kiện
if thực_thi điều_kiện
if điều_kiện: thực_thi
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi nào lệnh If sẽ không được thực thi?
Khi không có điều kiện
Khi có lỗi cú pháp
Khi điều kiện là True
Khi điều kiện là False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào sau đây là lệnh If hợp lệ trong Python?
if (x > 10) print(x)
if x > 10 print(x)
if x > 10: print(x)
if x > 10: print x
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh If có thể kết hợp với lệnh nào khác để mở rộng chức năng?
Lệnh else
Lệnh while
Lệnh for
Cả ba lệnh trên
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào sau đây không phải là một biểu thức lôgic?
x + 5
x > 5
x < 20
x == 10
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Bài 28

Quiz
•
10th Grade - University
10 questions
ôn tập hk I K10 CD

Quiz
•
10th Grade
10 questions
Trắc nghiệm nhanh

Quiz
•
10th Grade
15 questions
Bài 29

Quiz
•
10th Grade - University
10 questions
Đề Trắc Nghiệm Câu Lệnh Rẽ Nhánh

Quiz
•
10th Grade
10 questions
Kiến thức về Python

Quiz
•
10th Grade
10 questions
Kiểm Tra Cấu Trúc Rẽ Nhánh Python

Quiz
•
10th Grade
15 questions
Câu lệnh rẽ nhánh trong Python

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade