1. True
2.False
3.Depend on program
4.Keys does not exist in array
Answer:1
1. True
2.False
3.Depend on program
4.Keys does not exist in array
Answer 11.1
2.2
3.0
4. -1
Answer 31.2
2.3
3.4
4.5
Answer 41.guava
2.banana
3.orange
4.pine-apple
Answer 31.Function is used to print the array in readable format.
2. Adds elements to the beginning of the array and returns the size of array
3.Function can be used to verify if a variable is an array. Returns TRUE or FALSE
4.Adds elements to the end of the array and returns the size of array.
Answer 21.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 )
Answer 11.3
2.4
3.5
4.6
Answer 41. True
2.1
3.False
4.2
Answer 41.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)
Answer 11.Array ( [0] => red [1] => green )
2.Array ( [0] => green [1] => blue )
3. Array ( [0] => red [1] => blue )
4.Array ( [0] => blue [1] => blue )
Answer 11.Array ( [a] => blue [b] => yellow [c] => red [d] => green )
2.Array ( [0] => blue [1] => yellow [2] => red [3] => green )
3.Array ( [0] => red [1] => green [2] => blue [3] => yellow )
4.Array ( [a] => red [b] => green [c] => blue [d] => yellow )
Answer 41. a) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 )
2.Array ( [peter] => 35 [ben] => 37 [joe] => 43 )
3.Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 )
4.Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 )
Answer 31.Array ( [0] => Array ( [1] => Volvo [2] => BMW ) [1] => Array ( [1] => Toyota [2] => Honda ) [2] => Array ( [1] => Mercedes [2] => Opel ) )
2.Array ( [1] => Array ( [1] => Volvo [2] => BMW ) [2] => Array ( [1] => Toyota [2] => Honda ) [3] => Array ( [1] => Mercedes [2] => Opel ) )
3.Array ( [0] => Array ( [0] => Volvo [1] => Volvo ) [1] => Array ( [0] => BMW [1] => BMW ) [2] => Array ( [0] => Toyota [1] => Toyota ) )
4.Array ( [0] => Array ( [0] => Volvo [1] => BMW ) [1] => Array ( [0] => Toyota [1] => Honda ) [2] => Array ( [0] => Mercedes [1] => Opel ) )
Answer 41. I like Volvo, Toyota and BMW
2. I like Volvo, BMW and Toyota
3.I like BMW, Volvo and Toyota
4.I like Toyota, BMW and Volvo
Answer 41.Array ( Peter Ben Joe )
2. Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 )
3. Array ( 35 37 43 )
4.Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” )
Answer 21.Sam is the brother of Bob and Jack
2.Samis the brother of Bob and Bob
3.Sam is the brother of Jack and Bob
4.Error
Answer 21.array_unshift()
2.into_array()
3.inend_array()
4.array_push()
Answer 41. array_unshift()
2. into_array()
3.inend_array()
4. array_push()
Answer 41. iii) and iv)
2. ii) and iii)
3.Only i)
4.ii), iii) and iv)
Answer 11. A. single dimensional array
2.multi dimensional array
3.Both A and B
4.None of the above
Answer 21.Faster
2.Slower
3.Stable
4.None of the above
Answer 11. 0
2.1
3.-1
4.2
Answer 11. php 7.0
2. 3 December 2019
3. python 3.8.2
4.24 December 2019
Answer 21.A
2.B
3.C
4.Error
Answer 21.Rearranges the array elements in the reverse order
2.Is used to convert the keys to values and values to keys.
3.Can be used to fetch the keys present in the array
4.Returns number of elements in the array
Answer 21.Returns all the values of the respective keys present in the passed array
2.Returns number of elements in the array
3.Can be used to fetch the keys present in the array
4. Returns the values and the frequency of each value in form of an array.
Answer 41.Function is used to print the array in readable format.
2.Adds elements to the beginning of the array and returns the size of array.
3.Function can be used to verify if a variable is an array. Returns TRUE or FALSE
4.Adds elements to the end of the array and returns the size of array.
Answer 31.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 )
Answer 31.Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA )
2.Array ( [0] => KA [2] => CA [4] => TA )
3.Array ( [1] => IA [3] => GA )
4.Array ( [1] => LA [3] => MA )
Answer 21.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 )
Answer 41.Error
2.Array ( [0] => apple [1] => mango [2] => peach )
3. Array ( [0] => apple [1] => mango ) d)
4.Array ( [0] => pear [1] => orange
Answer 31.orangebanana
2.appleorange
3.orangeorange
4.appleapple
Answer 11.mango
2.error
3.peach
4.0
Answer 21.4hello2
2.4
3.2
4.6
Answer 41. 0
2.Garbage value
3.3
4.No Output
Answer 41.india Array ( [b] => Brazil )
2.india Array ( [a] => brazil )
3.china Array ( [a] => india )
4.china Array ( [a] => brazil )
Answer 11.green
2.red
3.redArray( [c] => green [c] => blue )
4.redArray( [b] => green [c] => blue )
Answer 41.Array ( [A] => 5 [Cat] => 2 [Dog] => 2 [Tiger] => 1 )
2.Array ( [A] => 2 [Cat] => 2 [Dog] => 1 [Tiger] => 1 )
3.Array ( [A] => 6 [Cat] => 1 [Dog] => 2 [Tiger] => 1 )
4.Array ( [A] => 2 [Tiger] => 1 )
Answer 41.Array ( [1] => hello [4] => hello [5] => php ) Array ( [5] => php )
2.Array ( [1] => hello [2] => hello [3] => hello [4] => hello ) Array ( [5] => php )
3.Array ( [1] => hello [2] => hello [3] => hello [4] => hello [5] => php ) Array ( [5] => php )
4.Array ( [1] => hello [2] => hello [3] => hello [4] => hello ) Array ( [1] => php )
Answer 31.Array ( [3] => blue [4] => blue) Array ( [0] => red )
2. Array ( [4] => blue [5] => blue [6] => blue) Array ( [0] => red )
3. Array ( [3] => blue [4] => blue [5] => blue [6] => blue ) Array ()
4.Array ( [3] => blue [4] => blue [5] => blue [6] => blue ) Array ( [0] => red )
Answer 41.Array ( [d] => yellow )
2. Array ( [i] => orange )
3.Array ( [h] => orange )
4. Array ( [d] => yellow [h] => orange )
Answer 11.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 )
Answer 31.I like Volvo BMW and Toyota.
2.I like Volvo, BMW and Toyota)
3.I like Volvo, BMW and Toyota
4. I like. Volvo.,. BMW. and. Toyota)
Answer 21.Array (Peter Ben Joe)
2. Array ([Peter] => 35 [Ben] => 37 [Joe] => 43)
3.Array (35 37 43)
4.Array ([35] => Peter [37] => Ben [43] => Joe)
Answer 41.Sam is the brother of Bob and Bob) $brother
2.Sam is the brother of Bob and Bob)
3.$brother
4.Error
Answer 41.count()
2.array_count()
3.array_count_values()
4.count_values()
Answer 31.count()
2. array_count()
3.array_count_values()
4.count_values()
Answer 31.dsort()
2.casesort()
3.natcasesort()
4.naturalsort()
Answer 31.ii), iii) and iv)
2.ii) and iii)
3.Only i) D
4.iii) and iv)
Answer 41.last()
2.before()
3.prev()
4.previous()
Answer 31. last()
2.before()
3.prev()
4.previous()
Answer 31.last()
2.end()
3.next()
4.final()
Answer 21.this_array()
2. is_array()
3.do_array()
4. in_array()
Answer 21.sort()
2.asort()
3.rsort()
4.dsort()
Answer 3