wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Test Python ม.6

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

ตัวแปรภาษาของ Python คือ

a)

Python Language

b)

Python compiler

c)

Python Interpreter

d)

Python Editor

2.

ข้อมูลตัวเลขต่อไปนี้เป็นข้อมูลชนิดใด "45"

a)

str

b)

float

c)

int

d)

input

3.

3.50 เป็นข้อมูลชนิดใด

a)

str

b)

float

c)

int

d)

input

4.

เครื่องหมายใดต่อไปนี้บ่งบอกว่าเป็น สตริง

a)

,

b)

" "

c)

}

d)

]

5.

ข้อใดต่อไปนี้เป็นการตั้งชื่อตัวแปรที่ผิด

a)

AA=20

b)

b_2=20

c)

32a=20

d)

G32=20

6.

name = "Mateo" country = "Ukrain" ถ้าครูให้ name+country ผลลัพธ์ที่ได้คือ

a)

Mateo

b)

Ukrain

c)

MateoUkrain

d)

Mateo+Ukrain

7.

ผลลัพท์คือ

a)

Hello Sumitta

M.6/3

b)

Hello SumittaM.6/3

c)

Hello SumittaM.2

d)

error

8.

ตัวแปร คือ

a)

กระบวนการใช้คอมพิวเตอร์เพื่อกำหนดโครงสร้างของข้อมูลและกำหนดขั้นตอนวิธีเพื่อใช้แก้ปัญหาที่ได้ออกแบบไว้

b)

ชื่อหรือคำที่ภาษาไพธอนสงวนไว้เฉพาะเพื่อใช้เป็นคำสั่ง หรือมีไว้เพื่อเขียนเป็นโครงสร้างของตัวภาษาเอง

c)

กลุ่มของเครื่องหมายหรือสัญลักษณ์ที่ใช้ทำงานเหมือนกับฟังก์ชัน แต่แตกต่างกันตรงไวยากรณ์หรือความหมาย

d)

ชื่อหรือเครื่องหมายที่กำหนดขึ้นสำหรับใช้อ้างถึงค่าที่เก็บในหน่วยความจำ

9.

ข้อใดไม่ใช่ประเภทของข้มูลในการเขียนโปรแกรม

a)

string

b)

integer

c)

character

d)

true

10.

ข้อใดเป็นตัวดำเนินการทางคณิตศาสตร์ทั้งหมด

a)

< , + , //

b)

// , % , **

c)

/= , % , +

d)

** , + , -=

11.

คำสั่ง print ใช้ทำอะไร

a)

เป็นการรับค่าทางคีย์บอร์ด

b)

เพื่อแสดงผลข้อความ ตัวเลข หรือข้อมูลประเภทอื่นๆ ออกทางหน้าจอ

c)

เพื่อแสดงผลข้อความ ตัวเลข หรือข้อมูลประเภทอื่นๆ ออกทางฟังก์ชีน

d)

เป็นการรับค่าจากฟังก์ชัน

12.

print('hello world')

a)

print

b)

hello world

c)

'hello world'

d)

('hello world')

13.

one = 1

two = 2

three = one + two

print(three)

a)

three

b)

3

c)

one

d)

1

14.

one = 1

two = 2

three = one + two

print('three')

a)

three

b)

3

c)

2

d)

two

15.

print(hello world)

a)

print

b)

hello world

c)

'hello world'

d)

Error

16.

one = 1

two = 2

three = one + two

print(three)

three = three + two

a)

3

b)

4

c)

5

d)

6

17.

one = 1

two = 2

three = one + two

three = three + two

print(three)

a)

3

b)

4

c)

5

d)

6

18.

Python ในที่นี้คืออะไร

a)

ภาษาพูด

b)

ภาษามือ

c)

ภาษาเขียน

d)

ภาษาคอมพิวเตอร์

19.

ข้อใดต่อไปนี้เป็นการตั้งชื่อตัวแปรที่ผิด

a)

AA=20

b)

b_2=20

c)

32a=20

d)

G32=20

20.

3.50 เป็นข้อมูลชนิดใด

a)

str

b)

float

c)

int

d)

input