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

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

5th Grade

20 Qs

quiz-placeholder

Similar activities

Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

Grade 5 Unit 1 Review (Shamel school)

Grade 5 Unit 1 Review (Shamel school)

KG - 6th Grade

22 Qs

Цифровой мир смешариков

Цифровой мир смешариков

5th - 8th Grade

15 Qs

scratch 1

scratch 1

3rd - 6th Grade

15 Qs

Pangkalan DATA SQL

Pangkalan DATA SQL

1st - 12th Grade

20 Qs

What about technology? - Codeweek 2022

What about technology? - Codeweek 2022

5th - 11th Grade

20 Qs

Programowanie

Programowanie

1st - 6th Grade

20 Qs

Cơ bản - 3

Cơ bản - 3

1st - 5th Grade

16 Qs

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

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

Assessment

Quiz

Computers

5th Grade

Practice Problem

Hard

Created by

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

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?