Bài 19: Câu lệnh rẽ nhánh IF
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
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
Latihan Soal Javascript
Quiz
•
10th Grade
20 questions
Math G7 Chapter 3 Mastering Significant Figures and Estimation
Quiz
•
7th Grade - University
10 questions
Tin 9 Bài 8. Hàm SUMIF
Quiz
•
9th Grade - University
16 questions
ICDL K4_ Xử lý văn bản P1_5*
Quiz
•
5th Grade - University
10 questions
Quiz di Coding su Python
Quiz
•
9th - 12th Grade
19 questions
Informatika X
Quiz
•
10th Grade
20 questions
KUIS TIK
Quiz
•
9th Grade - University
20 questions
ASESMEN DIAGNOSTIK INFORMATIKA KELAS 9
Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
