
php-mock – programming-php – কুইজ মডেল টেস্ট অনুশীলন – 14
8429. Which of the following is used to maintain the value of a variable over different pages
- session_register
- global
- None of the above
- static
8430. The output of following script is $s = ‘1 234 5’; $s[$s[1 ]] = ‘2’; echo $s ;
- 22345
- 12245
- 12345
- 11345
8431. Which is not a valid PHP file wrapper resource
- \server pathfilename
- http://www.example.com/index.php
- abc.txt
- All of the above
8432. Which of the following is not valid PHP code
- $10_somethings
- ${“MyVar ”}
- &$something
- $_10
8433. what is true regarding $a + $b where both of them are arrays
- None of the above
- The + operator is overloaded
- Duplicated keys are NOT overwritten
- This produces a syntax error
8434. What will be the output of the following code – $Rent = 250; function Expenses($Other) { $Rent = 250 + $Other; return $Rent; } Expenses(50); echo $Rent;
- 250
- Program will not compile
- 200
- 300
8435. The output of following script is $array = array (‘3’ => ‘a’, ‘1b ‘ = > ‘b’, ‘c ‘, ‘d’); echo ($ array[1]);
- 1
- b
- c
- A warning
8436. What happens when a form submitted to a PHP script contains two elements with the same name
- Second element is automatically renamed
- Value of second element overwrites the first in specific superglobal array
- Combined in an array and stored in specific superglobal array
- Value of second element is added to the first in superglobal array
8437. How does the identity operator === comp are two values
- It returns True only if they are both of the same type and value
- It bases its comparison on the strcmp function exclusivelyIf the two values are strings
- it performs a lexical comparisonIt converts them to a common compatible data type and then compares the resulting values
8438. Which of the following are not considered as Boolean false
- 0
- F
- “FALSE”
- “0”
আমাদের কাছে থাকা লক্ষ লক্ষ মডেল টেস্ট থেকে প্রাকটিজের জন্য কিছু এখানে তুলে ধরা হল। প্রতিটি অধ্যায়ের উপরে ইশিখন.কম কুইজ চ্যালেঞ্জ এ আছে শত শত মডেল টেস্ট বার বার মডেল টেস্ট দিয়ে নিজেকে যাচাই কর এবং পুরো বাংলাদেশের সকল শিক্ষার্থীর সাথে আপনার মেধা তালিকা দেখুন। প্রশ্নে কোন প্রকার ভুল থাকলে সঠিক উত্তরসহ নিচে কমেন্ট করে জানাবেন, আমরা ঠিক করে দেবো।