Câu lệnh IF và Biểu thức Logic trong Python

Câu lệnh IF và Biểu thức Logic trong Python

10th Grade

10 Qs

quiz-placeholder

Similar activities

File Compression and Digital Audio/Video Formats

File Compression and Digital Audio/Video Formats

9th - 12th Grade

12 Qs

E-SAFETY

E-SAFETY

10th Grade

10 Qs

Tinkercad - Arduino

Tinkercad - Arduino

9th Grade - University

10 Qs

S3 Spreadsheet Formatting Skills

S3 Spreadsheet Formatting Skills

8th Grade - University

15 Qs

Post test Informatika kelas X

Post test Informatika kelas X

10th Grade

10 Qs

Scratch Math Quiz Program

Scratch Math Quiz Program

7th Grade - University

14 Qs

Conditional Control Statements

Conditional Control Statements

8th Grade - University

10 Qs

Quiz_Perteknologian

Quiz_Perteknologian

10th Grade

12 Qs

Câu lệnh IF và Biểu thức Logic trong Python

Câu lệnh IF và Biểu thức Logic trong Python

Assessment

Quiz

Information Technology (IT)

10th Grade

Practice Problem

Easy

Created by

vochi ly

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh IF trong Python được sử dụng để làm gì?

Thực hiện vòng lặp qua các phần tử.

Kết thúc chương trình ngay lập tức.

Kiểm tra điều kiện và thực thi khối lệnh nếu điều kiện đúng.

Tạo một hàm mới trong Python.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Biểu thức logic nào sau đây là đúng trong Python: True and False?

False

True

False or True

True or False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp đúng của câu lệnh IF trong Python là gì?

if (condition) { do_something }

if condition do_something

if condition: do_something

if do_something: condition

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của biểu thức 5 > 3 và 2 < 1 là gì?

5 > 3

false

true

1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh IF có thể kết hợp với câu lệnh nào khác để tạo thành cấu trúc điều kiện phức tạp hơn?

CASE

THEN

ELSE

SWITCH

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Biểu thức logic nào sau đây sẽ trả về True: (5 == 5) or (3 > 2)?

(5 > 5) or (3 < 2)

True

(5 != 5) and (3 < 2)

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh IF có thể có bao nhiêu nhánh ELSE?

Không có nhánh ELSE

Một nhánh ELSE

Hai nhánh ELSE

Nhiều nhánh ELSE

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?