Search Header Logo

شابتر 9و10 من تطوير

Authored by Yamna ‘s

Computers

University

Used 2+ times

شابتر 9و10 من تطوير
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In PHP, loops are used to ...............................................................

run a single line of code once

execute the same code block for a specified number of times.

define a function in PHP
store data in an array

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of loops in PHP?

To define variables

To store data

To execute the same block of code multiple times

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

is used when the programmer knows in advance how many times the block of code should be executed

while loop
do-while loop
for loop
foreach loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

is used when we want to execute a block of code as long as a test expression continues to be true.

do while loop
for loop
if statement
while loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

is used when we want to execute a block of code at least once and then as long as a test expression is true.

for loop
while loop
if statement
do-while loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

is used to loop through arrays, using a logic where for each pass

do-while loop
for loop
foreach loop
while loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

are used to store multiple values in a single variable.

Single values

Arrays

Dictionaries
Tuples

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?