Do as directed: 1. What is CSS and where is it use for? 2. What is $_SERVER? 3. “Apage generated by a form that used the GET method cannot be bookmarked” State whether the statement is true or false. 4. What is the use of error_reporting() function in PHP? 5. Define mt_rand() function. 6. Differentiate between concatenation operator and concatenation assignment operator. 7. What is the difference between empty() and isset() functions?
[7 marks]1. What are the common PHP variable types? How to define and check the type of a variable? Explain with appropriate example. 2. Explain $(...) function with appropriate example.
[3 marks]Write a PHP script for calculating total bill amount to be paid by the customer on purchase of different items. Assume that the data has been submitted through HTML form like: Item Code, Quantity, Amount and Discount and Tax are predefined fix value in percentage.
[7 marks]List and explain different String manipulation functions used in PHP.
[7 marks]Write a PHP script to validate different form fields in a below given order. 1) Email ID field must not be blank. 2) Password must be 10 characters long. 3) Age must be between 18 and 58 only. If any of the condition is not satisfied then redirect the user to the original form with appropriate message.
[7 marks]What is an Array? List different types of array and differentiate indexed array and associative array.
[7 marks]What is the difference between include() and require() functions? Explain the use of these functions with appropriate example.
[7 marks]What is the use of Multidimensional Array? How to add and retrieve values in that Array?
[7 marks]What is the use of user defined function? Write a function and call that function using PHP script that takes parameter and returns value. If some argument’s value is missing then set default value for it.
[7 marks]What are Cookies? Explain following points with proper examples for Cookie. 1. How to create and send Cookies using PHP script? 2. How to add parameters to a Cookie? 3. How to delete a Cookie?
[7 marks]Write a PHP script using which the form data must be written in the FILE when the user submits the details via form. Explain File Path and File extension also using suitable examples.1
[7 marks]What are Sessions? How to create a session and accessing session variables? How to delete a Session? Explain with suitable examples.
[7 marks]Write a PHP script to create a directory and Uploading a File in that directory and another script to read the file incrementally.
[7 marks]How to create jQuery objects from DOM Objects and how to treat those objects? Take an appropriate example to explain in detail.
[7 marks]What is JSON? How to send JSON Data to the server? Take appropriate example to explain in detail.
[7 marks]How to invoke Event Handler manually? Explain different methods used for that in detail with examples.
[7 marks]How to configure the Basic Settings for an Ajax Request? List all and explain at least six settings.
[7 marks]