Câu hỏi về biểu thức lôgic và Python
Quiz
•
Mathematics
•
Professional Development
•
Practice Problem
•
Medium
mos mos
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
30 questions
bb1.30.Ôn thành phố TNTV lớp 1-Số 30(hongdat)
Quiz
•
Professional Development
30 questions
regrinhas
Quiz
•
1st Grade - Professio...
35 questions
Test các hệ thống An toàn
Quiz
•
Professional Development
40 questions
coa endterm
Quiz
•
Professional Development
31 questions
Soal Matematika Kelas XI
Quiz
•
Professional Development
39 questions
ÔN HK1 - LỚP 3 (2023)
Quiz
•
Professional Development
30 questions
IAT-1(MATHEMATICS-I)(8.1.2021)(PART-A)
Quiz
•
Professional Development
40 questions
MGNF Quiz - 57
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
