
LE TRAN HOAI LOC
Authored by Trần Lê
Professional Development
6th - 8th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Trong Python, cú pháp của câu lệnh điều kiện "if...else" là gì?
if condition { } else { }
if condition: else:
if condition { } else:
if condition: else { }
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Điền vào chỗ trống để xác định x là chẵn hay lẻ:
x = 8
if x ... 2 == 0:
print("Số chẵn")
else:
print("Số lẻ")
%
/
*
**
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Đọc đoạn code và cho biết kết quả:
x = 7
if x < 5:
print("Sai")
else:
print("Đúng")
Sai
Đúng
False
True
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Trong câu lệnh "if...else", có thể có bao nhiêu phần "if" và "else"?
Chỉ có một phần "if" và một phần "else".
Có thể có nhiều phần "if" nhưng chỉ có một phần "else".
Chỉ có một phần "if" nhưng có thể có nhiều phần "else".
Có thể có nhiều phần "if" và nhiều phần "else".
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
"Trong Python, điều gì sẽ xảy ra nếu điều kiện của câu lệnh if không đúng và không có câu lệnh else đi kèm?"
Chương trình sẽ tiếp tục thực thi bình thường
Một ngoại lệ sẽ được ném
Chương trình sẽ báo lỗi cú pháp
Không có hành động nào sẽ được thực hiện
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho câu lệnh n = int(input(“Nhập 1 số tự nhiên: “)
Để kiểm tra số n chẵn hay lẽ, câu lệnh nào sau đây đúng?
if n%2==0 print('Số vừa nhập là số chẵn')
else print('Số vừa nhập là số lẻ')
if n%2==0: print('Số vừa nhập là số chẵn')
else print('Số vừa nhập là số lẻ')
if n%2==0: print('Số vừa nhập là số chẵn”)
else: print('Số vừa nhập là số lẻ”)
if n%2==0: print('Số vừa nhập là số chẵn')
else: print('Số vừa nhập là số lẻ')
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho câu lệnh x = int(input(“Nhập 1 số tự nhiên: “)
Viết câu lệnh điều kiện với yêu cầu sau: Nếu x nằm trong khoảng (0; 10) thì in ra màn hình TRUE?
If x > 0 or x < 10: print('TRUE')
if x > 0 and x < 10: print('TRUE')
If (x > 0) and (x < 10): print('TRUE')
if x < 0 or x < 10: print('TRUE')
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Health Science Pathways
Quiz
•
7th - 12th Grade
10 questions
Health and Safety Management
Quiz
•
3rd Grade - University
10 questions
Kiến thức sản phẩm máy Lọc nước & Bình tắm nóng lạnh,
Quiz
•
6th Grade
10 questions
Lesson 11 - Iterative statements
Quiz
•
5th - 8th Grade
11 questions
PHONE SKILLS
Quiz
•
1st - 10th Grade
12 questions
TIME MANAGEMENT PRE TEST
Quiz
•
8th Grade - Professio...
10 questions
Kinh tế học phát triển
Quiz
•
KG - 10th Grade
10 questions
Adobe Illustrator
Quiz
•
1st - 8th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Professional Development
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
7 questions
SMS Playground Expectations Quiz
Quiz
•
6th - 8th Grade
16 questions
Mario Trivia Challenge
Quiz
•
6th - 8th Grade
14 questions
SMS Car & Bus Expectations Quiz
Quiz
•
6th - 8th Grade
12 questions
Review: Surface Area of Rectangular and Triangular Prisms
Quiz
•
6th Grade