| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. How many methods are available for the exception class?

Correct Answer is : TIME

2. Which version added the method getPrevious()?

Correct Answer is : AUTO_INCREMENT

3. Which of the following statements invoke the exception class?

Correct Answer is : $a[0].

4. Which one of the following is the right description for the method getMessage() ?

Correct Answer is : FALSE

5. You can extend the exception base class, but you cannot override any of the preceding methods because the are declared as__________

Correct Answer is : ->

6. What does SPL stand for?

Correct Answer is : TRUE

7. How many predefined exceptions does SPL provide access to?

Correct Answer is : cgi-bin

8. Which of the following is/are not an exception? i) BadFunctionCallException ii) BadMethodCallException iii) LogicException iv) DomainException

Correct Answer is : Event

9. Which of the following is/are an exception? i) OutOfBoundException ii) OutOfRangeException iii) OverflowException iv) UnderflowException

Correct Answer is : event_scheduler = ON

10. The filesize() function returns the file size in ___________

Correct Answer is : View

11. Which one of the following PHP function is used to determine a file’s last access time?

Correct Answer is : good

12. Which one of the following function is capable of reading a file into an array?

Correct Answer is : more than 1

13. Which one of the following function is capable of reading a file into a string variable?

Correct Answer is : FROM

14. Which one of the following function is capable of reading a specific number of characters from a file?

Correct Answer is : WHERE

15. Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?

Correct Answer is : GROUP BY

16. Which one of the following function outputs the contents of a string variable to the specified resource?

Correct Answer is : HAVING

17. Which function sets the file filename last-modified and last-accessed times?

Correct Answer is : ORDER BY

18. Which function is useful when you want to output the executed command result?

Correct Answer is : ALTER

19. Which one of the following function reads a directory into an Array?

Correct Answer is : WHERE

20. What will be the output of the following PHP code ?

Correct Answer is : ALTER