New ! Computer Applications MCQ Practise Tests



Looping Structure 1 Mark Creative Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 00:20:00 Hrs
Total Marks : 15

    Multiple Choice Question

    15 x 1 = 15
  1. Most complicated looping structure in PHP is ________

    (a)

    While

    (b)

    Do While

    (c)

    for

    (d)

    None of them

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

    (a)

    foreach

    (b)

    for

    (c)

    while

    (d)

    do..while

  3. Which of the following is an exit check loop?

    (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. What will be displayed in a browser when the following PHP code is executed:
    < ?php
    for ($i=1;$i<=5; $i++)
    {
    echo "$i";
    }
    ? >

    (a)

    12345

    (b)

    1234

    (c)

    123

    (d)

    None of the above

  7. Looping structures are useful for writing ___ logics.

    (a)

    Iteration

    (b)

    Counting

    (c)

    Evaluating

    (d)

    Increment/Decrement

  8. How many categories of looping structures are there?

    (a)

    2

    (b)

    3

    (c)

    4

    (d)

    5

  9. In which of the following loop categories, user know in advance and many times in loops should run?

    (a)

    for loop

    (b)

    for each loop

    (c)

    while loop

    (d)

    Do while loop

  10. Which of the following loop having initializer, Test counter and increment counter?

    (a)

    for loop

    (b)

    for each loop

    (c)

    while loop

    (d)

    Do while loop

  11. Which of the following loop categories works only with arrays?

    (a)

    while loop

    (b)

    Do while loop

    (c)

    for each

    (d)

    for each loop

  12. Which of the following the loop iteration depends on each key value pair in the array?

    (a)

    for loop

    (b)

    while loop

    (c)

    foreach

    (d)

    None of these

  13. Which of the following loop category works only on arrays and objects?

    (a)

    for loop

    (b)

    for each loop

    (c)

    while loop

    (d)

    do while loop

  14. Which of the following loop category will issue an error when you try to use it on a variable with a different data type or an uninitialized variable?

    (a)

    while loop

    (b)

    for each loop

    (c)

    both (a) and (b)

    (d)

    None of these

  15. Which of the following loop execute a block of code for fixed number of times?

    (a)

    for loop

    (b)

    for each loop

    (c)

    while loop

    (d)

    Do while loop

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

Reviews & Comments about 12th Standard Computer Applications English Medium - Looping Structure 1 Mark Creative Question Paper and Answer Key 2022 - 2023

Write your Comment