New ! Computer Applications MCQ Practise Tests



12th Standard English Medium Computer Applications Subject Looping Structure Book Back 1 Mark Questions with Solution Part - II

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 01:00:00 Hrs
Total Marks : 5

    1 Marks

    5 x 1 = 5
  1. Consider the following code
    < ? php
    \($\)count=12;
    do{
    printf(“%d squared=%d
    ",
    \($\)count, pow(\($\)count,2));
    } while(\\($\)count<4);
    ? >
    What will be the output of the code

    (a)

    12 squared 141

    (b)

    12 squared=141

    (c)

    “12 squared=141”

    (d)

    Execution error

  2. 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

  3. 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

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

    (a)

    foreach

    (b)

    for

    (c)

    while

    (d)

    do..while

  5. 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

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

Reviews & Comments about 12th Standard English Medium Computer Applications Subject Looping Structure Book Back 1 Mark Questions with Solution Part - II

Write your Comment