Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

บทที่ 3: Input & Operators

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

หากต้องการรับค่าตัวเลขจำนวนเต็มจากผู้ใช้ ควรเขียนโค้ดอย่างไร?

How to check the full value of a code user's code?

a)

num=input('ป้อนตัวเลข:')

b)

num = int(input('ป้อนตัวเลข: '))

c)

num = str(input('ป้อนตัวเลข: '))

2.

เครื่องหมายตรรกศาสตร์ตัวไหน ใช้เชื่อม String เข้าด้วยกัน
Which logical operator is used to join strings together?

(a)  

3.

เครื่องหมายใด ที่หมายถึง "ไม่เท่ากัน"
Which sign means "not equal"?

(a)  

4.

ข้อใดถูกต้อง 5+3*2=?

Which is correct? 5+3*2=?

(a)  

5.

เครื่องหมายข้อใดที่หมายถึง "หารแบบไม่เอาเศษทศนิยม"

Which symbol means "Division without decimals"?

a)

/

b)

%

c)

//

d)

*

6.

10%3 = ?

a)

1

b)

3.333333

c)

3.00

7.

10/3 = ?

a)

3.333333

b)

3.000000

c)

3.3333333333333335

8.

เครื่องหมายใด หมายถึง "ยกกำลัง"

Which symbol means "raised to a power"?

(a)  

9.

== ใน python ทำหน้าที่อะไร?

== What does it do in python?

a)

กำหนดค่าตัวแปร Set variable values

b)

มีค่าเท่ากัน Set variable values

c)

เป็นตัวเชื่อมกัน It's a connector.

10.

ตัวดำเนินการเชิงตรรกะในข้อไหน จะให้ผล true เมื่อมี 1 condition เป็นจริง

Which logical operator will give true if 1 condition is true?

a)

and

b)

oxo

c)

or