Search Header Logo

Python Modules

Authored by Chanyoot Meepoh

Computers

10th - 12th Grade

Used 32+ times

Python Modules
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

ข้อใดสรุปประเด็นสำคัญของ Module ได้ชัดเจนที่สุด

การแยกโค้ดไว้อีกไฟล์ แล้วเรียกใช้งานจากอีกไฟล์

การสร้างฟังก์ชัน

การประกาศตัวแปร

การเรียกใช้งานตัวแปร

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

จากโค้ดบรรทัดที่ 3 โค้ดใดเป็นการเรียกใช้โมดูล

circle

ar

area

print

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

คำสั่งใดเป็นการเรียกใช้งานไฟล์ โมดูล

import

print

circcle

area

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

def get_circle_area(radius):

return 22/7 * (radius * 2)

จากโค้ดข้างต้น return หมายถึง

ส่งค่ากลับ จากการคำนวณ

22/7 * (radius * 2)

ส่งค่าเข้าฟังก์ชัน

นำเข้าโมดูล

วนรอบ

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

ข้อใดไม่เป็นเหตุผลในการใช้งานโมดูล

เก็บโค้ดที่ใช้บ่อย แยกไฟล์ไว้เรียกใช้งาน

ลดการเขียนโค้ดซ้ำๆ

ให้โปรแกรมเล็กลง

เพื่อใช้ในการวนรอบ

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?