Search Header Logo

การเขียนโปรแกรมภาษาไพทอน

Authored by สุวิมล ซ้อนขำ

Computers

2nd Grade

Used 8+ times

การเขียนโปรแกรมภาษาไพทอน
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

เครื่องหมาย + - * / เป็นตัวดำเนินการแบบใด ในภาษา Python

ตัวดำเนินการทางตรรกะ

ตัวดำเนินการเปรียบเทียบ

ตัวดำเนินการทางคณิตศาสตร์

ตัวดำเนินการในการกำหนดค่า

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คอมเม้นในภาษาไพทอนข้อใดไม่ถูกต้อง

!Comment

#Comment

'''Comment'''

"""Comment"""

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

หากต้องการแปลงชนิดข้อมูลตัวแปร a ที่เป็นชนิด String ให้เป็น Integer จะต้องใช้คำสั่งใด

int(a)

integer(a)

StringToInt

StringToInteger(a)

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ข้อใดต่อไปนี้เป็นคำสั่ง if ในภาษา Python ที่ถูกต้อง

if a >= 10 :

if (a = 22)

if (a => 10)

if a =< 22 :

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

จากโปรแกรม จะได้ผลลัพธ์ใด

Cat

error

<class 'str'>

4,2.5,“cat”

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

จากโปรแกรม จะได้ผลลัพธ์ใด

2 4 5 6 7 8 9 10

2 4 6 8 10

2 3 10

2 5 8

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

จากโปรแกรม จะได้ผลลัพธ์ใด

1 2

1 2 3

0 1 2

0 1 2 4 5 6

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

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

Already have an account?