ข้อใดคือคำสั่งรับค่าในภาษา Python
แบบทดสอบที่ 5 เรื่องการรับค่าในภาษาไพทอน (รายกลุ่ม)

Quiz
•
Computers
•
7th Grade
•
Hard
นางสาวมูณีเราะห์ มะนุง
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int()
input()
print()
ipod()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ค่าที่ได้เมื่อใช้ฟังก์ชัน input() จะเป็นข้อมูลชนิดใด
Integer / int
Float
String
ถูกทุกข้อ
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค้ดคำสั่งต่อไปนี้ ค่าของตัวแปร age เป็นข้อมูลชนิดใด
age = input("คุณอายุเท่าไหร่")
Integer / int
Float
String
ถูกทุกข้อ
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค้ดคำสั่งต่อไปนี้ จะเกิด Error หรือไม่ และเพราะเหตุใด
age = input("คุณอายุเท่าไหร่")
age = age + 20
Error เพราะผู้ใช้ไม่ระบุอายุ
Error ตัวแปร age เป็นชนิดข้อมูล String ทำให้ไปบวก 20 ไม่ได้
ไม่ Error แต่ผู้ใช้ต้องระบุอายุ
ไม่ Error รันผ่านได้ปกติ
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค้ดคำสั่งต่อไปนี้ ควรเติมคำสั่งใดที่บรรทัดที่ 2 เพื่อไม่ให้เกิด Error
1.age = input("คุณอายุเท่าไหร่")
2._______________________________
3.age = age + 20
age = int(age)
age = int(20)
age = int(input())
age = str(age)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค้ดคำสั่งต่อไปนี้ หากผู้ใช้ป้อนค่า 45.5 ค่าดังกล่าวจะถูกเก็บในตัวแปรใด
w = input("ระบุน้ำหนักของคุณ (ใส่ทศนิยมได้)")
ตัวแปร w
ตัวแปร input
ตัวแปร age
ข้อ 1 และ 2 ถูกต้อง
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค้ดคำสั่งต่อไปนี้ หากผู้ใช้ป้อนค่า 45.5 ค่าดังกล่าวจะเป็นข้อมูลชนิดใด
w = input("ระบุน้ำหนักของคุณ (ใส่ทศนิยมได้)")
Integer/int
String/str
Float
ผิดทุกข้อ
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
ภาษา Python

Quiz
•
7th Grade
10 questions
Python Mid.

Quiz
•
11th Grade
10 questions
Chapter 4 การสืบทอด Class

Quiz
•
University
10 questions
test python

Quiz
•
9th Grade
10 questions
สอบเก็บคะแนน การเขียนโปรแกรมด้วยภาษา Python

Quiz
•
8th Grade
10 questions
ภาษาไพธอน

Quiz
•
University
10 questions
เเบบทดสอบการเขียนโปรเเกรมไพทอน (Python)

Quiz
•
7th Grade
10 questions
4--ข้อสอบ ภาษาไพทอน ม.1

Quiz
•
7th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
43 questions
LinkIt Test - 24-25_BM4_7th

Quiz
•
7th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
14 questions
One Step Equations

Quiz
•
5th - 7th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
37 questions
7th Grade Summer Recovery Review

Quiz
•
7th Grade
18 questions
Informational Text Vocabulary

Quiz
•
7th - 8th Grade