Home / CSE MCQs / PHP MCQs :: Discussion

Discussion :: PHP MCQs

  1. We can use ___ to comment a single line?
    i) /?
    ii) //
    iii) #
    iv) /* */
  2. A.
    Only (ii)
    B.
    (i), (iii) and (iv)
    C.
    (ii), (iii) and (iv)
    D.
    Both (ii) and (iv)

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    /* */ can also be use to comment just a single line although it is used for paragraphs. // and # are used only for single line comment.


Be The First To Comment