Bài 19: Câu lệnh rẽ nhánh IF

Quiz
•
Information Technology (IT)
•
10th Grade
•
Easy
Trang Huệ
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong chương trình phân loại điểm như sau, nếu "diem = 7.5", kết quả là gì?
Khá
Giỏi
Xuất sắc
Trung bình
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nếu muốn kiểm tra hai điều kiện cùng đúng trong câu lệnh if, ta dùng phép toán nào?
and
or
not
xor
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh if x % 2 == 0 and x > 0: nghĩa là gì?
X là số lẻ
X là số chẵn dương
X là số âm
X lớn hơn 2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn mã sau in ra gì?
Không in gì
Lỗi cú pháp
Âm
Dương
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây là hợp lệ để phân loại học sinh theo điểm?
if diem > 9 then "Xuất sắc"
if diem > 9 print "Xuất sắc"
if diem >= 9: print("Xuất sắc")
if diem => 9: print("Xuất sắc")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào kiểm tra x là số dương?
if x > 0:
if x = 0:
if x < 0:
if x != 0:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dưới đây là đúng khi kiểm tra biến x không phải là số âm và không chia hết cho 3?
if x >= 0 and x % 3 != 0:
if x > 0 or x % 3 != 0:
Errorif not(x < 0 or x % 3 == 0):
if x >= 0 and x % 3 == 0:
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Kiến thức về Biến và Kiểu Dữ Liệu

Quiz
•
10th Grade
14 questions
Блиц-опрос по логике

Quiz
•
9th Grade - University
20 questions
Câu Hỏi Ôn Tập CodeCombat

Quiz
•
10th Grade
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

Quiz
•
10th Grade - University
10 questions
Kiểm Tra Bài Cũ

Quiz
•
10th Grade
20 questions
Quizizz SIOTICS #2

Quiz
•
10th Grade - University
10 questions
bài 22 list

Quiz
•
10th Grade
20 questions
Câu hỏi trắc nghiệm - Python cơ bản

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

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

Quiz
•
10th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade