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

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

11th Grade

15 Qs

quiz-placeholder

Similar activities

สวิตซ์

สวิตซ์

11th Grade

10 Qs

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

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

Assessment

Quiz

Engineering

11th Grade

Hard

Created by

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

Used 2+ times

FREE Resource

AI

Enhance your content

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

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

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

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

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

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

ถูกทุกข้อ

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?