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