New ! Computer Applications MCQ Practise Tests



Looping Structure Model Question Paper

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

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

    (a)

    While

    (b)

    Do While

    (c)

    for

    (d)

    None of them

  2. PHP supports which 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

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    4

  8. ________ Structures are useful for writing iteration logics.

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    Looping

  9. _______ loop works only with arrays.

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    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.

    A PHP Error was encountered

    Severity: Warning

    Message: A non-numeric value encountered

    Filename: material/details.php

    Line Number: 1002

    ()

    Do while

  11. 4 x 1 = 4
  12. For loop

  13. (1)

    Simple iteration logics

  14. While loop

  15. (2)

    Complicated looping structure

  16. For Each loop

  17. (3)

    Exit check loop

  18. do while loop

  19. (4)

    Works only with array

    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. Explain the use 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 ‘for’ loop with example.

*****************************************

Reviews & Comments about 12th Computer Applications - Looping Structure Model Question Paper

Write your Comment