11. |
How to define a function in PHP?
|
||||||||
Answer:
Option (d) |
12. |
What will be the output of the following PHP code?
|
||||||||
Answer:
Option (c) |
13. |
What will be the output of the following PHP code?
|
||||||||
Answer:
Option (a) |
14. |
What will be the output of the following PHP code?
|
||||||||
Answer:
Option (d) |
15. |
What will be the output of the following PHP code?
|
||||||||
Answer:
Option (c) |
16. |
What will be the output of the following PHP code?
|
||||||||
Answer:
Option (b) |
17. |
What will be the output of the following PHP code?
<?php $op2 = "blabla"; function foo($op1) { echo $op1; echo $op2; } foo("hello"); ?>
|
||||||||
Answer:
Option (b) |
18. |
A function in PHP which starts with __ (double underscore) is known as __________
|
||||||||
Answer:
Option (a) |
19. |
PHP’s numerically indexed array begin with position ___________
|
||||||||
Answer:
Option (b) |
20. |
Which of the following are correct ways of creating an one dimensional array?
i) state[0] = "gujarat"; ii) $state[] = array("gujarat"); iii) $state[0] = "gujarat"; iv) $state = array("gujarat");
|
||||||||
Answer:
Option (a) |