
loop for
Authored by noi pc
Computers
1st Grade
Used 7+ times

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
30 sec • 1 pt
กำหนดเงื่อนไขของ loop for ดังด้านล่าง ต้องการทราบว่า loop จะทำงานกี่รอบ
for( j=3 ; j>1 ; j-- )
3
2
4
0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
กำหนดเงื่อนไขของ loop for ดังด้านล่าง ต้องการทราบว่า loop จะทำงานกี่รอบ
for( j=30 ; j<=1 ; j-- )
31
30
29
0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ต้องการคำตอบ 2 4 6 8
ข้อใดถูกต้อง
for( i=1 ; i<=10 ; i=i+2 )
cout << i << endl;
for( i=2 ; i<=10 ; i=i+2 )
cout << i << endl;
for( i=1 ; i<10 ; i=i+2 )
cout << i << endl;
for( i=1 ; i<=10 ; i++ )
cout << i << endl;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
เงื่อนไขของ loop for ต่อไปนี้ ทำงานกี่รอบ
for( i=0 ; i<100 ; i++)
100
101
99
102
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ต้องการให้ loop ทำงาน 50 รอบ ควรเติมข้อใดในช่องว่าง
for( i = 60 ; i .............. ; i -- )
>= 10
>10
>11
<= 10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
เงื่อนไขของ loop for ต่อไปนี้ ทำงานกี่รอบ
for( i=0 ; i<100 ; i++)
100
101
99
102
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ต้องการให้ loop ทำงาน 20 รอบ ควรเติมข้อใดในช่องว่าง
for( i = 30 ; i .............. ; i++ )
<= 50
< 20
>= 10
> 20
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?