PHP ( Perulangan & Percabangan )

Quiz
•
Computers
•
12th Grade
•
Hard
SMK MARZUKI
Used 29+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Contoh penulisan percabangam menggunakan for ....
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 Wayground
10 questions
12th CA 4 TO 6

Quiz
•
12th Grade
10 questions
Advanced Java Study Guide

Quiz
•
11th - 12th Grade
6 questions
Loops

Quiz
•
10th - 12th Grade
6 questions
Python 2.1 quiz

Quiz
•
9th - 12th Grade
10 questions
Review Kotlin Day 1

Quiz
•
9th - 12th Grade
10 questions
Python Basics Quiz

Quiz
•
7th Grade - University
10 questions
PF Unit 10

Quiz
•
9th Grade - University
10 questions
แบบทดสอบหลังเรียนหน่วยที่ 6 การเขียนโปรแกรมควบคุมการทํางาน

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade