InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Who is the father of PHP?(a) Rasmus Lerdorf(b) Willam Makepiece(c) Drek Kolkevi(d) List BarelyI got this question by my school principal while I was bunking the class.The query is from Basics topic in chapter Basics of PHP of PHP |
|
Answer» RIGHT choice is (a) Rasmus Lerdorf To EXPLAIN: PHP was originally created by Rasmus Lerdorf in 1994. |
|
| 2. |
Which statement will output $x on the screen?(a) echo “\$x”;(b) echo “$$x”;(c) echo “/$x”;(d) echo “$x;”;The question was asked in an online interview.This intriguing question comes from Basics in division Basics of PHP of PHP |
|
Answer» Correct answer is (a) echo “\$x”; |
|
| 3. |
Which of the below statements is equivalent to $add += $add?(a) $add = $add(b) $add = $add +$add(c) $add = $add + 1(d) $add = $add + $add + 1This question was addressed to me in an online interview.The doubt is from Basics topic in chapter Basics of PHP of PHP |
|
Answer» Right ANSWER is (B) $add = $add +$add |
|
| 4. |
Which version of PHP introduced Try/catch Exception?(a) PHP 4(b) PHP 5(c) PHP 6(d) PHP 5 and laterI had been asked this question at a job interview.Enquiry is from Basics topic in portion Basics of PHP of PHP |
|
Answer» Correct choice is (d) PHP 5 and LATER |
|
| 5. |
What should be the correct syntax to write a PHP code?(a) < php>(b) < ? php?>(c) (d) This question was posed to me during an online exam.Question is from Basics in chapter Basics of PHP of PHP |
|
Answer» The correct option is (c) ?> |
|
| 6. |
PHP files have a default file extension of_______(a) .html(b) .xml(c) .php(d) .phI have been asked this question in unit test.My question comes from Basics in division Basics of PHP of PHP |
|
Answer» The correct ANSWER is (C) .php |
|