Search Header Logo

SNLTW

Authored by Nhật Hồng

Computers

Professional Development

Used 2+ times

SNLTW
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

Biến nào sau đây được đặt tên hợp lệ trong Python?

2name

for

_age

total-sum

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào sau đây là hợp lệ để khai báo biến và nhận giá trị từ người dùng trong Python?

total_sum = input("Enter total sum: ")

total sum = input("Enter total sum: ")

total-sum = input("Enter total sum: ")

2total_sum = input("Enter total sum: ")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tên biến nào sau đây vi phạm quy tắc đặt tên biến trong Python?

name

for

age2

_value

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chọn câu trả lời đúng về quy tắc đặt tên biến trong Python:

Biến phải bắt đầu bằng một chữ số.

Biến không được chứa dấu gạch dưới.

Biến không được trùng với từ khóa của Python.

Biến có thể chứa ký tự đặc biệt như @, #, $.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn mã nào sau đây sẽ gây lỗi cú pháp trong Python?

name = input("Enter your name: ")

_age = input("Enter your age: ")

total-sum = input("Enter total sum: ")

age2 = input("Enter age: ")

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?