
1-ข้อสอบการเขียนโปรแกรมเบื้องต้นด้วย Python

Quiz
•
Computers
•
5th Grade
•
Hard
ชฎาธาร สาวะรีพล
Used 5+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
ข้อใดคือวิธีการแสดงผลข้อความ "Hello, World!" ในภาษา Python?
ก. `echo "Hello, World!"`
ข. `println("Hello, World!")`
ค. `System.out.println("Hello, World!")`
ง. `print("Hello, World!")`
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
ข้อใดเป็นคำสั่งที่ใช้รับค่าอินพุตจากผู้ใช้ใน Python?
ก. `get_input()`
ข. `input()`
ค. `scan()`
ง. `prompt()`
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
หากต้องการบวกตัวเลขสองจำนวนจากอินพุตของผู้ใช้ ควรใช้ฟังก์ชันใด?
ก. `add()`
ข. `input()`
ค. `int()`
ง. `input() + input()`
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
ข้อใดคือตัวดำเนินการที่ใช้ตรวจสอบว่าเลขเป็นเลขคู่ใน Python?
ก. `/`
ข. `//`
ค. `%`
ง. `**`
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
ถ้าอุณหภูมิเกิน 30 องศา ต้องการให้โปรแกรมแสดงข้อความ "อากาศร้อน" ควรใช้โครงสร้างควบคุมแบบใด?
ก. `if`
ข. `else`
ค. `for`
ง. `while`
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
ข้อใดแสดงวิธีการใช้ `for-loop` ที่ถูกต้องในการแสดงตัวเลข 1 ถึง 10?
ก. `for i in range(10): print(i)`
ข. `for i in range(1, 11): print(i)`
ค. `for i in range(0, 10): print(i + 1)`
ง. `for i in range(1, 10): print(i + 1)`
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
หากต้องการรับค่าตัวเลขซ้ำๆ จนกว่าจะได้เลข 0 ควรใช้โครงสร้างควบคุมใด?
ก. `if`
ข. `else`
ค. `for`
ง. `while`
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Python, Flowcharts and Malware

Quiz
•
5th Grade
21 questions
Python spr 2

Quiz
•
1st - 5th Grade
19 questions
ProA Desarrollo de Software 3° año

Quiz
•
1st - 12th Grade
20 questions
quiz dasar python

Quiz
•
1st Grade - University
18 questions
Черепаха Python

Quiz
•
5th - 6th Grade
18 questions
lesson 32

Quiz
•
2nd - 5th Grade
18 questions
KS3 Python

Quiz
•
KG - University
20 questions
python (coding)

Quiz
•
3rd - 6th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade