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
Tin 9 Bài 8. SUMIF

Quiz
•
9th Grade - University
11 questions
Câu Lệnh Rẽ Nhánh IF ELSE

Quiz
•
10th Grade
10 questions
Câu lệnh rẽ nhánh

Quiz
•
10th Grade
10 questions
Quizzi bài 29 Tin học 10

Quiz
•
10th Grade - University
10 questions
Kiểm tra nhanh lớp 10

Quiz
•
10th Grade - University
15 questions
Bài 29

Quiz
•
10th Grade - University
19 questions
Ôn tập HKI Tin học - Khối 5

Quiz
•
5th Grade - University
10 questions
10A3_TX1_HK2

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Information Technology (IT)
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade