Contoh penulisan percabangam menggunakan for ....
PHP ( Perulangan & Percabangan )

Quiz
•
Computers
•
12th Grade
•
Hard
SMK MARZUKI
Used 27+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for ($i=0; $i < 5; $i++)
for ($i < 5; $=5; $i++)
for ($i < 5; $i++)
for ( $i < 5; $=0, $i++)
for ( $i++ $i=0; $i < 5;)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Penulisan coding while yang benar adalah ....
$i = 0;
while ($i < 5) {
echo "Hello Word ! <br> " ;
}
$i = 0;
while ($i < 5) {
echo "Hello Word ! <br> " ;
i++;
}
$i = 10;
while (&i < 5) {
echo "Hello Word ! " ;
i++;
}
&i = 0;
while (&i < 5) {
echo "Hello Word ! <br> " ;
i++;
}
$i = 0;
while ($i < 5) do {
echo "Hello Word ! <br> " ;
i++;
}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Penulisan do while yang benar adalah ....
$i=0;
do {
echo "hello word !"
$i++;
}while ($i < 5)
$i=0;
while {
echo "hello word !";
$i++;
}do ($i < 5);
$i=0;
do {
echo "hello word !";
$i+;
}while ($i < 5);
$i=0;
do {
echo "hello word !"
}while ($i < 5);
$i=0;
do {
echo "hello word !";
$i++;
}while ($i < 5);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Di bawah ini yang termasuk percabangan adalah ....
for
while
if else
do while
foreach
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Di bawah ini yang termasuk perulangan adalah ....
If
if else
if else if
for
else if
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sintaks untuk menpilkan perulangan Hello World sebanyak 9 lagi yang benar adalah ....
for ( $i = 1; $i <= 9; $i++) {
echo " Hello World ! ";
}
for ( $i = 1; $i <=10; $i++) {
echo " Hello World ! ";
}
for ( $i = 0; i < 10; i++) {
echo " Hello World ! ";
}
for ( $i = 0; i < 11; i++) {
echo " Hello World ! ";
}
for ( $i = 0; $i < 15; $i++) {
echo " Hello World ! ";
}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Di bawah ini penulisan perulangan for yang benar adalah ....
for ( i = 0; i < 10; i++) {
echo " Hello World ! ";
}
for ( $i = 0; $i < 10; $i++;) {
echo " Hello World ! ";
}
for ( i = 0; i < 10; $i++) {
echo " Hello World ! ";
}
for ( $i = 0; $i < 10; $i++) {
echo " Hello World ! ";
}
for ( $i = 0; i < 10; $i++;) {
echo " Hello World ! ";
}
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Python IF Statements

Quiz
•
9th - 12th Grade
15 questions
Programming python review

Quiz
•
9th - 12th Grade
11 questions
Python function output based KVRDSO lucknow

Quiz
•
11th - 12th Grade
15 questions
Operator dan Kontrol Struktur PHP

Quiz
•
2nd Grade - University
12 questions
Java Strings

Quiz
•
9th - 12th Grade
12 questions
Python_4

Quiz
•
9th - 12th Grade
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
10 questions
C++ Basics Quiz

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade
45 questions
Week 3.5 Review: Set 1

Quiz
•
9th - 12th Grade