
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
16 questions
ข้อมูลมีคุณค่า
Presentation
•
9th - 12th Grade
20 questions
Eoconomic
Presentation
•
10th - 12th Grade
12 questions
การใช้อุปกรณ์อิเล็กทรอนิกส์
Presentation
•
University
18 questions
โปรแกรมประมวลผลคำ (Microsoft Word)
Presentation
•
10th Grade
11 questions
การนิเทศแบบเน้นให้คำแนะนำ
Presentation
•
University
11 questions
InternalAudit
Presentation
•
12th Grade
7 questions
คอมเบื้องต้น
Presentation
•
10th Grade
14 questions
Sintaks PHP
Presentation
•
11th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade
22 questions
Revise and Edit Final Review 3
Quiz
•
8th - 12th Grade