Font size
Worksheetsแบบทดสอบหลังเรียน Python Basic
Total questions: 16
Worksheet time: 13mins
int คือชนิดข้อมูลแบบข้อใด
ข้อความ
ตัวเลขจำนวนเต็ม
ตัวเลขทศนิยม
จำนวนจินตภาพ
float คือชนิดข้อมูลแบบข้อใด
ข้อความ
ตัวเลขจำนวนเต็ม
ตัวเลขทศนิยม
จำนวนจินตภาพ
str คือชนิดข้อมูลแบบข้อใด
ข้อความ
ตัวเลขจำนวนเต็ม
ตัวเลขทศนิยม
จำนวนจินตภาพ
Hello world
This is my name
ข้อใดคือ code ที่ถูกต้อง
x = Hello world
y=This is my name
print(x)
print(y)
x = "Hello world"
y="This is my name"
print[x]
print[y]
a = 'Hello world'
b='This is my name'
print(a)
print(b)
a = 'Hello world'
b='This is my name'
print[x]
print[y]
a=500
print(a)
print(type(a))
ข้อใดตอบถูกต้อง
500.00
int
500
int
500.00
float
500
float
d=3.55
print(d)
print(type(d))
ข้อใดตอบถูกต้อง
3.55
int
35
int
3.55
float
35.5
float
a = "1.265"
print (type(a))
a = int(1.265)
print (type(a))
สุดท้ายแล้วตัวแปร a จะมีชนิดข้อมูลตามข้อใด
int
float,
str
complex
print(30+5)
n=30+5
print(n)
ให้นักเรียนพิมพ์คำตอบต่อกันไปไม่ต้องเว้นช่องว่าง
(a)
num = '34'+'4'
print (num)
ให้นักเรียนพิมพ์คำตอบต่อกันไปไม่ต้องเว้นช่องว่าง
(a)
float คือชนิดข้อมูลแบบข้อใด
ข้อความ
ตัวเลขจำนวนเต็ม
ตัวเลขทศนิยม
จำนวนจินตภาพ
str คือชนิดข้อมูลแบบข้อใด
ข้อความ
ตัวเลขจำนวนเต็ม
ตัวเลขทศนิยม
จำนวนจินตภาพ
a = "1280"
print (type(a))
a = float(1280)
print (type(a))
ข้อใดถูกต้อง
str
int
float
complex
x = "1280"
x = float(1280)
print (type(x))
ให้นักเรียนตอบสั้นๆ เช่น int, float, strหรือ complex
(a)
คำสั่งที่ใช้แสดงผลในภาษา python คือข้อใด
input
printf
output
คำสั่งที่ใช้แสดงผลชนิดข้อมูลในภาษา python คือข้อใด
input(type())
print(type())
output(type())
a = "600"
print (type(a))
หากต้องการเปลี่ยนให้เป็นเลขทศนิยมต้องเขียนคำสั่งตามข้อใด
a = "600"
print (type(a))
a=int(600)
print (type(a))
a = "600"
print (type(a))
a=float(600)
print (type(a))
a = "600"
print (type(a))
a=str(600)
print (type(a))
a = "600"
print (type(a))
a=600
print (type(a))
