คำเฉพาะใดใช้สร้างฟังก์ชันในภาษา Python, function, def, func, define, ใน def area(w, l): ตัว w และ l เรียกว่าอะไร, อาร์กิวเมนต์, พารามิเตอร์, ค่าคงที่, โมดูล, ใน area(35, 65) ค่า 35 และ 65 เรียกว่าอะไร, อาร์กิวเมนต์, พารามิเตอร์, ตัวแปรภายใน, คำสงวน, ฟังก์ชันที่ไม่มีคำสั่ง return จะส่งค่าใดกลับ, 0, ข้อความว่าง, None, False, def sq(n): return n * n แล้ว print(sq(4) + 1) ได้ผลเท่าใด, 9, 16, 17, 25, def p(x=5): return x * 2 แล้ว print(p()) ได้ผลเท่าใด, 2, 5, 10, เกิดข้อผิดพลาด, ข้อใดอธิบายความต่างของ print กับ return ถูกต้อง, เหมือนกันทุกประการ, return ส่งค่ากลับนำไปใช้ต่อได้ ส่วน print แค่แสดงผล, print ส่งค่ากลับ, return ใช้ได้นอกฟังก์ชันเท่านั้น, ตัวแปรที่สร้างภายในฟังก์ชันเรียกว่าอะไร, Global, Local, Static, Constant, def d(a, b): return a - b แล้ว print(d(b=2, a=10)) ได้ผลเท่าใด, -8, 8, 12, เกิดข้อผิดพลาด, ข้อใดไม่ใช่ประโยชน์ของฟังก์ชัน, ลดชุดคำสั่งซ้ำ, อ่านง่าย, ทำให้โปรแกรมไม่มีข้อผิดพลาดเสมอ, นำกลับมาใช้ใหม่ได้
0%
Function and Function call
Share
Share
by
Ismaalp
Edit Content
Save
Like
Print
Embed
More
Assignments
Leaderboard
Show more
Show less
This leaderboard is currently private. Click
Share
to make it public.
This leaderboard has been disabled by the resource owner.
This leaderboard is disabled as your options are different to the resource owner.
Revert Options
Quiz
is an open-ended template. It does not generate scores for a leaderboard.
Log in required
Visual style
Fonts
Subscription required
Options
Switch template
Show all
Open results
Copy link
QR code
Delete
Continue editing:
?