Question 1 (40 Marks) a) Briefly state the use of empty () and isset() function in PHP. (4 marks) b) Compare between an
Posted: Thu Jul 14, 2022 2:19 pm
Question 1 (40 Marks) a) Briefly state the use of empty () and isset() function in PHP. (4 marks) b) Compare between an ID and a Class selector in Cascading Style Sheet (CSS). Explain briefly which one is more convenient to use. (4 marks) C) Describe briefly the terms temporary cookies and persistent cookies. (4 marks) d) Give TWO (2) limitations and ONE (1) advantage of using the get method for submitting a form. (4 marks) e) State briefly the difference between a flat-file database and a relationai database. (4 marks) f) List TWO (2) attributes used in a hidden field to temporarily store data and that needs to be sent to a server. (4 marks) g) Explain briefly the benefit of using session variables. Compare the usage of unset() and session_destroy() functions in PHP. (4 marks) h) Positive and negative numbers and 0 with no decimal places belong to which data type? (4 marks) i) Explain the difference between an assignment operator and a compound assignment operator. (4 marks) j) Maintaining users' state information is crucial and may lead to security issues if the information is not secured properly. List FOUR (4) tools for maintaining user state information in visiting websites. (4 marks)