
php-mock – programming-php – কুইজ মডেল টেস্ট অনুশীলন – 15
8439. Which of the following variables is not related to file uploads
- max_file_size
- max_execution_time
- post_max_size
- max_input_time
8440. What will be the output of the following code – function fn (&$var) { $var = $var – ($var/10*5); return $var; } echo fn(100);
- Error message
- 98
- 100
- 50
8441. You need to count the number of parameters given in the URL by a POST operation. The correct way is:
- count($_POST);
- count($POST_VARS);
- count($HTTP_POST_PARAM);
- count($POST_VARS_PARAM);
8442. The output of following script is $array = array(true => ‘a’, 1 => ‘b’); var_dump ($aray);
- NULL
- 1 => ‘b’True => ‘a’
- 1 => ‘b’0 => ‘a’
- 1 => ‘b'”;}}
8443. Array values are keyed by integer values are called
- absolute arrays
- associative arrays
- numeric arrays
- indexed arrays
8444. The inbuilt function to get the number of parameters passed is:
- arg_num()
- func_args_count()
- func_num_args()
- None of the above
8445. Which of the following expression multiply the value of the integer variable $a by 4
- $a += $a + $a;
- None of the above$a *= pow(2
- 2);$a >>= 2 ;
8446. Which of the following variable names are invalid
- $var1
- $var_1
- $var-1
- None of the above
8447. What is the output of the following PHP code – $x = 0; if ($x++) print "hi"; else print "how are u";
- how are u
- hi
- no output
- error
8448. The output of following script if, the URL http://www.php.net can be successfully read, is $s = file_get_contents("http://ww w.php.net "); strip_tags( $s, array (‘p’)); echo count($s);
- 1
- length of the www.php.net homepage
- 0
- None of the above
আমাদের কাছে থাকা লক্ষ লক্ষ মডেল টেস্ট থেকে প্রাকটিজের জন্য কিছু এখানে তুলে ধরা হল। প্রতিটি অধ্যায়ের উপরে ইশিখন.কম কুইজ চ্যালেঞ্জ এ আছে শত শত মডেল টেস্ট বার বার মডেল টেস্ট দিয়ে নিজেকে যাচাই কর এবং পুরো বাংলাদেশের সকল শিক্ষার্থীর সাথে আপনার মেধা তালিকা দেখুন। প্রশ্নে কোন প্রকার ভুল থাকলে সঠিক উত্তরসহ নিচে কমেন্ট করে জানাবেন, আমরা ঠিক করে দেবো।