Search Header Logo

Câu lệnh if

Authored by Bằng Trần

Information Technology (IT)

7th Grade

Used 1+ times

Câu lệnh if
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh if trong Python dùng để làm gì?

Lặp lại một hành động nhiều lần

Kiểm tra điều kiện để thực hiện một hành động

Khai báo biến mới

Nhập dữ liệu từ bàn phím

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Điều kiện trong câu lệnh if phải trả về giá trị gì?

0

False

True

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Khi điều kiện trong if là sai, điều gì xảy ra?

Lệnh trong if vẫn được thực hiện

Chương trình sẽ dừng lại

Lệnh trong if bị bỏ qua

Python báo lỗi

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Trong Python, dòng lệnh nằm trong if phải được:

Viết hoa toàn bộ

Đặt trong dấu ngoặc kép

Thụt lề (indent)

Có dấu : ở đầu

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Dòng sau có lỗi không? Vì sao?

if diem >= 8

print("Gioi")

Không

Access all questions and much more by creating a free account

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

Already have an account?