
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`
Create a free account and access millions of resources
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
17 questions
История Программирования
Quiz
•
1st - 5th Grade
15 questions
Coding for kids Quiz 3
Quiz
•
3rd - 7th Grade
18 questions
BASICS OF CODING 1
Quiz
•
5th Grade
15 questions
Computer Coding Quiz
Quiz
•
2nd - 8th Grade
20 questions
Бірөлшемді массив (Ғазиз)
Quiz
•
5th Grade
20 questions
Pyhton Input and Output Basics
Quiz
•
5th Grade
20 questions
python (coding)
Quiz
•
3rd - 6th Grade
15 questions
ASK T2 Bab 3 Kod Arahan
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
10 questions
Context Clues
Quiz
•
5th Grade
10 questions
Christmas Trivia for Kids
Quiz
•
5th Grade
21 questions
Christmas Movies
Quiz
•
5th Grade
