| 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. What does PHP stand for?

Correct Answer is : PHP: Hypertext Preprocessor

2. Which of the following is the way to create comments in PHP?

Correct Answer is : all of the above

3. A value that has no defined value is expressed in PHP with the following keyword:

Correct Answer is :

4. Which of the following is used to declare a constant

Correct Answer is : define

5. Which of the following is NOT a magic predefined constant?

Correct Answer is : __DATE__

6. What is the output of the following? x = "abcdef" i = "a" while i in x: print(i, end = " ")

Correct Answer is : i) and ii)

7. What is the output of the following? x = "abcdef" i = "a" while i in x: print('i', end = " ")

Correct Answer is : PHP 5

8. What is the output of the following? x = "abcdef" i = "a" while i in x: x = x[:-1] print(i, end = " ")

Correct Answer is : destinationObject = clone targetObject;

9. What is the output of the following? x = "abcdef" i = "a" while i in x[:-1]: print(i, end = " ")

Correct Answer is : ii), iii) and iv)

10. What is the output of the following? x = "abcdef" i = "a" while i in x: x = x[1:] print(i, end = " ")

Correct Answer is : Normal class

11. What is the output of the following? x = "abcdef" i = "a" while i in x[1:]: print(i, end = " ")

Correct Answer is : Abstract class

12. What is the output of the following? x = 'abcd' for i in x: print(i) x.upper()

Correct Answer is : clone()

13. What is the output of the following? x = 'abcd' for i in x: print(i.upper())

Correct Answer is : Method Including

14. What is the output of the following? x = 'abcd' for i in range(x): print(i)

Correct Answer is : __unset

15. What is the output of the following? x = 'abcd' for i in range(len(x)): print(i)

Correct Answer is : 0

16. What is the output of the following? x = 'abcd' for i in range(len(x)): print(i.upper())

Correct Answer is : iii) and iv)

17. What is the output of the following? x = 'abcd' for i in range(len(x)): i.upper() print (x)

Correct Answer is : 11,35,000

18. What is the output of the following? x = 'abcd' for i in range(len(x)): x[i].upper() print (x)

Correct Answer is : is_array()

19. What is the output of the following? x = 'abcd' for i in range(len(x)): i[x].upper() print (x)

Correct Answer is : array_push()

20. What is the output of the following? x = 'abcd' for i in range(len(x)): x = 'a' print(x)

Correct Answer is : 2