Lakshya Education MCQs

Question: What will be the output of the following PHP code?
Options:
A.orangebanana
B.appleorange
C.orangeorange
D.appleapple
Answer: Option A

Submit Answer & Explaination

Earn Reward Points by submitting Detailed Explaination for this Question

More Questions on This Topic :

Question 1. Which function can be used to move the pointer to the previous array position?
  1.    last()
  2.    before()
  3.    prev()
  4.    previous()
Answer: Option C
Question 2. What will be the output of the following PHP code?
  1.    3
  2.    4
  3.    5
  4.    6
Answer: Option D
Question 3. Which function returns an array consisting of associative key/value pairs?
  1.    count()
  2.    array_count()
  3.    array_count_values()
  4.    count_values()
Answer: Option C
Question 4. What will be the output of the following PHP code?
  1.    True
  2.    1
  3.    False
  4.    2
Answer: Option D
Question 5. Which in-built function will add a value to the end of an array?
  1.    array_unshift()
  2.    into_array()
  3.    inend_array()
  4.    array_push()
Answer: Option D
Question 6. What will be the output of the following php code?
  1.    karnataka 11,35,000
  2.    11,35,000
  3.    population 11,35,000
  4.    karnataka population
Answer: Option B

Check all Questions in this Topic : Click HERE