
php-array – programming-php – কুইজ মডেল টেস্ট অনুশীলন – 2
8310. The output of following script is $array = array(true => ‘a’, 1 => ‘b’); var_dump ($aray);
- NULL
- 1 => ‘b’0 => ‘a’
- 1 => ‘b’True => ‘a’
- 1 => ‘b'”;}}
8311. Array values are keyed by integer values are called
- absolute arrays
- associative arrays
- indexed arrays
- numeric arrays
8312. Which function is used to sort an array in ascending order by value while preserving key associations
- sort()
- asort()
- ksort()
- krsort()
8313. The order in which the following script output the contents of the $array array is $array = array ( ‘a1 ‘, ‘a3’, ‘a5’, ‘a10’, ‘a20’ ); natsort ($array); var_dum p ( $array);
- a1
- a3
- a5
- a10
8314. The simplest method of finding sum of all the elements of an array is
- array_count_ values()
- array_sum function
- array with a foreach loop
- array_intersect function
8315. The output of following script is $array = array (‘3’ => ‘a’, ‘1b ‘ = > ‘b’, ‘c ‘, ‘d’); echo ($ array[1]);
- A warning
- b
- 1
- c
8316. The output of following script is $array = array(0.1 => ‘a’, 0.2 => ‘b’); echo count ($array) ;
- NULL
- 2
- 0
- 1
আমাদের কাছে থাকা লক্ষ লক্ষ মডেল টেস্ট থেকে প্রাকটিজের জন্য কিছু এখানে তুলে ধরা হল। প্রতিটি অধ্যায়ের উপরে ইশিখন.কম কুইজ চ্যালেঞ্জ এ আছে শত শত মডেল টেস্ট বার বার মডেল টেস্ট দিয়ে নিজেকে যাচাই কর এবং পুরো বাংলাদেশের সকল শিক্ষার্থীর সাথে আপনার মেধা তালিকা দেখুন। প্রশ্নে কোন প্রকার ভুল থাকলে সঠিক উত্তরসহ নিচে কমেন্ট করে জানাবেন, আমরা ঠিক করে দেবো।