Search Header Logo

loop for(C)

Authored by MaThineE S.

Professional Development, Computers

9th Grade - University

Used 20+ times

loop for(C)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

ข้อใดต่อไปนี้ คือ จำนวนรอบของการทำงานจากชุดคำสั่งที่กำหนดให้?

for(x=1: x<=10 : x+2) printf(“%d”,x);

5 รอบ

6 รอบ

15 รอบ

12 รอบ

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

ถ้าหากเขียนชุดคำสั่งต่อไปนี้

for(i=1: i<10: i++)

printf("Ohh \n");

ผลลัพธ์ จะพิมพ์คำว่า Ohh กี่รอบ

1 รอบ

9 รอบ

10 รอบ

11 รอบ

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

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

>

<

=

!=

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

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

m = 4.5

A <= 59

m == 4.5

C > D

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

ตัวกระทำ เปรียบเทียบ ++ หมายถึงอะไร ?

ลดลงทีละ 1

เพิ่มขึ้นทีละ 1

ลดลงทีละ 2

เพิ่มขึ้นทีละ 2

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

เงื่อนไขจำนวนรอบ ในคำสั่ง loop

มีหน้าที่อะไร ?

จุดสิ้นสุด เป็นการกำหนดเงื่อนไข

เพิ่มบอกจุดสิ้นสุดของจำนวนรอบ

การบวกจำนวนรอบไปเรื่อย ๆ

เป็นการกระทำที่ทำให้เกิดการนับรอบต่อไป

การกำหนดตัวแปรเพิ่ม

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

ถ้าหากตัวแปร a มีเลขจำนวนเต็มอยู่ ถ้าหากต้องการเพิ่ม a อีก 1 ค่าจะทำอย่างไร

a++;

a+=1;

a= a+1;

ถูกทุกข้อ

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?