Programming - PHP

You Are Here :: Home > Programming > PHP- General Questions

 
1.

Which of the following are not considered as Boolean false??                          


A. FALSE B. 0
C. “FALSE” D. 1




2.

Consider the following class: Class Insurance { function clsName() { echo get_class($this); } } 8.$cl = new Insurance(); 9.$cl -> clsName(); 10.Insurance::clsName(); Which of the following Lines should be commented to print the class name without errors??                          


A. Line 8 and 9 B. Line 10
C. Line 9 and 10 D. All the three lines 8,9, and 10 should be left as it is.




3.

Variables/functions in PHP don't work directly with:?                          


A. echo() B. isset()
C. print() D. All of the above




4.

What is the output of the following code??                          


A. Array ([x]=>9 [y]=>3 [z]=>-7) B. Array ([x]=>3 [y]=>2 [z]=>5)
C. Array ([x]=>12 [y]=>5 [z]=>-2) D. Error




5.

Which of the following multithreaded servers allow PHP as a plug-in??                          


A. Netscape FastTrack B. Microsoft's Internet Information Server
C. O'Reilly's WebSite Pro D. All of the above




6.

Which of the following statements is incorrect with regard to interfaces??                          


A. A class can implement multiple interfaces B. An abstract class cannot implement multiple interfaces
C. An interface can extend multiple interfaces D. Methods with same name, arguments and sequences can exist in the different interfaces implmented by a class




1

2

3

4

5

6

7

8

9

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on