PHP Learn Simpli September 2, 2019 no Comments 1. Which of the following statement is wrong related to abstract class? Can have abstract methods Can have concrete methods Can support multiple inheritance Can not support multiple inheritance None 2. Interface helps in the following? Single inheritance Multiple inheritance Abstraction Multilevel inheritance None 3. What is the use of explode function in PHP? Converts string to array Converts array to string None 4. What will be the output of the code snippet? <?php $A = 5; echo $A+++$A++; 8 10 12 11 None 5. What is the use of implode function in PHP? Converts array to string Converts string to array None 6. Which function is used to remove duplicate values from an array in PHP? array_keys() array_unique() array_values() None 7. What is the use of break method in PHP? Exit from the function Exit from the loop Halt the remaining part Stop execution None 8. What will be the output of the code snippet? $a = '90'; $b = &$a; $b = "2$b"; echo $b; 2 Generates an error 180 290 None 9. Which one will print true? var_dump(0123 == 123); var_dump('0123' == 123); var_dump('0123' === 123); 3 None 1 2 None 10. Which one is true related with Header()? Header is used to load the header part Header is used to redirect Header is used to clear the cache All of the above None Time's up