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