Search Header Logo

ภาษาซี ชุดที่ 3

Authored by อุบลรัตน์ มณีมัย

Engineering

11th Grade

Used 2+ times

ภาษาซี ชุดที่ 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

if (x/2 = 0)

if (x%2! = 0)

if (x%2 == 0)

if (x%2 != 0)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

if (x=y=z)

if (x%2! = 0)ข. if (x==y==z)

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

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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดเขียนการตรวจสอบว่า ch ไม่เท่ากับอักษร n

if (ch <> ‘n’)

if (ch < > ‘n’)

ค. if (ch != ‘n’)

if (ch == “n”)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดกำหนดกรณีเลือกในคำสั่ง switch ได้ถูกต้อง

case < 5

case >= 5

case y

case ‘y’

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ถ้าตัวแปร x = 19 เมื่อรันโปรแกรมตัวแปร x จะมีค่าเท่าใด

18

19

20

21

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดคือลักษณะของโปรแกรมวนรอบทำซ้ำ (Loop)

โปรแกรมที่ทำงานตามลำดับจากบนลงล่าง

โปรแกรมที่ใช้การตัดสินใจควบคุมการทำงาน

โปรแกรมที่วนกลับมาทำซ้ำตำแหน่งเดิม

โปรแกรมที่รับข้อมูลให้ทำงานเพียงหนึ่งครั้ง

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

จุดเด่นของโปรแกรมวนรอบคือข้อใด

ช่วยให้โปรแกรมทำงานเร็วขึ้น

ลดจำนวนบรรทัดของโปรแกรมที่ซ้ำกัน

สามารถนำไปใช้ในโปรแกรมอื่นได้

ถูกทุกข้อ

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?