| 1. |
"What does PHP stand for?
i) Personal Home Page
ii) Hypertext Preprocessor
iii) Pretext Hypertext Processor
iv) Preprocessor Home Page"
|
||||||||
|
Answer:
Option (d) |
| 2. |
PHP files have a default file extension of_______
|
||||||||
|
Answer:
Option (b) |
| 3. |
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;
|
||||||||
|
Answer:
Option (c) |
| 4. |
What will be the output of the following PHP code?
<?php
$num = 1;
$num1 = 2;
print $num . "+". $num1;
?>
|
||||||||
|
Answer:
Option (b) |
| 5. |
Which is the correct variable name :
i) $3hello
ii) $_hello
iii) $this
iv) $This
|
||||||||
|
Answer:
Option (d) |
| 6. |
"What will be the output of the following PHP code?
<?php
$foo = 'Bob';
$bar = &$foo;
$bar = "My name is $bar";
echo $bar;
echo $foo;
?>
|
||||||||
|
Answer:
Option (c) |
| 7. |
What will be the output of the following PHP code?
|
||||||||
|
Answer:
Option (d) |
| 8. |
What will be the output of the following PHP code?
|
||||||||
|
Answer:
Option (c) |
| 9. |
What will be the output of the following PHP code?
|
||||||||
|
Answer:
Option (d) |
| 10. |
What will be the output of the following PHP code?
|
||||||||
|
Answer:
Option (b) |