0% found this document useful (0 votes)
2 views4 pages

Internet Programming II

The document outlines the structure and content of an examination for various Bachelor's degrees in Computer Science, Information Technology, and Business Information Technology, specifically focusing on Internet Programming II. It includes instructions for answering questions related to PHP programming, such as coding practices, form handling, and file uploads. Additionally, it covers topics like naming conventions, array types, and security measures for file uploads in PHP.

Uploaded by

uniteymaximus
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

Internet Programming II

The document outlines the structure and content of an examination for various Bachelor's degrees in Computer Science, Information Technology, and Business Information Technology, specifically focusing on Internet Programming II. It includes instructions for answering questions related to PHP programming, such as coding practices, form handling, and file uploads. Additionally, it covers topics like naming conventions, array types, and security measures for file uploads in PHP.

Uploaded by

uniteymaximus
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
2ZeETeEcCH Inventing the future ZU/WI/25/EXM/6 UNIVERSITY EXAMINATIONS 2025/2026 ORDINARY EXAMINATION FOR THE DEGREE OF BACHELOR OF BACHELOR OF COMPUTER SCIENCE/ BACHELOR OF INFORMATION TECHNOLOGY/BACHELOR OF BUSINESS INFORMATION TECHNOLOGY BSD 322: INTERNET PROGRAMMING II DATE: APRIL 2026 TIME: 2 HOURS INSTRUCTIONS: Answer Question One and Any Other Two questions QUESTION] a) Describe three applicable areas of PHP programming in web application developrnent (3 marks) b) Describe four rules of naming valuables in PHP programming (4 marks) ©) Write PHP code of your choice implementing if, else if and else statement (4 marks) d) Using relevant example, differentiate between include and require in php (4 marks) e) Assume we have a standard footer file called "[Link]", that looks like this: Copyright © 2024-". date("Y") ." [Link]

"; Required i. Write the expected output of the above code (2 Marks) ii, Write PHP code that will include the above footer script to other webpages (4 marks) f) Distinguish between $_POST and $_GET in PHP forms (4 marks) 9) While giving examples, describe three types of arrays in PHP (5 marks) Page lof 4 QUESTION 2 a) You have been provided with the below HTML form Register Have an Account ? Login Her : Database Name: ZDS Table name: registration Required Write a php script code to post Full name, Last Name, Email and leave us a few word to the database (15 marks) Using relevant examples, describe five string methods used in PHP (5 marks ) Page 2of4 QUESTION 3 a) You have been provided with the below HTML form Login Email address Enter email Password Password Database Name: ZDS Table name: registration Required i. Write php script code that will ensure registered users can login login and directed to [Link] (15 marks) Write any php code of your choice implementing foreach loop (5 marks) Page 3 of & QUESTION 4 a) You have been provided with the below HTML form Upioad an Image 2 t a 5 a . 1 ® 1 : Chosse file : ce 1 i i r Le Sone a) “Write a a Bhp script that can be used to upload the file to the database and file should not be more than 500MB {10 Marks) b) How would you validate the uploaded file to allow only PDF or DOCX formats? {5 Marks) ¢) Discuss how to prevent malicious file uploads in PHP. {5 Marks) Page 4 of 4

You might also like