Sail E0 Webinar

MCQs

Total Questions : 53 | Page 4 of 6 pages
Question 31. What will be the output of the following PHP code?
  1.    Array ( [A] => 2 [Cat] => 1 [Dog] => 2 )
  2.    Array ( [A] => 2 [Cat] => 2 [Dog] => 1 )
  3.    Array ( [A] => 1 [Cat] => 1 [Dog] => 2 )
  4.    Array ( [A] => 2 [Cat] => 1 [Dog] => 1)
 Discuss Question
Answer: Option A. -> Array ( [A] => 2 [Cat] => 1 [Dog] => 2 )
Question 32. What will be the output of the following PHP code?
  1.    Array ( [0] => red [1] => green)
  2.    Array ( [0] => blue [1] => yellow [2] => red [3] => green )
  3.    Array ( [0] => red [1] => green [2] => blue [3] => yellow )
  4.    Array ( [0] => blue [1] => yellow )
 Discuss Question
Answer: Option C. -> Array ( [0] => red [1] => green [2] => blue [3] => yellow )
Question 33. What will be the output of the following PHP code?
  1.    Array ( [d] => yellow )
  2.    Array ( [c] => blue )
  3.    Array ( [a] => red )
  4.    Array ( [e] => yellow )
 Discuss Question
Answer: Option A. -> Array ( [d] => yellow )
Question 34. What will be the output of the following PHP code?
  1.    green
  2.    red
  3.    blue
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> red
Question 35. What will be the output of the following PHP code?
  1.    Array ( [0] => red [1] => green )
  2.    Array ( [0] => green [1] => blue )
  3.    Array ( [0] => red [1] => blue )
  4.    Array ( [0] => blue [1] => blue )
 Discuss Question
Answer: Option A. -> Array ( [0] => red [1] => green )
Question 36. What will be the output of the following PHP code?
  1.    mango
  2.    error
  3.    peach
  4.    0
 Discuss Question
Answer: Option B. -> error
Question 37. What will be the output of the following PHP code?
  1.    Array ( [1] => apple [0] => mango [2] => peach [3] => pear )
  2.    Array ( [0] => apple [1] => mango [2] => peach [3] => pear )
  3.    Error
  4.    Array ( [1] => apple [0] => mango [3] => peach [2] => pear )
 Discuss Question
Answer: Option A. -> Array ( [1] => apple [0] => mango [2] => peach [3] => pear )
Question 38. What will be the output of the following PHP code?
  1.    Array ( [0] => picture1.JPG [1] => Picture10.jpg [2] => picture2.jpg [3] => picture20.jpg )
  2.    Array ( [0] => picture1.JPG [1] => picture2.jpg [2] => Picture10.jpg [3] => picture20.jpg )
  3.    Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture2.jpg [3] => picture20.jpg )
  4.    Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture20.jpg [3] => picture2.jpg )
 Discuss Question
Answer: Option C. -> Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture2.jpg [3] => picture20.jpg )
Question 39. What will be the output of the following PHP code?
  1.    Array ( [0] => A [1] => J [2] => Q [3] => K [4] => 2 [5] => 3 [6] => 4 [7] => 5 [8] => 6 [9] => 7 [10] => 8 [11] => 9 [12] => 10 )
  2.    Array ( [0] => A [1] => 2 [2] => J [3] => 3 [4] => Q [5] => 4 [6] => K [7] => 5 [8] => 6 [9] => 7 [10] => 8 [11] => 9 [12] => 10 )
  3.    Error
  4.    Array ( [0] => 2 [1] => 3 [2] => 4 [3] => 5 [4] => 6 [5] => 7 [6] => 8 [7] => 9 [8] => 10 [9] => A [10] => J [11] => Q [12] => K )
 Discuss Question
Answer: Option A. -> Array ( [0] => A [1] => J [2] => Q [3] => K [4] => 2 [5] => 3 [6] => 4 [7] => 5 [8] => 6 [9] => 7 [10] => 8 [11] => 9 [12] => 10 )
Question 40. What will be the output of the following PHP code?
  1.    Array ( [0] => peach )
  2.    Array ( [0] => apple [1] => mango [2] => peach )
  3.    Array ( [0] => apple [1] => mango )
  4.    Array ( [0] => peach [1] => pear [2] => orange )
 Discuss Question
Answer: Option D. -> Array ( [0] => peach [1] => pear [2] => orange )

Latest Videos

Latest Test Papers