Description
see
Assignment 2
Deadline: Day 16/04/2025 @ 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.
Restricted – مقيد
Question One
Pg. 01
Learning
Outcome(s): 1,4
Describe methods
and tools in web
development.
Design XML
Schemas and
documents.
Restricted – مقيد
Question One
1.5 Marks
What are the differences between HTML and XML? Mention three differences.
Question Two
Pg. 02
Learning
Outcome(s): 6
Build web
applications
using PHP and
MySQL.
Restricted – مقيد
Question Two
2.5 Marks
How do you declare and initialize two variables in PHP? Write a script that adds
them together and displays the result.
Question Three
Pg. 03
Learning
Outcome(s): 6
Question Three
What will be the output of the code below?
Build web
applications using
PHP and MySQL.
$x = 5;
echo $x;
echo “”;
echo $x+++$x++;
echo “”;
echo $x;
echo “”;
echo $x—$x–;
Restricted – مقيد
1 Mark
Question Four
Pg. 04
Learning
Outcome(s): 3
Question Four
3 Marks
Given the following html code, write a Javascriptscript the does the following:
Develop dynamic
web pages using
JavaScript.
1. Change unorder list’s color to green.
2. Change the first paragraph content to your name and student ID.
3. Change the attribute’s “alt” value to “Firefox logo.”
DOM example
Mozilla is cool
At Mozilla, we’re a global community of
technologists
thinkers
builders
working together to keep the Internet alive
and accessible, so people worldwide can be informed
contributors and creators of the Web.
Read the Mozilla Manifesto to learn more
about us.
Restricted – مقيد
Question Four
Pg. 05
Restricted – مقيد
Purchase answer to see full
attachment