

เขียนโปรแกรม python เบื้องต้น
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
ครูกนกวรรณ สุวรรณกูฏ
Used 44+ times
FREE Resource
30 Slides • 27 Questions
1
เขียนโปรแกรม python เบื้องต้น
ทบทวนความรู้ก่อนสอบ

2
3
4
Multiple Choice
int คือชนิดข้อมูลแบบข้อใด
ข้อความ
จำนวนจินตภาพ
ตัวเลขจำนวนเต็ม
ตัวเลขทศนิยม
5
6
Multiple Choice
float คือชนิดข้อมูลแบบข้อใด
ข้อความ
จำนวนจินตภาพ
ตัวเลขจำนวนเต็ม
ตัวเลขทศนิยม
7
8
Multiple Choice
str คือชนิดข้อมูลแบบข้อใด
ข้อความ
จำนวนจินตภาพ
ตัวเลขจำนวนเต็ม
ตัวเลขทศนิยม
9
Multiple Choice
ข้อใดคือการกำหนดค่า "apple"ให้กับตัวแปร
name = print( "apple")
input("apple")
name = "apple"
name = input("apple")
10
11
Multiple Choice
คำสั่งที่ใช้แสดงผลในภาษา python คือข้อใด
input
printf
output
12
Multiple Choice
ข้อใดคือผลลัพธ์ จาก code ที่กำหนดให้ print(Hello world!)
Hello world!
SyntaxError
Hello world
print(Hello world!)
13
Multiple Choice
Hello world
This is my name
ข้อใดคือ code ที่ถูกต้อง
x = Hello world
y=This is my name
print(x)
print(y)
x = "Hello world"
y="This is my name"
print[x]
print[y]
a = 'Hello world'
b='This is my name'
print(a)
print(b)
a = 'Hello world'
b='This is my name'
print[x]
print[y]
SHOW ANSWER
14
15
16
Fill in the Blanks
Type answer...
17
Fill in the Blanks
Type answer...
18
19
20
Multiple Choice
ข้อใดคือผลลัพธ์จาก code ที่กำหนดให้ print("Hello world!" * 2)
Hello world world!
Hello world!Hello world!
Hello world! * 2
Hello world!Hello world! * 2
21
22
23
24
Open Ended
y=a2+b2 แปลงนิพจน์ที่กำหนดให้ ให้เป็นคำสั่ง
25
Open Ended
x=(52+32)−422 แปลงนิพจน์ที่กำหนดให้เป็น คำสั่ง
26
27
Multiple Choice
ผลลัพธ์ที่ได้จาก code print(3*5+4) คือข้อใด
154
19
27
354
28
Multiple Choice
ผลลัพธ์ที่ได้จาก code print("Hello" + str(2) + "world!") คือข้อใด
"Hello" + str(2) + "world!"
Hello2world!
Helloworld!
Hellostr2world!
29
30
31
32
33
Multiple Choice
คำสั่งที่ใช้แสดงผลชนิดข้อมูลในภาษา python คือข้อใด
input(type())
output(type())
printf(type())
print(type())
34
Multiple Choice
a=500
print(a)
print(type(a))
ข้อใดตอบถูกต้อง
500.00
int
500
int
500.00
float
500
float
35
Multiple Choice
d=3.55
print(d)
print(type(d))
ข้อใดตอบถูกต้อง
3.55
int
35
int
3.55
float
35.5
float
36
Fill in the Blanks
Type answer...
37
Multiple Choice
a = "1280"
print (type(a))
a = float(1280)
print (type(a))
ข้อใดถูกต้อง
str
int
float
complex
38
Multiple Choice
a = "600"
print (type(a))
หากต้องการเปลี่ยนให้เป็นเลขทศนิยมต้องเขียนคำสั่งตามข้อใด
a = "600"
print (type(a))
a=int(600)
print (type(a))
a = "600"
print (type(a))
a=float(600)
print (type(a))
a = "600"
print (type(a))
a=str(600)
print (type(a))
a = "600"
print (type(a))
a=600
print (type(a))
39
40
41
42
Multiple Choice
Input first number: 2
Input second number: 3
Input third number: 10
x + y + z = 2310
จากผลลัพธ์ที่กำหนดให้ หากจะเขียน code จะเขียนได้ตามข้อใด
x = int(input(“intput first number: ”))
y = float(input(“intput second number: ”))
z = input(“intput third number: ”)
print(“x + y + z = “,x+y+z)
x = int(input(“intput first number: ”))
y = float(input(“intput second number: ”))
z = float(input(“intput third number: ”))
print(“x + y + z = “,x+y+z)
x = input(“intput first number: ”)
y = input(“intput second number: ”)
z = input(“intput third number: ”)
print(“x + y + z = “,x+y+z)
x = int(input(“intput first number: ”))
y = int(input(“intput second number: ”))
z = int(input(“intput third number: ”))
print(“x + y + z = “,x+y+z)
43
Multiple Choice
ข้อใดคือผลลัพธ์จากข้อมูลที่ผู้ใช้กรอกเข้ามา คือ 15 และ 20
"num1 + num2"
1520
35
5
44
Multiple Choice
Enter your name: kanokwan
Hello kanokwan
Enter your age: 20
Your age is 20 years old.
จากผลลัพธ์ที่กำหนดให้ หากจะเขียน code จะเขียนได้ตามข้อใด
name = input("Enter your name: ")
print("Hello ",name)
age = input("Enter your age: ")
print("Your age is ",age," yerar old")
name = input("Enter your name: ")
print("Hello ",name)
age = int(input("Enter your age: "))
print("Your age is ",age," yerar old")
name = input("Enter your name: ")
age = input("Enter your age: ")
print("Hello ",name)
print("Your age is ",age," yerar old")
name = input("Enter your name: ")
age = int(input("Enter your age: "))
print("Hello ",name)
print("Your age is ",age," yerar old")
45
Multiple Choice
Input first number: 2
Input second number: 3.0
Input third number: 10
x + y + z = 15.0
จากผลลัพธ์ที่กำหนดให้ หากจะเขียน code จะเขียนได้ตามข้อใด
x = input("intput first number: ")
y = input("intput second number: ")
z = input("intput third number: ")
print("x + y + z = ",x+y+z)
x = int(input("intput first number: "))
y = int(input("intput second number: "))
z = int(input("intput third number: "))
print("x + y + z = ",x+y+z)
x = float(input("intput first number: "))
y = float(input("intput second number: "))
z = int(input("intput third number: "))
print("x + y + z = ",x+y+z)
x = int(input("intput first number: "))
y = float(input("intput second number: "))
z = int(input("intput third number: "))
print("x + y + z = ",x+y+z)
46
47
48
49
50
51
52
53
54
55
Multiple Choice
code ข้อใดที่สามารถทำงานได้โดยไม่เกิด error
IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":
56
Multiple Choice
ผลลัพธ์จาก code นี้จะเป็นอย่างไรหากผู้ใช้กรอกตัวเลข 0 เข้ามา
โปรแกรมไม่ทำงาน
Invalid Data
No Data
i == 0
57
Multiple Choice
ผลลัพธ์จาก code นี้จะเป็นอย่างไรหากผู้ใช้กรอกตัวเลข 0 เข้ามา
Zero
Non-Zero
เกิด error
i ==0
เขียนโปรแกรม python เบื้องต้น
ทบทวนความรู้ก่อนสอบ

Show answer
Auto Play
Slide 1 / 57
SLIDE
Similar Resources on Wayground
53 questions
Tech+ 4.1 Cybersecurity
Presentation
•
10th Grade
54 questions
Lesson 3 - Beginner - Chị Laura
Presentation
•
KG
51 questions
อาชีพในยุคดิจิทัล
Presentation
•
9th - 12th Grade
52 questions
Unit 5: Work and Energy
Presentation
•
9th Grade
49 questions
Paikot na Daloy ng Ekonomiya
Presentation
•
9th Grade
51 questions
الهبة
Presentation
•
9th Grade
51 questions
สอบกลางภาค เคมีภาคเรียนที่ 1 ม.4
Presentation
•
10th Grade
50 questions
Malware
Presentation
•
10th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade