
Câu hỏi về biểu thức lôgic và lệnh if

Quiz
•
Computers
•
1st Grade
•
Easy
Thảo Phạm
Used 1+ times
FREE Resource
32 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 CHOICE 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)
A. 55.
B. True.
C. 5.
D. 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 )
A. True
B. False
C. x
D. 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
A. True, True
B. False, False.
C. True, False
D. 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
A. m = 1, n = 8
B. m = 2, n = 9
C. m = 3, n = 10,
D. m = 0, n = 7
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Administrasi dan Insfrastruktur Jaringan

Quiz
•
1st Grade
30 questions
KURUKSHETRA

Quiz
•
1st Grade
32 questions
Câu Hỏi Trắc Nghiệm về Biến và Kiểu Dữ Liệu

Quiz
•
1st Grade
30 questions
SERVER MAINTENANCE LA1 B3

Quiz
•
KG - 5th Grade
33 questions
Python Programming Mid Term - Nov 2024

Quiz
•
1st Grade
27 questions
TIN CUỐI K2 L6 THIÊN ÂN- NGUYỄN DU

Quiz
•
1st Grade
30 questions
ôn tập học kì 2 tin tiểu học

Quiz
•
1st - 5th Grade
30 questions
Yakuniy test

Quiz
•
1st Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade
10 questions
Exploring the 5 Regions of the United States

Interactive video
•
1st - 5th Grade
7 questions
Parts of Speech

Lesson
•
1st - 12th Grade