| 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 of the following method scopes is/are not supported by PHP? i) private ii) final iii) static iv) abstract

Correct Answer is : 16

2. Which method scope prevents a method from being overridden by a subclass?

Correct Answer is : FALSE

3. Which of the following statements is/are true about Constructors in PHP? i) PHP 4 introduced class constructors. ii) Constructors can accept parameters. iii) Constructors can call class methods or other functions. iv) Class constructors can call on other constructors.

Correct Answer is : ‘\r’

4. PHP recognizes constructors by the name_________

Correct Answer is : FLOAT

5. Which version of PHP introduced the instanceof keyword?

Correct Answer is : TRUE

6. Which one of the following functions is used to determine object type?

Correct Answer is : #!

7. Which one of the following keyword is used to inherit our subclass into a superclass?

Correct Answer is : database interface

8. In the PHP code given below, what is/are the properties?

Correct Answer is : /usr/bin/perl

9. Which keyword is used to refer to properties or methods within the class itself?

Correct Answer is : select_list

10. Which keyword allows class members (methods and properties) to be used without needing to instantiate a new instance of the class?

Correct Answer is : RIGHT JOIN

11. What does PHP stand for? i) Personal Home Page ii) Hypertext Preprocessor iii) Pretext Hypertext Processor iv) Preprocessor Home Page

Correct Answer is : subquerying

12. A PHP script should start with ___ and end with ___

Correct Answer is : UNION

13. Which of the following is/are a PHP code editor? i) Notepad ii) Notepad++ iii) Adobe Dreamweaver iv) PDT

Correct Answer is : UNION ALL

14. Which of the following must be installed on your computer so as to run PHP script? i) Adobe Dreamweaver ii) PHP iii) Apache iv) IIS

Correct Answer is : TRUE

15. Which version of PHP introduced Try/catch Exception?

Correct Answer is : TRUE

16. We can use ___ to comment a single line? i) /? ii) // iii) # iv) /* */

Correct Answer is : dynamically generated

17. Which of the following php statement/statements will store 111 in variable num? i) int $num = 111; ii) int mum = 111; iii) $num = 111; iv) 111 = $num;

Correct Answer is : $

18. hat will be the output of the following php code?

Correct Answer is : DECIMAL

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

Correct Answer is : Stored functions

20. Which of following variables can be assigned a value to it? i) $3hello ii) $_hello iii) $this iv) $This

Correct Answer is : Triggers