Search Header Logo

ภาษาไพธอน

Authored by Sajeewen Pratsri

Computers

University

Used 43+ times

ภาษาไพธอน
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

echo()

Output()

print()

printf()

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ข้อใดต่อไปนี้ไม่เป็นความจริง

ไวยากรณ์ของ Python มีลักษณะคล้ายกับ PHP

Python สามารถใช้สำหรับการพัฒนาเว็บ

Python สามารถทำงานได้หลายแพลตฟอร์ม

Python สามารถใช้เพื่อสร้างหน้าเว็บแบบไดนามิก

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

var n = 5;

int n = 5:

n = 5

variable n = 5

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

StringToInt(a)

int(a)

integer(a)

StringToInteger(a)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

คำสั่งในการวนลูป For ของภาษาไพทอนในข้อใดถูกต้อง

for(a = 0; a < 3 ; a++)

for a in range(3)

for a loop 3 :

for a in range(1, 3) :

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

while loop a < 10

while a < 10 :

while(a < 10)

while loop a < 10 :

7.

MULTIPLE CHOICE QUESTION

20 sec • 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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?