Câu hỏi về biểu thức lôgic và Python
Quiz
•
Mathematics
•
University
•
Medium
shiroko kryger
Used 1+ times
FREE Resource
Enhance your content in a minute
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1. 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
Câu 2. 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-xc-d, 1//x-y>=2*x, b*b>a*c.
B. (a-b)>c-d, (a-b)<>b-a,12*a>5a.
C. (a-b)**0.5>x,1/x-y>=2*x,15*a>5.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3. 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
Câu 4. 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
Câu 5. 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
Câu 6. Phát biểu nào sau đây bị sai khi nói về lệnh if?
A. Sau 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 nếu đúng thì thực hiện , ngược lại thì bỏ qua chuyến sang lệnh tiếp theo.
D. Tất cả phát biểu sai.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7. 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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
35 questions
Geometria 1º ESO (1)
Quiz
•
KG - University
30 questions
Ecuaciones Agosto 2023
Quiz
•
University
30 questions
Function Quiz 24/25
Quiz
•
8th Grade - University
34 questions
Ujian Matematika Kelas VII
Quiz
•
7th Grade - University
40 questions
PAS GANJIL Matematika 8 2024/2025
Quiz
•
8th Grade - University
35 questions
cycle 1 Review
Quiz
•
7th Grade - University
35 questions
2024-MMW-PRELIM-REVIEW
Quiz
•
University
33 questions
Estadística descriptiva I
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Mathematics
16 questions
Graphing Points Practice
Quiz
•
University
16 questions
Finding Slope on a Graph Using Rise Over Run
Quiz
•
8th Grade - University
11 questions
Domain and Range Practice
Quiz
•
7th Grade - University
22 questions
TSI Math Review Test 3
Quiz
•
8th Grade - University
20 questions
Parent Functions
Quiz
•
9th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
28 questions
Parallel lines and Transversals
Quiz
•
9th Grade - University
