
1-ข้อสอบการเขียนโปรแกรมเบื้องต้นด้วย Python
Quiz
•
Computers
•
5th Grade
•
Practice Problem
•
Hard
ชฎาธาร สาวะรีพล
Used 5+ times
FREE Resource
Enhance your content in a minute
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`
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
18 questions
Python Bài 1
Quiz
•
1st - 5th Grade
20 questions
Алгоритмы обработки массивов
Quiz
•
5th Grade
16 questions
Python Basics
Quiz
•
KG - University
15 questions
Python Basics
Quiz
•
KG - University
15 questions
Scope of Variables in Python
Quiz
•
1st Grade - Professio...
15 questions
Занятие 09_03-AppInventor
Quiz
•
4th - 6th Grade
15 questions
Pseudocode and Flowcharts - Computer Science
Quiz
•
KG - 12th Grade
15 questions
Web Designing
Quiz
•
5th - 6th Grade
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
