InterviewSolution
Saved Bookmarks
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. |
The external data in PHP are ________?(A) Cookies(B) Input data from a form(C) Server Variables(D) All of the above |
| Answer» | |
| 2. |
How many types of filtering is present in PHP?(A)2(B)3(C)4(D)None |
| Answer» | |
| 3. |
The correct syntax for enclosing the PHP script are?(A)<PHPgt; </phpgt;(B)<?PHP ?gt;(C)?PHP ?PHP(D)<p?gt; </?pgt; |
| Answer» | |
| 4. |
Which of the following is true if you want to send input through the script in PHP?(A)Post(B)Get(C)All of the above(D)None of the above |
| Answer» | |
| 5. |
Which of the following is not considered predefined values?(A)$get(B)$ask(C)$request(D)$post |
| Answer» | |
| 6. |
Which of the following method in PHP is used to get the current day and location?(A)date_sunrise()(B)sunrise()(C)date-sunrise()(D)None of the above |
| Answer» | |
| 7. |
What is the output of the below code snippets?<?php $value=\"GeeksForGeeks\"; echo strrev(\"$value\"); ?>(A)skeeGroFskeeG(B)skeeGroFskeeO(C)skeeGorFskeeG(D)skeeForFskeeG |
| Answer» | |
| 8. |
Which of the following is used to calculate a number of character values in PHP?(A)count($variable)(B)len($variable)(C)strcount($variable)(D)strlen($variable) |
| Answer» | |
| 9. |
What is the output of the below code snippets?<?php while() { echo "GeeksForGeeks"; }?>(A) Hello World(B) Infinite loop(C) no output(D) Error |
| Answer» None | |
| 10. |
What is the output of the following code snippets:<?php$output = array(3, 3, 3);echo array_product($a);?>(A) 8(B) 27(C) 10(D) 6 |
| Answer» | |
| 11. |
Which below method is used to compute the difference between two arrays in PHP?(A) array_diff(B) diff_array(C) arrays_diff(D) diff_arrays |
| Answer» | |
| 12. |
Which inbuilt function in PHP is used to sort the element in Descending order?(A) sort()(B) asort()(C) dsort()(D) rsort() |
| Answer» | |