wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python_Basic

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

ข้อใดคือคำสั่งแสดงผลภาษาในPython

a)

print()

b)

printf()

c)

Echo

d)

output

2.

ข้อใดคือคำสั่งรับค่าภาษา

a)

input()

b)

scanf()

c)

insert

d)

Enter

3.

ข้อมูลในภาษาPython มีกี่ประเภท

a)

1 ประเภท

b)

2 ประเภท

c)

3 ประเภท

d)

4 ประเภท

4.

ข้อมูลที่เป็นจำนวนเต็มคือข้อมูลชนิดใด

a)

number

b)

float

c)

list

d)

string

5.

ข้อมูลที่เป็นตัวอักษรคือข้อมูลชนิดใด

a)

number

b)

float

c)

list

d)

string

6.

ข้อมูลที่เป็นทศนิยมคือข้อมูลชนิดใด

a)

number

b)

float

c)

list

d)

string

7.

ข้อใดคือนามสกุลไฟล์ภาษาpython

a)

.python

b)

.c

c)

.pas

d)

.py

8.

ซอฟต์แวร์ที่ใช้ในการพัฒนาโปรแกรมเรียกโดยย่อว่าอะไร

a)

IDE

b)

IOC

c)

IEEE

d)

ABC

9.

คอมพิวเตอร์ทำงานด้วยเลขฐานอะไร

a)

เลขฐาน 1

b)

เลขฐาน 2

c)

เลขฐาน 3

d)

เลขฐาน 4

10.

หากต้องการแปลงตัวหนังสือไปเป็นตัวเลขต้องใช้คำสั่งใด

a)

str()

b)

pow()

c)

int()

d)

float()