PHP MCQ Quiz Hub

Current affairs mcq php

Choose a topic to test your knowledge and improve your PHP skills

1. PHP Stands for




2. PHP is _______ scripting language.




3. PHP scripts are executed on _________




4. PHP Scripts starts with ________




5. Which of the following statements prints in PHP?




6. In PHP, each statement must be end with ______




7. In PHP Language variables name starts with _____




8. In PHP Language variables are case sensitive




9. In PHP a variable needs to be declare before assign




10. Which of the following is not the scope of Variable in PHP?




11. What is the use of strlen( ) function in PHP?




12. Which of the following is the Concatenation Operator in PHP?




13. Which of the following is not PHP Loops?




14. What is the use of strpos( ) function in PHP?




15. Where setcookie( ) function must appear in PHP?




16. What does the hash (#) sign mean in PHP?




17. How to define a variable in PHP?




18. The uses of strcmp( ) function in PHP?




19. What will be the result of combining a string with another data type in PHP?




20. Data for a cookie stored in _________ in PHP?




21. PHP is a ______ typed language.




22. What does fopen() function do in PHP?




23. Where session_start() function must appear in PHP?




24. What does the PHP Interpreter do?




25. Which of the following is used to add comments in PHP?




26. What does sprintf() function do in PHP?




27. Which function displays the information about PHP?




28. What does isset() function do in PHP?




29. How PHP files can be accessed?




30. A script is a




31. When compared to the compiled program, scripts run




32. PHP is a widely used ... scripting language that is especially suited for web development and can be embedded into html




33. Which of the following is not true?




34. Which of the following variables is not a predefined variable?




35. You can define a constant by using the define() function. Once a constant is defined




36. Which of the following function returns the number of characters in a string variable?




37. When you need to obtain the ASCII value of a character which of the following function you apply in PHP?




38. A variable $word is set to HELLO WORLD, which of the following script returns in title case?




39. The difference between include() and require()




40. When a file is included the code it contains, behave for variable scope of the line on which the include occurs




41. Which of the following method sends input to a script via a URL?




42. Which of the following method is suitable when you need to send larger form submissions?




43. Which of the following mode of fopen() function opens a file only for writing. If a file with that name does not exist, attempts to create anew file. If the file exist, place the file pointer at the end of the file after all other data.




44. The function setcookie( ) is used to




45. To work with remote files in PHP you need to enable




46. fopen($file_doc,r+&rdquo opens a file for




47. In mail($param2, $param2, $param3, $param4), the $param2 contains:




48. mysql_connect( ) does not take following parameter




49. Which of the following is not a session function?




50. When uploading a file if the UPLOAD_ERR-OK contains value 0 it means