
Quizz_Python_Basic_If_Elif_Else
Authored by Thành Duy
Science
9th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh if - else trong Python được sử dụng để làm gì?
Kiểm tra và xử lý ngoại lệ
Thực hiện vòng lặp
Kiểm tra điều kiện và thực thi hành động tùy thuộc vào điều kiện đó
In ra màn hình câu lệnh đã nhập
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh else trong Python sẽ được thực thi khi nào?
Khi tất cả các biểu thức điều kiện đều sai
Khi tất cả các biểu thức điều kiện đều đúng
Khi biểu thức điều kiện if sai
Khi biểu thức điều kiện elif đúng
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cấu trúc của một câu lệnh if trong Python là gì?
if (condition) {}
if condition:
if (condition): else:
if condition: else condition:
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh elif có thể có bao nhiêu lần trong một câu lệnh if - elif - else?
1 lần
Không giới hạn
2 lần
3 lần
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dưới đây là cú pháp đúng trong Python?
if x > 5 print("Hello")
if x > 5: print("Hello")
if x > 5 then print("Hello")
if x > 5 {print("Hello")}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn mã sau sẽ là gì?
x = 10
if x > 5: print("Greater")
else: print("Smaller")
Smaller
Greater
Lỗi cú pháp
Không có kết quả
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nếu bạn có một câu lệnh if và một câu lệnh elif, và cả hai điều kiện đều sai, câu lệnh nào sẽ được thực thi?
Câu lệnh if
Câu lệnh elif
Câu lệnh else
Không có câu lệnh nào
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
6 D Science Light
Quiz
•
5th - 9th Grade
12 questions
Chicken Quiz
Quiz
•
9th - 12th Grade
10 questions
Ecological Footprint
Quiz
•
11th Grade
9 questions
CHAPTER 5 ONLINE QUIZ
Quiz
•
University
10 questions
K10 KIỂM TRA 15P LẦN 1 HK1(2022-2023)
Quiz
•
10th Grade
15 questions
Changes affect organisms
Quiz
•
3rd Grade - University
10 questions
Type of Plate Boundaries
Quiz
•
10th Grade
10 questions
PHP Quiz
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Science
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
25 questions
Naming Ionic and Covalent Compounds
Quiz
•
9th Grade
14 questions
Natural Selection and Adaptation
Lesson
•
9th - 12th Grade
20 questions
Atomic Structure
Quiz
•
9th Grade
10 questions
Exploring the Ring of Fire: Volcanoes and Earthquakes
Interactive video
•
6th - 10th Grade
38 questions
Water Cycle and Groundwater
Quiz
•
9th - 12th Grade
10 questions
Exploring Spring and Neap Tides
Interactive video
•
6th - 10th Grade
15 questions
DNA and RNA review
Quiz
•
9th Grade