
php-mock – programming-php – কুইজ মডেল টেস্ট অনুশীলন – 13
8419. The output of following script is $result = ”; function glue($val ) { global $result; $result .= $val; } $array = array(‘a’ , ‘ b’ , ‘c ‘, ‘d’ ); array_walk ($array, ‘glue’); echo $result;
- NULL
- abcd
- 0
- A warning
8420. What is the default PHP session name
- PHPSESSID
- PHPSESSIONID
- PHPIDSESS
- PHPSESID
8421. Variables/functions in PHP don’t work directly with:
- isset()
- All of the above
- echo()
- print()
8422. Which of the following variable declarations within a class is invalid in PHP5
- internal $term= 3;
- private $type = ‘moderate’;
- protected $name = ‘Quantas Private Limited’;
- public $amnt = ‘500’;
8423. Who created the PHP
- Bill Gates
- Rasmus Lerdorf
- None of the above
- Linus Travolds
8424. What is the main advanatge of PHP
- open Source
- readily available and dual-licensedAll of the above
- interfaces very easily with Apache/MySQL
- Easy to understand Syntax
8425. which of the following are the valid PHP data types
- resource
- All of the above
- null
- boolean
8426. Which of the following is used in ternary operator
- *
- =
- :
- &
8427. Which function is used to log errors to a protected file for live websites
- set_error_handler
- log_error
- error_log
- error_reporting
8428. What is the output of the following PHP code – do { print "hi"; } while(0); print "hello";
- error
- hihello
- infinite loop
- hello
আমাদের কাছে থাকা লক্ষ লক্ষ মডেল টেস্ট থেকে প্রাকটিজের জন্য কিছু এখানে তুলে ধরা হল। প্রতিটি অধ্যায়ের উপরে ইশিখন.কম কুইজ চ্যালেঞ্জ এ আছে শত শত মডেল টেস্ট বার বার মডেল টেস্ট দিয়ে নিজেকে যাচাই কর এবং পুরো বাংলাদেশের সকল শিক্ষার্থীর সাথে আপনার মেধা তালিকা দেখুন। প্রশ্নে কোন প্রকার ভুল থাকলে সঠিক উত্তরসহ নিচে কমেন্ট করে জানাবেন, আমরা ঠিক করে দেবো।