Saturday, March 12, 2011

PHP INTERVIEW QUESTIONS FOR FRESHERS


Frequently asked PHP Interview Questions
  1. What’s PHP ?
  2. difference between PHP4 and PHP5?
  3. What Is a Session?
  4. How can we register the variables into a session?
  5. What is meant by PEAR in php?
  6. How can we repair a MySQL table?
  7. What Is a Persistent Cookie?
  8. What does a special set of tags <?= and ?> do in PHP?
  9. How do you define a constant?
  10. What are the differences between require and include, include_once?
  11. How can I execute a PHP script using command line?
  12. What is meant by urlencode and urldecode?
  13. What is the difference between include and require?
  14. What is the difference between mysql_fetch_object and mysql_fetch_array?
  15. How can I execute a PHP script using command line?
  16. How To Create a Table using PHP?
  17. How can we encrypt the username and password using PHP?
  18. How do you pass a variable by value?
  19. difference between ereg_replace() and eregi_replace()?
  20. differences between DROP a table and TRUNCATE a table?
  21. DIFFERENT TYPES OF ERRORS IN PHP?
  22. How can we submit a form without a submit button?
  23. How can we get the browser properties using PHP?
  24. Would you initialize your strings with single quotes or double quotes?
  25. What are the differences between GET and POST methods in form submitting?
  26. difference between the functions unlink and unset?
  27. How can we know the count/number of elements of an array?
  28. How many ways we can pass the variable through the navigation between the pages?
  29. How can we find the number of rows in a result set using PHP?
  30. How many ways we can we find the current date using MySQL?
  31. How can we know the number of days between two given dates using MySQL?
  32. What is the difference between GROUP BY and ORDER BY in SQL?
  33. differences between  mysql_fetch_array(),  mysql_fetch_object(), mysql_fetch_row()?
  34. What is meant by nl2br()?
  35. difference between htmlentities() and htmlspecialchars()?
  36. can we increase the execution time of a php script?
  37. What are cookies and  How to set cookies?
  38. How can we destroy the cookie?
  39. What is the use of friend function?
  40. What is the maximum size of a file that can be uploaded using PHP and how can we change this?
  41. What are the difference between abstract class and interface?
  42. What type of inheritance that php supports?
  43. How do I find out the number of parameters passed into function?
  44. How can increase the performance of MySQL select query?
  45. How to store the uploaded file to the final location?

No comments:

Post a Comment