
php-mock – programming-php – কুইজ মডেল টেস্ট অনুশীলন – 11
8399. The output of following script is echo ‘Testing ‘ . 1 + 2 . ’45’;
- Testing 1+245
- 245
- Testing 1245
- Testing 345
8400. Which function is used to show all errors
- log_error
- error_log
- reporting_error
- error_reporting
8401. If a variable $email has string value ‘[email protected]’, which statements would extract ‘example.com’
- strchr($email
- “@”);strstr($email
- “@”);substr($email
- strpos( $email
8402. Which function is used to register a user-defined file wrapper as a valid wrapper protocol
- stream_register_wrapper
- stream_wrapper_register
- register_stream_wrapper
- None of the above
8403. Which of the following type cast is not correct
- double
- decimal
- boolean
- real
8404. Which function opens a socket connection for communicating with a server not supported by a file wrapper
- openfsocket
- fsockopen
- openfsock
- fsocketopen
8405. Emptying a variable in PHP is done by
- Null pointer assignment
- $($variable name) assignment
- NULL assignment
- unset()
8406. What is used to access MySQL database
- mysql-connect() function
- mysql_connect() function
- mysqlconnect() function
- sql_connect() function
8407. Consider the following class: Class Insurance { function clsName() { echo get_class($this); } } $cl = new Insurance(); $cl -> clsName(); Insurance::clsName(); Which of the following Lines should be commented to print the class name without errors
- Line 9 and 10All the three lines 8
- 9
- and 10 should be left as it is.Line 10
- Line 8 and 9
8408. The type casting in PHP is
- Variable
- Static
- Implicit
- Explicit
আমাদের কাছে থাকা লক্ষ লক্ষ মডেল টেস্ট থেকে প্রাকটিজের জন্য কিছু এখানে তুলে ধরা হল। প্রতিটি অধ্যায়ের উপরে ইশিখন.কম কুইজ চ্যালেঞ্জ এ আছে শত শত মডেল টেস্ট বার বার মডেল টেস্ট দিয়ে নিজেকে যাচাই কর এবং পুরো বাংলাদেশের সকল শিক্ষার্থীর সাথে আপনার মেধা তালিকা দেখুন। প্রশ্নে কোন প্রকার ভুল থাকলে সঠিক উত্তরসহ নিচে কমেন্ট করে জানাবেন, আমরা ঠিক করে দেবো।