You are on page 1of 2

php Question Bank

1. Write difference between GET and POST method.


2. Explain different types of arguments passing to functions with example.
3. What is the difference between function overloading and overriding? Explain.
4. What is the difference between the include() and require() functions?
5. Define Introspection and explain it with suitable example.
6. Differentiate between implode and explode functions.
7. Explain Inserting and Retrieving the query result operations.
8. Explain web page validation with example.
9. Explain the following string functions with example.
10. str_replace() ii) ucwords() iii) strlen() iv) strtoupper()
11. Define the use of foreach loop in php with example.
12. What is a Regular Expression? Explain with example.
13. List out the advantages of PHP.
14. Explain control statements with syntax and example in PHP.
15. Write the PHP code for fetching the data from a database to a webpage?
16. Explain anonymous function concept in PHP.
17. Explain any four string functions with example.
18. Write a php function to find area of circle and rectangle.
19. Explain any five string related functions with example.
20. Write a PHP script which takes the username, password and e-mail values from
user and checks whether the user has filled the textboxes or not. Also, check the
e-mail field whether it is incorrect format or not.
21. Explain the execution of php script using diagram.
22. Differentiate between static web sites and dynamic web sites.
23. Write steps to create connection with Postgre SQL database and display the data.
24. List the features of PHP7.
25. How to pass parameters to a function by reference? Explain with example. Also
write its advantage.
26. What is the difference between index and associative array?
27. Explain datatypes in PHP.
28. What is the use of callback in PHP? Explain with example.
29. Explain constructor and destructor with suitable example
30. Explain any five functions to sort an array in PHP.
31. What is Data type? List different Data types in PHP? Explain any two.
32. What is inheritance? Explain with suitable example.
33. Write a php script to create user defined functions Xsubstr (string, start [,
length]) and illustrate the same.
34. Explain the different loops in PHP with example.
35. Explain any two functions to retrieve the parameters passed to it in PHP. Explain
with example.
36. Explain anonymous function with example in PHP.
37. Write a php script display the student details in table format.
38. Explain the different loops in PHP with example.
39. What is the difference between function overloading and overriding? Explain.
40. How to retrieve information about the parameters passed to user defined
function in PHP? Explain with example.
41. What is the purpose of break and continue statement? Explain with example.
42. How inheritance is implemented in PHP? Explain how base class methods and
properties are accessed? Give example
43. How inheritance is implemented in PHP? Explain how base class methods and
properties are accessed? Give example

Note :- Q.4 writing programs (10 marks) and Q.1 Answer in one sentences
(10 Marks) questions are not included in this question bank

You might also like