Search Header Logo

Variable & Expression

Authored by Nantika Prinyapol

Computers

University

Used 7+ times

Variable & Expression
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ข้อใดคือการตั้งชื่อตัวแปรที่ ผิด หลักของภาษา Python?

price1

studentName

1st_place

_name

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ข้อมูล 3.14 จัดเป็นข้อมูลประเภท (Data Type) ใด?

int

float

str

bool

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

คำใดต่อไปนี้เป็น 'Reserved Keyword' ที่
ไม่สามารถ นำมาตั้งเป็นชื่อตัวแปรได้?

if

total

print

variable

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ผลลัพธ์ของคำสั่ง type(False) คืออะไร?

<class 'float'>

<class 'str'>

<class 'bool'>

<class 'int'>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดคือการกำหนดค่า (Assignment) ที่ถูกต้องให้กับตัวแปร `my_name`?

my_name == "Alan"

my_name: "Alan"

my_name = "Alan"

"Alan" = my_name

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ข้อมูล 7

จัดเป็นข้อมูลประเภทใด?

Boolean

Integer

String

Float

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใด ไม่ใช่ กฎในการตั้งชื่อตัวแปรของ Python?

ชื่อเป็น Case-sensitive

ต้องเป็นตัวพิมพ์เล็กทั้งหมด

ห้ามขึ้นต้นด้วยตัวเลข

ห้ามมีช่องว่าง

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?

Discover more resources for Computers