

เขียนโปรแกรม 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
Media Ajar - ERD XI SIJA
Presentation
•
11th Grade
54 questions
หนังสืออ้างอิง
Presentation
•
10th Grade
51 questions
10 A/ Emergency and Health
Presentation
•
9th - 10th Grade
54 questions
9th Verbs/Tran-Int/Link-Act
Presentation
•
9th Grade
57 questions
Exploring Patterns Everywhere
Presentation
•
9th Grade
52 questions
99-GCSE-PAPER 2 OVERVIEW
Presentation
•
10th Grade
53 questions
Programming Foundations Unit 1 Review
Presentation
•
9th - 12th Grade
55 questions
N5 Assignment revision (SDD)
Presentation
•
10th Grade
Popular Resources on Wayground
15 questions
Grade 3 Simulation Assessment 1
Quiz
•
3rd Grade
22 questions
HCS Grade 4 Simulation Assessment_1 2526sy
Quiz
•
4th Grade
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
20 questions
Math Review
Quiz
•
3rd Grade