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
Enhance your content in a minute
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
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
20 questions
Программирование на Python
Quiz
•
10th Grade
10 questions
Understanding Data and Encoding
Quiz
•
6th Grade - University
20 questions
Tugas Latihan Soal Informatika 9
Quiz
•
9th - 12th Grade
10 questions
Module 2.1.6 Quiz
Quiz
•
10th Grade
20 questions
KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar
Quiz
•
7th Grade - University
15 questions
LibreOffice Writer Styles Quiz
Quiz
•
10th Grade - University
20 questions
Photoshop test - 1
Quiz
•
10th Grade
20 questions
Analisis Data dengan Python
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Translations, Reflections & Rotations
Quiz
•
8th - 10th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade
20 questions
Simplifying Radicals
Quiz
•
10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
