แบบทดสอบปลายภาคเรียน ม.5  ภาษา Python

แบบทดสอบปลายภาคเรียน ม.5 ภาษา Python

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

นายปรีชา ทองมา

Used 52+ times

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

ส่วนที่ เว้นว่างไว้ควรเติมข้อใดจึงจะถูกต้อง

agv

totalPrice

number

int

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

ข้อใดให้ผลลัพธ์ต่างจากข้ออื่น

print(2/1)

print(4/2)

print(8/4)

print('2.0')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ถ้าต้องการหาค่าของพื้นที่วงกลม แต่ผู้เรียนเขียนโปรแกรมโดยใช้สูตรการหาพื้นที่เป็น 2* 3.1415926*r เรียกว่าเป็นข้อผิดพลาดชนิดใด

รูปแบบของคำสั่งผิด

เขียนคำสั่งผิด

วิธีการผิด

มีข้อถูกมากกว่าหนึ่งข้อ

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดเป็นการกำหนดค่าให้กับตัวแปรที่ผิด

a=c

c=16

32=d

d=d

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

ถ้า a=3 และ b=4 ข้อใดต่อไปนี้เป็นคำสั่งภาษาไพทอนที่ไม่ถูกต้องและทำให้เกิดข้อผิดพลาดขึ้น

a + b

a + 'b'

'a' + 'b'

print('a + b')

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

ข้อใดเป็นข้อมูลต่างชนิดกัน

True และ 4 < 2

2 และ 8/2

"2.0" และ "two"

2 และ 8//2

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

ข้อใดใช้เป็นชื่อตัวแปรไม่ได้

Print

seconditem

2item

salary

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?