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
BaiThucHanhKieuDanhSach-Python

Quiz
•
10th Grade
12 questions
'Tin' (Kỳ 2)

Quiz
•
11th Grade
10 questions
Bài tập thực hành 1 (tiết 2)

Quiz
•
12th Grade
10 questions
CSA03_CP2

Quiz
•
University
10 questions
Reconhecimento de voz

Quiz
•
10th - 12th Grade
15 questions
Ôn tập - Tổng quan về MicroBit

Quiz
•
6th - 9th Grade
12 questions
TÂM LÝ ĐẠI CƯƠNG- TƯ DUY TƯỞNG TƯỞNG

Quiz
•
University
10 questions
KIỂM TRA THƯỜNG XUYÊN TIN 10 KỲ 2

Quiz
•
10th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
10 questions
Lab Safety Essentials

Interactive video
•
6th - 10th Grade
10 questions
Exploring Types of Matter: Elements, Compounds, and Mixtures

Interactive video
•
6th - 10th Grade
10 questions
Exploring the Scientific Method

Interactive video
•
6th - 10th Grade
12 questions
Lab Safety

Quiz
•
6th - 12th Grade
13 questions
Amoeba Sisters: Biomolecules

Interactive video
•
9th - 12th Grade
10 questions
Exploring Latitude and Longitude Concepts

Interactive video
•
6th - 10th Grade
20 questions
Scientific Method

Quiz
•
9th Grade
20 questions
Reading Graphs in Science

Quiz
•
9th - 12th Grade