College of Computing and InformaticsAssignment 2
Deadline: Sunday 10/04/2022 @ 23:59
[Total Mark for this Assignment is 8]
Student Details:
Name: ###
ID: ###
CRN: ###
Instructions:
•
•
•
•
•
•
•
•
•
•
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on
Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between
words, hide characters, use different character sets, convert text into image or languages other than English
or any kind of manipulation).
Email submission will not be accepted.
You are advised to make your work clear and well-presented. This includes filling your information on the cover
page.
You must use this template, failing which will result in zero mark.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by
the question.
Late submission will result in ZERO mark.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.
Question One
Pg. 01
Learning
Outcome(s):
LO4: Build web
applications using
PHP and MySQL
Question One
Write the SQL command for the following tasks.
Listing the databases on the MySQL server host
Answers:
Access/change database
Answers:
Showing the current selected database
Answers:
Showing tables in the current database
Answers:
Showing the structure of a table
Answers:
Create a user
Answers:
Remove a user
Answers:
Give “guest” permission to view the World database:
Answers:
Create a table
Answers:
2 Marks
Question Two
Pg. 02
Learning
Outcome(s):
LO4: Build web
applications using
PHP and MySQL
Question Two
State the main PHP errors types.
Answer:
1 Marks
Question Three
Pg. 03
Learning
Outcome(s):
LO1: Describe
methods and
tools in designing
a creative and
dynamic website
Question Three
Write HTML Form and PHP code to upload multiple any-type files
Answer:
2 Marks
Question Four
Pg. 04
Learning
Outcome(s):
LO1: Describe
methods and
tools in designing
a creative and
dynamic website
Question Four
Write HTML Form and PHP code to Calculate BMI(Body Mass Index).
Answer:
3 Marks