Search Header Logo

แบบทดสอบหลังเรียน หน่วยที่ 2 ภาษาซีเบื้องต้น (ครูฟลุ๊ค)

Authored by Chatchawanon Songkram

Computers

9th Grade

Used 19+ times

แบบทดสอบหลังเรียน หน่วยที่ 2 ภาษาซีเบื้องต้น (ครูฟลุ๊ค)
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

ตัวดำเนินการใดไม่ใช่ตัวดำเนินการทางตรรก

>

=

>=

!=

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

การเลือกทำแบบทางเดียวควรใช้คำสั่งใด

if ไม่มี else

if แบบมี else

if..else และ switch

switch

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

การเขียนประโยคใดต่อไปนี้ไม่สามารถใช้กำหนดเงื่อนไขให้กับ if ได้

m = 4.5;

x == 8;

'A' > 'B'

C > D;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ประโยคในข้อใด เป็นการตรวจสอบว่าตัวแปร x อยู่ในช่วงตั้งแต่ 20 ถึง 30

if((x >= 20) && (x <= 30))

if((x >= 20)||(x <= 30))

if(20 < x <30)

if((x <= 10)&&(x >= 20))

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ค่าในข้อใดไม่สามารถใช้เป็นค่าหลัง case ในคำสั่ง switch..case ได้

7

4.5

'7'

'A'

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ถ้าหากในคำสั่ง switch..case ไม่มี break; เมื่อโปรแกรมทำงานจะเกิดอะไรขึ้น

โปรแกรมจะตรวจสอบ case ถัดไป

โปรแกรมจะแจ้งข้อผิดพลาด

กระโดดไปทำคำสั่งหลัง default

กระโดดออกนอก switch..case

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ถ้าหากใช้เครื่องหมาย; หลังการตรวจสอบเงื่อนไขของ if จะเกิดอะไรขึ้น

โปรแกรมจะแจ้งข้อผิดพลาด

โปรแกรมมองว่าเป็นสเตตเมนต์ว่าง

ไม่สามารถคอมไพล์ได้

ไม่มีข้อถูก

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?