
While & Do While Loop
Presentation
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Anupong Kongsa
Used 6+ times
FREE Resource
9 Slides • 11 Questions
1
2
3
4
5
Multiple Choice
$i = 5;
while ($i <= 8) {
echo "Hello ";
$i++;
}
จะแสดงคำว่า Hello ออกมาทั้งหมดกี่ตัว
4
5
7
8
6
7
8
Multiple Choice
$i = 10;
while ($i <= 15) {
echo "$i\n";
$i = $i+2;
}
ตัวเลขตัวสุดท้าย คือเลขอะไร
10
12
14
15
9
10
Multiple Choice
$i = 20;
while ($i >= 10) {
echo "$i\n";
$i = $i-3;
}
ตัวเลขตัวที่ 3 คือเลขอะไร
20
17
15
14
11
12
13
Multiple Choice
$x = 6;
do {
echo "The number is: $x \n";
$x++;
} while ($x <= 5);
ผลลัพธ์คือข้อใด
The number is: 6
The number is: 6 The number is: 7
ไม่แสดงผล
The number is: 5The number is: 6
14
Multiple Choice
while()
{
print "hi";
}
ผลลัพธ์ของโค้ด PHP ต่อไปนี้จะเป็นอย่างไร
infinite loop
hi
no output
error
15
Multiple Choice
do
{
print "hi";
}
while(0);
echo "hello";
ผลลัพธ์ของโค้ด PHP ต่อไปนี้จะเป็นอย่างไร
infinite loop
hihello
hello
error
16
Multiple Choice
$i = 0;
do
{
echo "hi";
$i++;
}
while ($i != 3);
ผลลัพธ์ของโค้ด PHP ต่อไปนี้จะเป็นอย่างไร
hi
hi
hi
hi
hi
hi
hi
hi
no output
17
Multiple Choice
$i = 0
while ($i != 3)
{
echo "hi";
$i++;
}
ผลลัพธ์ของโค้ด PHP ต่อไปนี้จะเป็นอย่างไร
hi
hi
hi
hi
hi
hi
no output
18
Multiple Choice
$i = 0;
while ($i < 3)
{
echo "hi";
$i--;
}
echo "hello";
ผลลัพธ์ของโค้ด PHP ต่อไปนี้จะเป็นอย่างไร
hi
hi
hello
hi
hi
hi
hello
hi
hi
hi
hi
hello
infinite loop
19
Multiple Choice
$i = 0;
while ($i < 3)
{
$i++;
}
echo $i;
ผลลัพธ์ของโค้ด PHP ต่อไปนี้จะเป็นอย่างไร
2
3
0
1
20
Multiple Choice
$i = 0;
do
{
$i++;
}
while ($i < 3);
echo $i;
ผลลัพธ์ของโค้ด PHP ต่อไปนี้จะเป็นอย่างไร
2
3
0
1
Show answer
Auto Play
Slide 1 / 20
SLIDE
Similar Resources on Wayground
29 questions
مسابقة IT Queen
Presentation
•
10th Grade
22 questions
data science process
Presentation
•
11th Grade
21 questions
Pembahasan UKK RPL Paket 1 Tahun 2022 - Daftar Pengguna Baru
Presentation
•
12th Grade
13 questions
ความรู้เบื้องต้นเกี่ยวกับการเขียนโปรแกรมบนมาตรฐานเปิด
Presentation
•
University
13 questions
คอม1
Presentation
•
University
4 questions
เฉลย มาเล่นกันเถอะ (ค่าคงที่สมดุล1)
Presentation
•
11th Grade
11 questions
Test : ภาษาซี เรื่อง Loop
Presentation
•
7th - 12th Grade
27 questions
กระบวนการเทคโนโลยี ม.5
Presentation
•
11th Grade
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
10 questions
Fire Prevention
Quiz
•
9th - 12th Grade
41 questions
US History STAAR Review
Quiz
•
11th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
20 questions
US History EOC STAAR 2022 Review Set 1
Quiz
•
11th Grade
11 questions
Expectations Review
Quiz
•
9th - 12th Grade