MCQs
Total Questions : 26
| Page 2 of 3 pages
Answer: Option A. -> What is her age? \n She is $num years old
When a string is enclosed within single quotes both variables and escape sequences will not be interpreted when the string is parsed.
Answer: Option C. -> .php
.php
Answer: Option A. -> Both (i) and (ii)
PHP previously stood for Personal Home Page now stands for Hypertext Preprocessor.
Answer: Option A. -> Rasmus Lerdorf
Rasmus Lerdorf
Answer: Option C. -> All of the mentioned
All of the mentioned
Answer: Option D. -> < ?php ? >
Every section of PHP code starts and ends by turning on and off PHP tags to let the server know that it needs to execute the PHP in between them.
Answer: Option B. -> \n
PHP treats \n as newline character.
Answer: Option B. -> All of the mentioned.
Any of the above editors can be used to type php code and run it.
Answer: Option C. -> (ii), (iii) and (iv)
/* */ can also be use to comment just a single line although it is used for paragraphs. // and # are used only for single line comment.
Answer: Option B. -> PHP 5
Version 5 added support for Exception Handling.