PHP ( Perulangan & Percabangan )

PHP ( Perulangan & Percabangan )

12th Grade

10 Qs

quiz-placeholder

Similar activities

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Common Protocols

Common Protocols

10th - 12th Grade

15 Qs

UH Bab 3 XII 3

UH Bab 3 XII 3

12th Grade

10 Qs

Cuestionario Steve Jobs

Cuestionario Steve Jobs

12th Grade - University

10 Qs

Sistema Operativo Android

Sistema Operativo Android

9th - 12th Grade

10 Qs

scratch

scratch

11th - 12th Grade

10 Qs

BAI 9 LOP 5

BAI 9 LOP 5

12th Grade

8 Qs

PHP ( Perulangan & Percabangan )

PHP ( Perulangan & Percabangan )

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

SMK MARZUKI

Used 30+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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 ! ";

}

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?