Lakshya Education MCQs

Question: What will be the output of the following PHP code ?
Options:
A.red
B.green
C.red green
D.error
Answer: Option B

Submit Answer & Explaination

Earn Reward Points by submitting Detailed Explaination for this Question

More Questions on This Topic :

Question 1. What will be the output of the following PHP code ?
  1.    red
  2.    green
  3.    red green
  4.    redgreen
Answer: Option D
Question 2. What will be the output of the following PHP code ?
  1.    redgreen
  2.    red green
  3.    0
  4.    error
Answer: Option C
Question 3. What will be the output of the following PHP code ?
  1.    red1
  2.    red 1
  3.    0
  4.    1
Answer: Option D
Question 4. What will be the output of the following PHP code ?
  1.    red green
  2.    red
  3.    green
  4.    error
Answer: Option D
Question 5. What will be the output of the following PHP code ?
  1.    red red
  2.    red
  3.    error
  4.    nothing
Answer: Option C
Question 6. What will be the output of the following PHP code ?
  1.    red
  2.    $color
  3.    red
  4.    Error
Answer: Option B

Check all Questions in this Topic : Click HERE