
php-function – programming-php – কুইজ মডেল টেস্ট অনুশীলন – 6
php function | 8352. The function print_r () returns details on
- Status of echo command
- Status of input stream
- Status of a variable
- Status of output stream
8353. What will be the output of the following code – $Rent = 250; function Expenses($Other) { $Rent = 250 + $Other; return $Rent; } Expenses(50); echo $Rent;
- 300
- 200
- Program will not compile
- 250
8354. What is the difference between print() and echo()
- print can be used in the CLI version of PHP
- while echo can&rsquo
- techo can be used as part of an expression
- while print can&rsquo
8355. Which of the following functions output text
- None of the above
- println()
- display()
- print()
8356. 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
- A warning
- 0
- abcd
8357. In the following PHP code block, the value “info” is stored in $namevar = ‘Vskills’; $($namevar)=’info’;
- $$namevar
- info
- namevar
- $namevar
8358. What will be the output of the following code – function fn (&$var) { $var = $var – ($var/10*5); return $var; } echo fn(100);
- 100
- 50
- 98
- Error message
আমাদের কাছে থাকা লক্ষ লক্ষ মডেল টেস্ট থেকে প্রাকটিজের জন্য কিছু এখানে তুলে ধরা হল। প্রতিটি অধ্যায়ের উপরে ইশিখন.কম কুইজ চ্যালেঞ্জ এ আছে শত শত মডেল টেস্ট বার বার মডেল টেস্ট দিয়ে নিজেকে যাচাই কর এবং পুরো বাংলাদেশের সকল শিক্ষার্থীর সাথে আপনার মেধা তালিকা দেখুন। প্রশ্নে কোন প্রকার ভুল থাকলে সঠিক উত্তরসহ নিচে কমেন্ট করে জানাবেন, আমরা ঠিক করে দেবো।