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
19 questions
Ôn tập HKI Tin học - Khối 5

Quiz
•
5th Grade - University
20 questions
Питон П411

Quiz
•
9th - 12th Grade
10 questions
bài 20 for

Quiz
•
10th Grade
20 questions
Kiểm tra HKI 10

Quiz
•
10th Grade
20 questions
Tin học 10: Ôn tập trắc nghiệm Cuối kì 1 năm học 2024-2025

Quiz
•
10th Grade
15 questions
Bài 29

Quiz
•
10th Grade - University
18 questions
Python Library Routines Quiz

Quiz
•
10th Grade - University
12 questions
Review loops

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Exploring Newton's Laws of Motion

Interactive video
•
6th - 10th Grade
20 questions
Cell organelles and functions

Quiz
•
10th Grade
10 questions
Colonial Grievances Against the King Quiz

Quiz
•
10th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade