Search Header Logo

ฟังก์ชัน

Authored by สุวิมล ซ้อนขำ

Computers

9th - 12th Grade

ฟังก์ชัน
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใด ไม่ใช่ ข้อดีของการเขียนโปรแกรมแบบฟังก์ชัน

แยกโปรแกรมย่อยเป็นสัดส่วนที่ชัดเจน

ช่วยให้แก้ไขข้อผิดพลาดของโปรแกรมง่ายขึ้น

ลดจำนวนของซอร์สโค้ดให้สั้นลง

ช่วยกันพัฒนาโปรแกรมได้รวดเร็วมากยิ่งขึ้น

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

จากโปรแกรมข้างต้น ข้อใดคือการเรียกใช้ฟังก์ชัน calN()

calN(n)

calN(name)

calN(number1)

calN(number1,number2)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

จากโปรแกรมข้างต้น ฟังก์ชันใด ไม่มี การส่งค่ากลับโปรแกรมหลัก

printN()

calN()

fibo()

sortN()

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

จากโปรแกรมข้างต้น เมื่อรันโปรแกรม ในบรรทัดที่ 9 ตัวแปร name1 จะมีค่าเป็นอะไร

Art

Oam

Joke

Kit

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

จากโปรแกรมข้างต้น เมื่อรันโปรแกรม ในบรรทัดที่ 10 ตัวแปร name3 จะมีค่าเป็นอะไร

Art

Oam

Joke

Kit

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดกล่าว ไม่ถูกต้อง เกี่ยวกับฟังก์ชัน

ฟังก์ชันไม่จำเป็นต้องมีพารามิเตอร์ก็ได้

ฟังก์ชันสามารถมีพารามิเตอร์ได้หลายค่า

ทุกฟังก์ชันจะต้องมีการส่งค่ากลับโปรแกรมหลัก

สามารถเรียกใช้ฟังก์ชันที่สร้างไว้ในไฟล์อื่นๆ ได้

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่งที่ใช้ในการคืนค่าจากฟังก์ชันใช้คำสั่งใด

sendto

backward

return

end

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?