Page 269 - Computer Software Application TP - Volume 1
P. 269

COMPUTER SOFTWARE APPLICATION - CITS




              1  Provide a code example demonstrating the use of the echo and print statements to display text on a web
                 page.
              2  Provide a code example demonstrating how to capture the output of a PHP script and store it in a variable
                 for further processing.
              3  Provide examples of how to retrieve user input from fields such as text fields, checkboxes, radio buttons,
                 and select dropdowns.

              4  Provide a code example demonstrating how to access form data submitted via the GET method.
              5  Provide a code example illustrating how to create a form that allows users to upload a file to the server.
              6  Provide a simple code example demonstrating how to force the download of a file named “example.txt”.
              7  Provide a code snippet illustrating how to set headers for downloading a PDF file named “document.pdf”.
              8  Write a PHP function that takes a floating-point number as input and returns its absolute value.

              9  Write a PHP code to calculate the sine, cosine, and tangent of an angle in radians.
              10 Write a PHP code snippet to generate a random integer between 1 and 100 and display it on the screen.






























































                                                           254

                               CITS : IT & ITES - Computer Software Application - Exercise 53
   264   265   266   267   268   269   270   271   272   273   274