แบบทดสอบที่ 5 เรื่องการรับค่าในภาษาไพทอน (รายกลุ่ม)
Quiz
•
Computers
•
7th Grade
•
Practice Problem
•
Hard
นางสาวมูณีเราะห์ มะนุง
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดคือคำสั่งรับค่าในภาษา Python
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
ผิดทุกข้อ
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
ใบงานที่ 4 ทําความรู้จักกับภาษาไพทอน
Quiz
•
8th Grade
11 questions
массивы
Quiz
•
7th Grade
10 questions
quiz ประวัติคอมพิวเตอร์
Quiz
•
University
15 questions
การใช้แนวคิดเชิงนามธรรม
Quiz
•
6th - 8th Grade
10 questions
Canva เบื้องต้น
Quiz
•
9th - 12th Grade
10 questions
ว30285-ทดสอบเรื่องคำสั่งแบบเงื่อนไข
Quiz
•
10th Grade
10 questions
PC1.8 Evaluate computer program
Quiz
•
9th Grade
10 questions
แบบทดสอบก่อนเรียน การสร้างภาพเคลื่อนไหว ครั้งที่6
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
14 questions
Volume of rectangular prisms
Quiz
•
7th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
11 questions
Valentines Day
Quiz
•
6th - 8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
25 questions
7th Reading STAAR Vocabulary
Quiz
•
6th - 8th Grade
20 questions
Revising & Editing practice
Quiz
•
7th Grade
