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

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

10th Grade

15 Qs

quiz-placeholder

Similar activities

Excel Funksiyalari Bo'yicha Savollar

Excel Funksiyalari Bo'yicha Savollar

10th Grade

15 Qs

Tin 7 Bài 8

Tin 7 Bài 8

7th Grade - University

10 Qs

Keyboard Shortcuts

Keyboard Shortcuts

5th Grade - University

11 Qs

แบบทดสอบกลางภาค2/2567 (วิทยาการคำนวณ))

แบบทดสอบกลางภาค2/2567 (วิทยาการคำนวณ))

10th Grade

20 Qs

Ôn tập HKI Công nghệ - Khối 4

Ôn tập HKI Công nghệ - Khối 4

4th Grade - University

10 Qs

Latihan Microsoft Excel_1 Kelas X

Latihan Microsoft Excel_1 Kelas X

10th Grade

20 Qs

UAS SMSTR GENAP 2024

UAS SMSTR GENAP 2024

10th Grade

17 Qs

7A-KIỂM TRA THƯỜNG XUYÊN 2

7A-KIỂM TRA THƯỜNG XUYÊN 2

7th Grade - University

20 Qs

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

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

Assessment

Quiz

Information Technology (IT)

10th Grade

Easy

Created by

Trang Huệ

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

Đ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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?