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

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

5th Grade

20 Qs

quiz-placeholder

Similar activities

Minecraft Edu Python

Minecraft Edu Python

3rd - 5th Grade

15 Qs

quiz dasar python

quiz dasar python

1st Grade - University

20 Qs

Programming - Screening Test

Programming - Screening Test

3rd Grade - Professional Development

15 Qs

Lập trình hướng đối tượng

Lập trình hướng đối tượng

1st - 12th Grade

15 Qs

Python _ BT về Xâu

Python _ BT về Xâu

5th Grade

20 Qs

Python_Nhập xuất_If else

Python_Nhập xuất_If else

1st - 5th Grade

20 Qs

Python Intermediate Quiz (Including pygame)

Python Intermediate Quiz (Including pygame)

3rd - 12th Grade

20 Qs

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

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

Assessment

Quiz

Computers

5th Grade

Hard

Created by

ชฎาธาร สาวะรีพล

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?