Quizz_Python_Basic_If_Elif_Else
Quiz
•
Science
•
9th Grade
•
Practice Problem
•
Easy
Thành Duy
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
14 questions
Food Safety Quiz
Quiz
•
12th Grade
13 questions
Wind Energy
Quiz
•
9th - 10th Grade
15 questions
Effects of Pollution
Quiz
•
9th - 12th Grade
15 questions
Compounds of Life Topic Quiz
Quiz
•
9th - 10th Grade
10 questions
TỪ BÀI TOÁN ĐẾN CHƯƠNG TRÌNH
Quiz
•
11th Grade
12 questions
Electromagnetic Induction Recitation
Quiz
•
10th Grade
15 questions
VÒNG 1 - SÂN CHƠI CUỐI TUẦN
Quiz
•
2nd Grade - University
15 questions
Welcome Party
Quiz
•
University
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
Discover more resources for Science
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
10 questions
Exploring Light and Waves Concepts
Interactive video
•
6th - 10th Grade
12 questions
Endothermic and Exothermic Reactions
Quiz
•
7th - 10th Grade
10 questions
Exploring Thermal Energy and Temperature Concepts
Interactive video
•
6th - 10th Grade
10 questions
Exploring Kinetic and Potential Energy Concepts
Interactive video
•
6th - 10th Grade
32 questions
Explore Mixtures and Solutions
Quiz
•
9th - 12th Grade
15 questions
Patterns of Evolution MCQ Reading
Passage
•
9th - 12th Grade
