Worksheetsบทที่ 3: Input & Operators
Total questions: 10
Worksheet time: 8mins
หากต้องการรับค่าตัวเลขจำนวนเต็มจากผู้ใช้ ควรเขียนโค้ดอย่างไร?
How to check the full value of a code user's code?
num=input('ป้อนตัวเลข:')
num = int(input('ป้อนตัวเลข: '))
num = str(input('ป้อนตัวเลข: '))
เครื่องหมายตรรกศาสตร์ตัวไหน ใช้เชื่อม String เข้าด้วยกัน
Which logical operator is used to join strings together?
(a)
เครื่องหมายใด ที่หมายถึง "ไม่เท่ากัน"
Which sign means "not equal"?
(a)
ข้อใดถูกต้อง 5+3*2=?
Which is correct? 5+3*2=?
(a)
เครื่องหมายข้อใดที่หมายถึง "หารแบบไม่เอาเศษทศนิยม"
Which symbol means "Division without decimals"?
/
%
//
*
10%3 = ?
1
3.333333
3.00
10/3 = ?
3.333333
3.000000
3.3333333333333335
เครื่องหมายใด หมายถึง "ยกกำลัง"
Which symbol means "raised to a power"?
(a)
== ใน python ทำหน้าที่อะไร?
== What does it do in python?
กำหนดค่าตัวแปร Set variable values
มีค่าเท่ากัน Set variable values
เป็นตัวเชื่อมกัน It's a connector.
ตัวดำเนินการเชิงตรรกะในข้อไหน จะให้ผล true เมื่อมี 1 condition เป็นจริง
Which logical operator will give true if 1 condition is true?
and
oxo
or
