Tag: Coding

  • PHP Coding Questions and Answers – Arrays – 4

    PHP Coding Questions and Answers – Arrays – 4

    PHP Multiple Choice Questions & Answers (MCQs) focuses on “Arrays – 4”. Q 1. What will be the output of the following PHP code? A. I like Volvo BMW and Toyota.B. I like Volvo, BMW and Toyota)C. I like Volvo, BMW and Toyota.D. I like. Volvo.,. BMW. and. Toyota) Show Answer Answer:-C. I like Volvo,…

  • PHP Coding Questions and Answers – Arrays – 3

    PHP Coding Questions and Answers – Arrays – 3

    PHP Multiple Choice Questions & Answers (MCQs) focuses on “Arrays – 3”. Q 1. What will be the output of the following PHP code? <?php $age = array(“Harry” => “21”, “Ron” => “23”,”Malfoy” => “21”); array_pop($age); print_r(array_change_key_case($age, CASE_UPPER)); ?> A. Array ( [HARRY] => 21 [RON] => 23 )B. Array ( [HARRY] => 21 [RON]…

  • PHP Coding Questions and Answers – Arrays – 2

    PHP Coding Questions and Answers – Arrays – 2

     PHP Multiple Choice Questions & Answers (MCQs) focuses on “Arrays – 2”. Q 1. What will be the output of the following PHP code? <?php $cars = array(“Volvo”, “BMW”, “Toyota”); echo “I like ” . $cars[2] . “, ” . $cars[1] . ” and ” . $cars[0] . “.”; ?> A. I like Volvo, Toyota…

  • PHP Coding Quizs Question & Answers Arrays – 4

    Q 1. What will be the output of the following PHP code? A. Array ( [0] => Array ( [1] => Volvo [2] => BMW ) [1] => Array ( [1] => Toyota [2] => Honda ) [2] => Array ( [1] => Mercedes [2] => Opel ) ) B. Array ( [1] => Array…

  • PHP Coding Quizs Question & Answers Arrays – 3

    Q 1. What will be the output of the following PHP code? A. Key = Harry, Value = 21 Key = Ron, Value = 21 Key = Malfoy, Value = 23 B. Key = Harry, Value = 21 Key = Ron, Value = 19 Key = Malfoy, Value = 23 C. Key = Harry, Value…

You cannot copy content of this page