Search Header Logo

ข้อสอบ วิชา วิทยาการคำนวณ ม.2/4 ปี 2/67

Authored by ดนุพล นิโอ๊ะ

Education

12th Grade

Used 3+ times

ข้อสอบ วิชา วิทยาการคำนวณ ม.2/4 ปี 2/67
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่งใดใช้ในการแสดงข้อความบนหน้าจอในภาษาไพทอน

echo()
write()
print()
output()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่งใดใช้รับข้อมูลจากผู้ใช้งาน

input()
read()
scan()
get()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ผลลัพธ์ของโปรแกรมต่อไปนี้คืออะไร x = 10 if x > 5: print("Hello") else: print("Goodbye")

Hello
Goodbye
ไม่มีผลลัพธ์
เกิดข้อผิดพลาด

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่งใดถูกต้องสำหรับการตรวจสอบว่าตัวแปร x มีค่าเท่ากับ 10

if x = 10:
if x == 10:
if x === 10:
if x != 10:

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

โปรแกรมต่อไปนี้จะมีผลลัพธ์เป็นเท่าไร a = 5 b = 3 print(a + b)

2
8
15
เกิดข้อผิดพลาด

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ถ้าใช้คำสั่ง input() ในการรับค่า ตัวแปรที่ได้จะมีชนิดข้อมูลเป็นอะไร

int
float
str
bool

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

โปรแกรมต่อไปนี้มีผลลัพธ์เป็นอะไร x = 10 if x < 5: print("Low") else: print("High")

Low
High
ไม่มีผลลัพธ์
เกิดข้อผิดพลาด

Access all questions and much more by creating a free account

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?