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

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

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

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

ในภาษา Python การสร้างฟังก์ชันมีขั้นตอนอะไรบ้าง?

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

ฟังก์ชันแบบใดที่มีการส่งค่าออกจากฟังก์ชัน?

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

ตัวแปรในฟังก์ชันที่ถูกกำหนดในฟังก์ชันเรียกว่าอะไร?

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

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

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

More Like This

Python3 Function Definitions Quiz
10 questions
Python Functions Basics
12 questions

Python Functions Basics

AccommodativeYew avatar
AccommodativeYew
Use Quizgecko on...
Browser
Browser