Quizz_Python_Basic_If_Elif_Else

Quiz
•
Science
•
9th Grade
•
Easy
Thành Duy
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
NUCLEIC ACID

Quiz
•
9th Grade
10 questions
Giới thiệu Access

Quiz
•
12th Grade
9 questions
công nghệ

Quiz
•
11th Grade
11 questions
TAM LY DAI CUONG- TINH CAM

Quiz
•
University
10 questions
Trắc nghiệm arduino

Quiz
•
11th Grade
7 questions
Final Quizz

Quiz
•
6th Grade - University
7 questions
Post Test 1: Percabangan C

Quiz
•
11th Grade
11 questions
Chinh phục (Frtesta)

Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
10 questions
Exploring Newton's Laws of Motion

Interactive video
•
6th - 10th Grade
10 questions
Exploring Chemical and Physical Changes

Interactive video
•
6th - 10th Grade
10 questions
Exploring the States of Matter

Interactive video
•
6th - 10th Grade
10 questions
Exploring the States of Matter and Thermal Energy

Interactive video
•
6th - 10th Grade
10 questions
Exploring Light and Waves Concepts

Interactive video
•
6th - 10th Grade
16 questions
3.4 Biogeochemical Cycles

Quiz
•
9th Grade
21 questions
Cell Organelles

Quiz
•
9th Grade
10 questions
Exploring Weathering, Erosion, and Deposition Processes

Interactive video
•
6th - 10th Grade