Bài 19: Câu lệnh điều kiện If

Quiz
•
Mathematics
•
11th Grade
•
Hard
Do Hong
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là sai khi nói về biểu thức lôgic?
A. Biểu thức lôgic là biểu thức chỉ nhận giá trị True hoặc False.
B. Giá trị của biểu thức lôgic thuộc kiểu bool
C. Ngoài hai giá trị True, False biểu thức lôgic nhận giá trị undefined
D. Biểu thức '2 * 3 // 5 == 1' mang giá trị True
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Biểu diễn nào sau đây là sai trong Python?
A. b*b>a*c, a*(1-a)+(a-b)>=0, 1/x-x<0.
B. (a-b)>c-d, 1//x-y>=2*x, b*b>a*c.
C. (a-b)>c-d, (a-b)<>b-a,12*a>5a.
D. (a-b)**0.5>x,1/x-y>=2*x,15*a>5.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn chương trình sau:
x=2021
print((x%4==0 and x%100!=0) or x%400==0)
55.
True.
5.
False.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho x = True, y = False. Cho biết giá trị của biểu thức sau:
not((x or y ) and x )
True
False
x
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giá trị của hai biểu thức sau là True hay False?
50%3==1
34//5==6
True, True
False, False.
True, False
False, True
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây bị sai khi nói về lệnh if?
A. Sau <điều kiện> cần có dấu ":"
B. Khối lệnh tiếp theo không bắt buộc lùi vào 1 tab và thẳng hàng
C. Khi thực hiện lệnh, Python sẽ kiểm tra <điều kiện> nếu đúng thì thực hiện
D. Tất cả phát biểu sai.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tìm giá trị m và n thoả mãn (m+4) % 5 == 0 và n*2//3=5
m = 1, n = 8
m = 2, n = 9
m = 3, n = 10
m = 0, n = 7
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
BCCK HP5

Quiz
•
11th Grade
20 questions
7.5 Factoring x^2 + bx + c

Quiz
•
9th - 12th Grade
20 questions
Rational Expressions

Quiz
•
8th - 12th Grade
12 questions
Factoring Trinomials

Quiz
•
9th - 12th Grade
15 questions
Степенная функция

Quiz
•
11th Grade
20 questions
Giá trị lượng giác của góc lượng giác

Quiz
•
11th Grade
12 questions
Factoring Polynomials

Quiz
•
10th - 12th Grade
15 questions
SỐ NGUYÊN

Quiz
•
11th - 12th 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 Mathematics
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
31 questions
2.1.3 Angle relationships

Quiz
•
10th - 11th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade
11 questions
Solving Multistep Equations Quiz

Quiz
•
11th Grade
10 questions
Intro to Parallel and Perpendicular Slopes

Quiz
•
9th - 12th Grade
15 questions
Absolute Value Equations and Inequalities

Quiz
•
9th - 11th Grade
15 questions
Intro To Compound Inequalities

Quiz
•
9th - 12th Grade