wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

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

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

Comment ในภาษา Python นั้นเริ่มต้นด้วยเครื่องหมายใด

a)

:

b)

$

c)

@

d)

#

2.

ข้อใดกล่าวถึง Module ได้อย่างถูกต้อง

a)

Module ประกอบด้วย package และ directory

b)

Module ประกอบด้วย คลาส ฟังก์ชั่น และตัวแปรต่าง ๆ

c)

Module ประกอบด้วย คลาส ฟังก์ชั่น และตัวแปรต่าง ๆ และยังสมารถ import โมดูลอื่นเข้ามาในโปรแกรมได้

d)

ถูกทุกข้อ

3.

โครงสร้างภาษา Python ประกอบด้วย

a)

Comment, Statement, Literals, Expressions

b)

Module, Comment, Statement, Literals, Expressions

c)

Statement, Literals, Expressions

d)

Module, Comment, Statement, Indentation and while space, Literals, Expressions

4.

ข้อใดคือส่วนของ Statement

a)

b)

c)

d)

5.

ข้อใดคือส่วนของ Literals

a)

b)

c)

d)

6.

Expressions จะมีกี่แบบ

a)

1

b)

2

c)

3

d)

4

7.

ข้อใด ไม่ใช่ Keywords

a)

If

b)

Else

c)

In

d)

Read

8.

ข้อใดคือความหมายของ Keywords

 

a)

ตัวแปร

b)

ตัวคงที่

c)

คำสงวนไว้ในการเขียนโปรแกรมภาษา Python

d)

เงื่อนไข