| 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 function is used to transform PHP’s session-handler behavior into that defined by your custom handler?

Correct Answer is : search string

2. The session_start() function must appear..

Correct Answer is : column name

3. What is the return type of session_set_save_handler() function?

Correct Answer is : FALSE

4. PHP has long supported two regular expression implementations known as _______ and _______ i) Perl ii) PEAR iii) Pearl iv) POSIX

Correct Answer is : ft_min_word_len

5. Which one of the following regular expression matches any string containing zero or one p?

Correct Answer is : TRUE

6. How many functions does PHP offer for searching strings using POSIX style regular expression?

Correct Answer is : more than 1

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

Correct Answer is : data file

8. POSIX implementation was deprecated in which version of PHP?

Correct Answer is : 10

9. POSIX stands for

Correct Answer is : 48

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

Correct Answer is : 1

11. Which of the following would be a potential match for the Perl-based regular expression /fo{2,4}/ ? i) fol ii) fool iii) fooool iv) fooooool

Correct Answer is : 6

12. Which among the following is/are not a metacharacter? i) \a ii) \A iii) \b iv) \B

Correct Answer is : 4

13. How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions.

Correct Answer is : TRUE

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

Correct Answer is : text

15. Say we have two compare two strings which of the following function/functions can you use? i) strcmp() ii) strcasecmp() iii) strspn() iv) strcspn()

Correct Answer is : FALSE

16. Which one of the following functions will convert a string to all uppercase?

Correct Answer is : CLIENT_MULTI_STATEMENTS

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

Correct Answer is : any of the two

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

Correct Answer is : TRUE

19. Which one of the following functions can be used to concatenate array elements to form a single delimited string?

Correct Answer is : –force

20. Which one of the following functions finds the last occurrence of a string, returning its numerical position?

Correct Answer is : 2