Search Header Logo

แบบทดสอบก่อนเรียนภาษาPython

Authored by Nithikorn Nuphadee

Computers

10th Grade

Used 22+ times

แบบทดสอบก่อนเรียนภาษาPython
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

45 sec • 1 pt

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

echo

output

print

printf

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

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

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

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

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

HIDE ANSWER

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

*

\

//

#

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

n=5

n='5'

n="5"

n = int(5)

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

var n = 5

int n = 5

n = 5

variable n = 5

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

StringToInt(a)

int(a)

integer(a)

StringToInteger(a)

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ในภาษาไพทอน ฟังก์ชั่นใดใช้ในการรับค่า

come()

enter()

input()

income()

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?