🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

ทดสอบความเข้าใจเกี่ยวกับฟังก์ชันและโมดูลในบทเรียน Chapter 5
5 Questions
1 Views

ทดสอบความเข้าใจเกี่ยวกับฟังก์ชันและโมดูลในบทเรียน Chapter 5

Created by
@MajesticNurture

Podcast Beta

Play an AI-generated podcast conversation about this lesson

Questions and Answers

ฟังก์ชันคืออะไร?

  • ฟังก์ชันที่มีการเรียกใช้งานในโปรแกรม
  • ตัวแปรที่ใช้ในฟังก์ชัน
  • โครงสร้างการทำงานที่มีจุด (correct)
  • ฟังก์ชันที่ถูกสร้างขึ้นโดยผู้ใช้
  • ในภาษา Python การสร้างฟังก์ชันมีขั้นตอนอะไรบ้าง?

  • การกำหนดคำสั่งในฟังก์ชัน (correct)
  • การกำหนดพารามิเตอร์
  • การกำหนดค่าเริ่มต้นของพารามิเตอร์
  • การกำหนดชื่อฟังก์ชัน
  • ฟังก์ชันแบบใดที่มีการส่งค่าออกจากฟังก์ชัน?

  • ฟังก์ชันที่มีการกำหนดค่าเริ่มต้นของพารามิเตอร์
  • ฟังก์ชันที่มีคำสั่ง return (correct)
  • ฟังก์ชันที่ไม่มีคำสั่งในตัวเอง
  • ฟังก์ชันที่ไม่มีพารามิเตอร์
  • ตัวแปรในฟังก์ชันที่ถูกกำหนดในฟังก์ชันเรียกว่าอะไร?

    <p>ตัวแปรส่วนตัว</p> Signup and view all the answers

    ตัวแปรที่ถูกกำหนดนอกฟังก์ชันและสามารถเข้าถึงได้ทุกฟังก์ชันเรียกว่าอะไร?

    <p>ตัวแปรส่วนกลาง</p> Signup and view all the answers

    More Quizzes Like This

    Python3 Function Definitions Quiz
    10 questions
    Python Functions Basics
    12 questions

    Python Functions Basics

    AccommodativeYew avatar
    AccommodativeYew
    Python Programming Functions
    10 questions
    Use Quizgecko on...
    Browser
    Browser