
php-mock – programming-php – কুইজ মডেল টেস্ট অনুশীলন – 12
8409. What function causes the following header to be added to server’ s output Set-Cookie : foo= bar ;
- setserver
- cookieset
- serverset
- setcookie
8410. Which of the following PCRE regular expressions best matches the string ‘php|architect’
- [az]{3}
- [az]{9}
- d{3}
- d{8}
8411. What is the output of the following PHP code – $x; if ($x) print "hi" ; else print "error";
- Error
- error
- hi
- No output
8412. Which statement can be used to select the database
- mysqli=select_db(‘databasename’);
- mysqli->select_db(‘databasename’);
- $mysqli=select_db(‘databasename’);
- $mysqli->select_db(‘databasename’);
8413. which of the following is a correct declaration
- static $varb = sqrt(81);
- static $varb = 1+(2*90);static $varb = array(1
- val’
- 3);static $varb = new Object;
8414. What is the output of the following PHP code – for ($x = 0; $x <= 10; print ++$x) { print ++$x; }
- 123456789101112
- infinite loop
- 1234567891011
- 12345678910
8415. If no expiration time is explicitly set for a cookie, what happens to it
- Just expires
- Never expires
- Expires at end of user’s browser session
- Not set
8416. The function used to automatically transform new line characters into HTML <br /> tag is
- nltobr
- nw2br
- nl2br
- nwtobr
8417. The output of following script is $x = ‘apple’; echo substr_replace ($ x, ‘x’, 1 , 2);
- axle
- x
- xapple
- axxle
8418. How would you start a session
- session_start();
- session();
- session(start);
- begin_session();
আমাদের কাছে থাকা লক্ষ লক্ষ মডেল টেস্ট থেকে প্রাকটিজের জন্য কিছু এখানে তুলে ধরা হল। প্রতিটি অধ্যায়ের উপরে ইশিখন.কম কুইজ চ্যালেঞ্জ এ আছে শত শত মডেল টেস্ট বার বার মডেল টেস্ট দিয়ে নিজেকে যাচাই কর এবং পুরো বাংলাদেশের সকল শিক্ষার্থীর সাথে আপনার মেধা তালিকা দেখুন। প্রশ্নে কোন প্রকার ভুল থাকলে সঠিক উত্তরসহ নিচে কমেন্ট করে জানাবেন, আমরা ঠিক করে দেবো।