New ! Computer Applications MCQ Practise Tests



Introduction to Hypertext Pre-Processor 1 Mark Book Back Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 00:15:00 Hrs
Total Marks : 10

    Multiple Choice Question

    10 x 1 = 10
  1. What does PHP stand for?

    (a)

    Personal Home Page

    (b)

    Hypertext Preprocessor

    (c)

    Pretext Hypertext Processor

    (d)

    Pre-processor Home Page

  2. What does PHP files have a default file extension?

    (a)

    .html

    (b)

    .xml

    (c)

    .php

    (d)

    .ph

  3. A PHP script should start with __________ and end with _________:

    (a)

    < php >

    (b)

    < ? php ? >

    (c)

    < ? ? >

    (d)

    < ?php ? >

  4. Which of the following must be installed on your computer so as to run PHP script?

    (a)

    Adobe

    (b)

    windows

    (c)

    Apache

    (d)

    IIS

  5. We can use _________ to comment a single line?
    i) /?
    ii) //
    iii) #
    iv)  /* */

    (a)

    Only (ii)

    (b)

    (i), (iii) and (iv)

    (c)

    (ii), (iii) and (iv)

    (d)

    Both (ii) and (iii)

  6. 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)

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

  8. 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”);

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

    (a)

    echo “\ \($\)x”;

    (b)

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

    (c)

    echo “/\($\)x”;

    (d)

    echo “\($\)x;

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

    (a)

    \r

    (b)

    \n

    (c)

    /n

    (d)

    /r

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

Reviews & Comments about 12th Standard Computer Applications English Medium - Introduction to Hypertext Pre-Processor 1 Mark Book Back Question Paper and Answer Key 2022 - 2023

Write your Comment