
Câu lệnh IF và Biểu thức Logic trong Python
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Easy
vochi ly
Used 1+ 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 trong Python được sử dụng để làm gì?
Thực hiện vòng lặp qua các phần tử.
Kết thúc chương trình ngay lập tức.
Kiểm tra điều kiện và thực thi khối lệnh nếu điều kiện đúng.
Tạo một hàm mới trong Python.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biểu thức logic nào sau đây là đúng trong Python: True and False?
False
True
False or True
True or False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp đúng của câu lệnh IF trong Python là gì?
if (condition) { do_something }
if condition do_something
if condition: do_something
if do_something: condition
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của biểu thức 5 > 3 và 2 < 1 là gì?
5 > 3
false
true
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh IF có thể kết hợp với câu lệnh nào khác để tạo thành cấu trúc điều kiện phức tạp hơn?
CASE
THEN
ELSE
SWITCH
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biểu thức logic nào sau đây sẽ trả về True: (5 == 5) or (3 > 2)?
(5 > 5) or (3 < 2)
True
(5 != 5) and (3 < 2)
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh IF có thể có bao nhiêu nhánh ELSE?
Không có nhánh ELSE
Một nhánh ELSE
Hai nhánh ELSE
Nhiều nhánh ELSE
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
Quiz về tìm kiếm thông tin trên WWW
Quiz
•
6th Grade - University
6 questions
AI Concepts
Quiz
•
9th - 12th Grade
15 questions
Fungsi Statistik, if dan Lookup Ms. Excel
Quiz
•
10th Grade
10 questions
SOAL TES DIAGNOSTIK AWAL DAN TES AKHIR
Quiz
•
10th Grade
15 questions
TES SUMATIF INFORMATIKA
Quiz
•
10th Grade
15 questions
Scratch
Quiz
•
8th Grade - University
10 questions
Quiz aula 7
Quiz
•
9th - 12th Grade
15 questions
Selection Programming_If condition
Quiz
•
8th Grade - 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 Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
