#### Looping Structure Model Question Paper

12th Standard EM

Reg.No. :
•
•
•
•
•
•

Computer Applications

Time : 01:30:00 Hrs
Total Marks : 50
5 x 1 = 5
1. Most complicated looping structure is

(a)

While

(b)

Do While

(c)

For

(d)

None of them

2. PHP supports four types of looping techniques;

(a)

for loop

(b)

while loop

(c)

foreach loop

(d)

all the above

3. What will be the output of the
following PHP code ?
< ?php
for (x = 1; x < 10;++x)
{
print “*\t”;
}
? >

(a)

**********

(b)

*********

(c)

***********

(d)

Infinite loop

4. The ________ construct provides an easy way to iterate over arrays

(a)

foreach

(b)

for

(c)

while

(d)

do..while

5. Which of the following is an entry check loop?

(a)

foreach

(b)

for

(c)

while

(d)

do..while

6. 4 x 1 = 4
7. There are __________ types of loops in PHP

()

4

8. ________ Structures are useful for writing iteration logics.

()

Looping

9. _______ loop works only with arrays.

()

For each

10. _________ loop always run the statement inside of the loop block at the first time execution and then it is checking the condition whether true or false.

()

Do while

11. 4 x 1 = 4
12. For loop

13. (1)

Exit check loop

14. While loop

15. (2)

Complicated looping structure

16. For Each loop

17. (3)

Works only with array

18. do while loop

19. (4)

Simple iteration logics

6 x 2 = 12
20. Define Looping Structure in PHP

21. What is For each loop in PHP?

22. List out Looping Structure in PHP.

23. Write Syntax of For each loop in PHP.

24. Compare For loop and for each loop.

25. Usage of for each loop in PHP

26. 5 x 3 = 15
27. Write the features Looping Structure.

28. Differentiate For each and While loop.

29. Differentiate While and Do while loops.

30. Write a php program to display the string "Hello World" 5 times using "for loop".

31. Draw the For loop Structure and Flow chart

32. 2 x 5 = 10
33. Explain Looping Structure in PHP.

34. Explain concepts of for loop with example