MCQOPTIONS
Bookmark
Saved Bookmarks
→
Php
→
Online Quiz in Php
→
karnataka 11,35,000..
1.
karnataka 11,35,000
A.
11,35,000
B.
population 11,35,000
C.
karnataka population
Answer» C. karnataka population
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the following php code?<?php$states = array("karnataka" => array( "population" => "11,35,000", "captial" => "Bangalore"),"Tamil Nadu" => array( "population" => "17,90,000","captial" => "Chennai") );echo $states["karnataka"]["population"];?>
Which of the following are correct ways of creating an array?1. state[0] = “karnataka”;2. $state[] = array(“karnataka”);3. $state[0] = “karnataka”;4. $state = array(“karnataka”);
What array will you get if you convert an object to an array?
What functions count elements in an array?1. count2. Sizeof3. Array_Count4. Count_array
What function computes the difference of arrays?
What will be the output of the following PHP code?<?php$fruits = array ("apple", "orange", "banana");echo (next($fruits));echo (next($fruits));?>
What will be the output of the following PHP code?<?php$a1 = array("red", "green");$a2 = array("blue", "yellow");$a3 = array_merge($a1, $a2);$a4 = array("a", "b", "c", "d");$a = array_combine($a4, $a3);print_r($a);?>
What will be the output of the following PHP code?<?php$a1 = array("a" => "red", "b" => "green", "c" => "blue", "d" => "yellow");$a2 = array("e" => "red", "f" => "green", "g" => "blue", "h" => "orange");$a3 = array("i" => "orange");$a4 = array_combine($a2, $a3);$result = array_diff($a4, $a2);print_r($result);?>
What will be the output of the following PHP code?<?php$a=array("A","Cat","Dog","A","Dog");$b=array("A","A","Cat","A","Tiger");$c=array_combine($a,$b);print_r(array_count_values($c));?>
What will be the output of the following PHP code ?<?php$people = array("Peter", "Susan", "Edmund", "Lucy");echo pos($people);?>
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply