
ทดสอบหลังเรียน ภาษาไพทอน ชั้นมัธยมศึกษาปีที่ื 2
Authored by สุวัฒน์ ศิลปะ
Computers
2nd Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1. กำหนดให้ x, y, z = "Orange", "Banana", "Cherry" ถ้าใช้คำสั่ง print(z) จะได้ผลลัพธ์ใด
ก. Orange
ข. Banana
ค. Cherry
ง. "Orange", "Banana", "Cherry"
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2. กำหนดให้ z = float(3) ถ้าใช้คำสั่ง print(z) จะได้ผลลัพธ์ใด
ก. float
ข. 3
ค. 3.0
ง. 9
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
3. กำหนดให้ a = "Hello, World!" ถ้าใช้คำสั่ง print(a[1]) จะได้ผลลัพธ์ใด
ก. H
ข. e
ค. l
ง. o
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
4. กำหนดให้ a = "Hello" ถ้าใช้คำสั่ง print(len(a)) จะได้ผลลัพธ์ใด
ก. 1
ข. 5
ค. H
ง. Hello
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
5. กำหนดให้ list = ["apple", "banana", "cherry"] ถ้าใช้คำสั่ง print(list[-1]) จะได้ผลลัพธ์ใด
ก. apple
ข. banana
ค. cherry
ง. Null
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
6. กำหนดให้ list = [100, 23, 82] ถ้าใช้คำสั่ง list.sort() และสั่ง print(list) จะได้ผลลัพธ์ใด
ก. [3]
ข. [100, 23, 82]
ค. [100, 82, 23]
ง. [23, 82, 100]
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
7. กำหนดให้ list = [100, 23, 82] ถ้าใช้คำสั่ง list.sort(reverse = True) และสั่ง print(list) จะ ได้คำตอบใด
ก. [3]
ข. [100, 23, 82]
ค. [100, 82, 23]
ง. [23, 82, 100]
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?