New ! Computer Applications MCQ Practise Tests



12th Standard English Medium Computer Applications Subject Introduction to Hypertext Pre-Processor 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. Which of the following PHP statements will store 41 in variable num?
    (i) num = 41
    (ii) num = 41
    (iii) echcho num
    (iv) echo 41

    (a)

    Both (i) and (ii)

    (b)

    All of the mentioned

    (c)

    Only (iii)

    (d)

    Only (i)

  2. What will be the output of the following PHP code?
    < ?php
    \($\) num = 1;
    \($\) num1 = 2;
    print \($\) num . “+”. \($\) num 1 ;
    ? >

    (a)

    3

    (b)

    1 + 2

    (c)

    1.+.2

    (d)

    Error

  3. Which of the following PHP statements will output Hello World on the screen?

    (a)

    echo (“Hello World”);

    (b)

    print (“Hello World”);

    (c)

    printf (“Hello World”);

    (d)

    sprintf (“Hello World”);

  4. Which statement will output \($\)x on the screen?

    (a)

    echo “\ \($\)x”;

    (b)

    echo “\($\)\($\)x”;

    (c)

    echo “/\($\)x”;

    (d)

    echo “\($\)x;

  5. Which of the below symbols is a newline character?

    (a)

    \r

    (b)

    \n

    (c)

    /n

    (d)

    /r

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

Reviews & Comments about 12th Standard English Medium Computer Applications Subject Introduction to Hypertext Pre-Processor Book Back 1 Mark Questions with Solution Part - II

Write your Comment