Search Header Logo

การแก้ปัญหาด้วยภาษาไพทอน

Authored by Jitakorn Kitchaliew

Computers

KG - Professional Development

Used 53+ times

การแก้ปัญหาด้วยภาษาไพทอน
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

ในภาษาไพทอน ฟังก์ชันใดใช้ในการแสดงข้อความออกทางจอภาพ

echo

Output

print

printf

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

หากต้องการคอมเมนต์บรรทัดเดียว จะต้องใช้เครื่องหมายใด

*

\

//

#

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

หากต้องการคอมเมนต์แบบหลายบรรทัด จะต้องใส่เครื่องหมายใดก่อนและหลังข้อความที่เป็นคอมเมนต์

'''

///

###

@

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

หากต้องการกำหนดตัวแปร n ให้เป็นชนิด integer ที่มีค่าเท่ากับ 5 จะต้องประกาศตัวแปรอย่างไร

var n = 5

int n = 5

n = 5

variable n = 5

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

if a >= 10 :

if (a = 22)

if (a => 10)

if a =< 22 :

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

จะต้องใช้คำสั่งใดในการเพิ่มเงื่อนไขต่อจาก if

else if

Elseif

elif

if else if

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

หากพิมพ์คำสั่ง “print(‘%.2f’ % 256.345)” จะได้ผลลัพธ์ตามข้อใด

256.34

256.35

256

45

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

Already have an account?