Sie sind auf Seite 1von 3

PHP Test Breakdown: 1. What is the default execution time set in set_time_limit()?

You answered: 20 secs Incorrect Correct answer: 30 secs 2. What is the difference between GET and POST method? Correct 3. How do we submit form data without a Sumbit button? Correct 4. What happens if no file path is given in include() function? You answered: PHP continues to execute the script. Incorrect Correct answer: Include_path is made use of 5. What does explode() do? You answered: Used to convert a string to an array. Incorrect Correct answer: Used to split a string by a string 6. How do I find out the number of parameters passed into function? You answered: By using func_get_args() Incorrect Correct answer: By using func_num_args() 7. How can we count the number of elements in an array? You answered: Using sizeof() Incorrect Correct answer: Both a and b above 8. Can we use include ( test.php ) two times in a PHP page test1.PHP ? Correct 9. In which variable is the users IP address stored? Correct 10. What is the default size of a file set in upload_max_filesize ? Correct 11. Which of the following way below is correct to comment a single line of code in php? You answered: //Commented line Incorrect Correct answer: both and b above 12. How do we start a php session? Correct 13. Can echo in php accept more than 1 parameter? Correct 14. What is the purpose of $_SESSION[]?

Correct 15. Can I have new lines in $subject tag of php's mail function? You answered: Yes by specifying /n Incorrect Correct answer: No 16. In mysql_fetch_array() If two or more columns of the result have the same fi eld names, what action is taken? You answered: the first column will take precedence Incorrect Correct answer: the last column will take precedence 17. What is the use of mysql_pconnect()? You answered: Used to create a persistant connection to mysql server. Incorrect Correct answer: Both b and c above 18. What is Joomla in PHP? Correct 19. What is the difference between echo and print? Correct 20. ____________ function in PHP Returns a list of response headers sent (or rea dy to send) You answered: header() Incorrect Correct answer: headers_list() 21. PHP supports both simple and multi-dimensional arrays Correct 22. What is array_keys() used for? You answered: Both b and c above Incorrect Correct answer: Returns all the keys of an array 23. The windows version of PHP does not have built-in support for the calendar e xtension You answered: True Incorrect Correct answer: False 24. Which of the following statements is FALSE for PHP Error and Logging? Correct 25. Parent constructors are not called __________ if the child class defines a c onstructor Correct 26. What is PHP heredoc used for? Correct

27. A PHP function cannot be overloaded or redefined You answered: False Incorrect Correct answer: True 28. PHP supports explicit type definition in variable declaration. Correct 29. How do I create PHP arrays in a HTML <form>? Correct 30. Can I generate DLL files from PHP scripts like i can in Perl ? You answered: Yes Incorrect Correct answer: No 31. How can I run COM object from remote server ? Correct 32. Can I run several versions of PHP at the same time? You answered: No Incorrect Correct answer: Yes 33. Which of the following differences are valid between PHP 4 and PHP 5? You answered: Support for inheritance Incorrect Correct answer: Both a and c 34. Which of the following rules below is/are false for exceptions? Correct 35. What is x+ mode in fopen() used for? Correct 36. What is the strpos() function used for? You answered: Locate position of a string s first character Incorrect Correct answer: Search for character within a string 37. Is strstr and strchr aliases? You answered: No Incorrect Correct answer: Yes 38. Which function is used to Strip whitespace (or other characters) from the be ginning and end of a string? Correct 39. echo does not return any value Correct

Das könnte Ihnen auch gefallen