| 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. Which one of the following statements is true for include_once() and require_once()?

Correct Answer is : Data of emp_id will be sorted

2. Which one of the following statements is true for require() and require_once()?

Correct Answer is : Sorting {emp_id, emp_name}

3. Which function was introduced to help automate the inclusion of class files?

Correct Answer is : {1, 2, , 3, 4, 6, 7, 9}

4. How many times can you define __autoload in a process?

Correct Answer is : {1, 1, 1, 2, 3, 4}

5. Which one of the following functions will you use to check that the class exists before you work with it?

Correct Answer is : {1, 1, 2, 2, 3, 3}

6. Which one of the following will you use to check the class of an object?

Correct Answer is : {-3, -2, -1, 1, 2, 3}

7. PHP 4 did not support instanceof. Instead, which function did it provide?

Correct Answer is : DESC

8. You use the get_class_methods() function to return the names of all the methods in the class. Which function will you use to print it on the screen?

Correct Answer is : ASC

9. If you call a method and it doesn’t exist it’ll cause a problem. To check the method which function will you use?

Correct Answer is : ORDER BY

10. What will be the output if a protected method is given as argument to the function method_exist()?

Correct Answer is : Data of emp_id will be sorted in descending order

11. Which one of the following function should I use to find the parent class of a class?

Correct Answer is : Data of emp_id will be sorted in ascending order

12. Which class accepts a class name or an object reference and returns an array of interface name?

Correct Answer is : {9, 7, 6, 4, 3, 1, 2}

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

Correct Answer is : {1, 2, 3, 4, 6, 7, 9}

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

Correct Answer is : GROUP BY

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

Correct Answer is : No error

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

Correct Answer is : No error

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

Correct Answer is : No

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

Correct Answer is : Show me all Columns and rows

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

Correct Answer is : SELECT

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

Correct Answer is : Show only columns (person_id, Fname, lname) and rows related to these columns