Search Header Logo

แบบทดสอบก่อนเรียน การเขียนโปรแกรมแบบเลือกทำ

Authored by yanin panjaroen

Other

9th Grade

Used 2+ times

แบบทดสอบก่อนเรียน การเขียนโปรแกรมแบบเลือกทำ
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

การตรวจสอบแบบใดที่ควรใช้ในกรณีมีหลายทางเลือก

แบบ if

แบบ if...else

แบบ else if

แบบ switch

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดเขียนเงื่อนไขเปรียบเทียบได้ถูกต้อง

if(x=0)

if(x=>0)

if(x<>0)

if(x!=0)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดเขียนเงื่อนไขเปรียบเทียบไม่ถูกต้อง

if(x=y)

if(x!=y)

if(x>0)

if(x>=0)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

ข้อใดคือการตรวจสอบว่าผู้ใช้กดแป้นพิมพ์ตัว [Y]

if(ch=[Y])

if(ch=y && ch == Y)

if(ch=='y' && ch == 'Y')

if(ch=='y' || ch == 'Y')

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดเป็นการตรวจสอบว่า x เป็นจำนวนเต็มบวก

if(x>0)

if(x>=0)

if(x<>0)

if(x!=0)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดคือการตรวจสอบว่า x เป็นเลขคี่

if(x/2 = 0)

if(x/2! = 0)

if(x%2 == 0)

if(x%2 != 0)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

ข้อใดเขียนการตรวจสอบว่าตัวแปร x y และ z มีค่าเท่ากัน

if(x=y=z)

if(x==y==z)

if(x==y && y==z)

if(x==y || y==z)

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?