New ! Computer Applications MCQ Practise Tests



Looping Structure Model Question Paper 1

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 01:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. What will be displayed in a browser when the following PHP code is executed :
    < ?php
    for (\($\)counter = 10; \($\)counter < 10;
    \($\)counter = \($\)counter + 5){
    echo “Hello”;
    }
    ? >

    (a)

    Hello Hello Hello Hello Hello

    (b)

    Hello Hello Hello

    (c)

    Hello

    (d)

    None of the above

  2. What will be the output of the following PHP code ?
    < ?php
    for (\($\)x = -1; \($\)x < 10;--\($\)x)
    {
    print \($\)x;
    }
    ? >

    (a)

    123456713910412

    (b)

    123456713910

    (c)

    1234567139104

    (d)

    Infinite loop

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

    (a)

    foreach

    (b)

    for

    (c)

    while

    (d)

    do..while

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

    (a)

    foreach

    (b)

    for

    (c)

    while

    (d)

    do..while

  5. ________ loops execute a block of code a specified number of times.

    (a)

    foreach

    (b)

    for

    (c)

    while

    (d)

    do..while

  6. 5 x 2 = 10
  7. Compare For loop and for each loop.

  8. Explain the use of for each loop in PHP.

  9. How "for loop" will execute?

  10. How do..while loop differs form other loop?

  11. How foreach loop will execut?

  12. 5 x 3 = 15
  13. Write the features Looping Structure.

  14. Write the purpose of Looping Structure in PHP

  15. Differentiate While and Do while loops.

  16. Write a PHP program to display color names "using foreach" loop

  17. Draw the For loop Structure and Flow chart

  18. 4 x 5 = 20
  19. Explain Looping Structure in PHP.

  20. Discuss in detail about For each loop.

  21. Explain the process Do while loop.

  22. Explain working of loops in array

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

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

Write your Comment