Trong Python, từ khóa nào được dùng để bắt đầu cấu trúc rẽ nhánh?

Kiểm Tra Tin Học 10

Quiz
•
Other
•
10th Grade
•
Hard
Đỗ Trinh
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
while
for
if
else
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Toán tử nào sau đây dùng để so sánh bằng trong Python?
=
==
:=
===
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Câu nào sau đây là cấu trúc rẽ nhánh đầy đủ trong Python?
if ... else ...
if ...
if ... elif ...
switch ... case ...
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Cho đoạn mã: x = 4 if x % 2 == 0: print("Chẵn") else: print("Lẻ") Kết quả in ra là:
Chẵn
Lẻ
4
Không in gì
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Nếu x = 0, đoạn mã sau sẽ in ra gì? if x > 0: print("Số dương") elif x < 0: print("Số âm") else: print("Số 0")
Số âm
Số 0
Số dương
Không in gì
6.
FILL IN THE BLANK QUESTION
10 sec • 1 pt
Điền vào chỗ trống để hoàn thành câu lệnh đúng trong Python: if x < 0: print("Số âm") ______:
7.
FILL IN THE BLANK QUESTION
10 sec • 1 pt
Hoàn thành câu lệnh để kiểm tra nếu a chia hết cho b: if a % b == _____:
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Promotion Techniques

Quiz
•
9th - 10th Grade
9 questions
Quiz Analisis Data

Quiz
•
10th Grade
10 questions
Cấu truc rẽ nhánh

Quiz
•
10th Grade
10 questions
Tugas Informatika Kelas XI

Quiz
•
10th Grade
10 questions
Python

Quiz
•
9th - 12th Grade
9 questions
bài 24

Quiz
•
10th Grade
10 questions
Tin học 10 Bài 24

Quiz
•
10th Grade
10 questions
CỦNG CỐ BÀI 22: KIỂU DỮ LIỆU DANH SÁCH

Quiz
•
10th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade