Model Sample Pape-2 (Advanced Web Programming)[1]
Model Sample Pape-2 (Advanced Web Programming)[1]
Instructions:
10. Which PHP superglobal variable holds information about uploaded files?
a) $_FILES
b) $_UPLOAD
c) $_SERVER
d) $_POST
11. Explain the role of the switch statement in PHP with an example.
13. Write a PHP script to find the largest number among three numbers.
15. Discuss the importance of using prepared statements in PHP for database operations.
19. What is AJAX, and how does it integrate with jQuery? Provide a basic example.
20. How can you validate an email address in PHP? Illustrate with a script.
21. Discuss the differences between static and dynamic websites, highlighting the role of PHP in
dynamic sites.
22. Write a PHP script to fetch and display records from a MySQL database table.
Section C: Case Study/Practical Application (10 Marks)
23. Design a PHP script to manage a student record system. The script should allow users to add,
view, update, and delete student records stored in a MySQL database.
24. Create an HTML form that accepts a user’s name, age, and gender. Write a PHP script to
process the form data and display a summary of the input. Additionally, store the data in a
database.
25. Discuss the integration of PHP and jQuery with an example of form validation where fields
are checked for valid input using both client-side and server-side techniques.
26. Explain string handling in PHP in detail. Write scripts to demonstrate the following
operations:
o Reversing a string
o Replacing a substring