PROFESSIONAL ACADEMIC STUDY RESOURCES WEBSITE +1 813 434 1028  proexpertwritings@hotmail.com

Web Programming IT361

Description

Question One

Write a JavaScript code that performs the following on the string “College of Computing and Informatics“:Display the character located at index 11.Display the character code for the character at index 9.Convert the entire string to uppercase and display the result.

The output should be formatted like this:

Character at index 11: C

Character at index 9: 102

Upper Case: COLLEGE OF COMPUTING AND INFORMATICS

Important notes:

  • You should have to copy and paste the script as your answer to this question. DON’T take a screenshot for your script. It must be an editable script.
  • Take a screenshot of your output web page and paste it as a part of your answer.

Question Two

Draw a Document Object Model DOM for the following document. Also rewrite the xml code by filling yours and your friends’ particulars, i.e name=ali assiri, age=24 etc.

HINT: You can draw sketch by hand drawing. Then, take a phone picture and paste it OR sketching using a software tool.

<students>

<student id=”_____________”>

<name> YourName=_________ </name>

<age>_______</age>

<email> _________@seu.edu.sa</email>

<course> ________</course>

</student>

<student id=”_____________”>

<name> YourFriendName=_________ </name>

<age>_______</age>

<email> _________@seu.edu.sa</email>

<course> ________</course>

</student>

<students>

Marking criteria: total marks = 2 [1 marks for the figure] + [1 mark for the particulars in the code i.e. name, age etc.]

Question Three

Discuss two of the importance of XML Namespaces in XML documents. Also, explain how they help avoid naming conflicts and provide an example to illustrate that.

Marking Criteria:

1 mark for importance (0.5 mark for each one), 1 for example.

Question Four

Assume you have a PHP variable $a with the value of 8. Write PHP program to output the square and cube $a.

Share your love

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *