Looking for COMPSCI2021 Web Application Development 2 - 2024-25 test answers and solutions? Browse our comprehensive collection of verified answers for COMPSCI2021 Web Application Development 2 - 2024-25 at moodle.gla.ac.uk.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
You are writing a web app where a user submits data entered into an HTML form and the browser tries to upload this to a server.
Which of the following URLs would be formatted correctly to send the data?
Consider the following HTML code
<h3> Exam Format </h3><p id="thetitle">The exam will be multiple choice</p>
and the following JavaScript code which appears below it in a <script> element
element = document.getElementById("thetitle");document.write("<p>"+element.nodeName+"</p>");What text will be written by document.write?
Consider the following HTML code:
<div> <p>Paragraph</p> <h2>Heading 2</h2> <h3>Heading 3</h3> </div>
Assuming jQuery has been properly imported, which of the following statements, when placed in a script element at the bottom of the HTML file, would colour Heading 3 blue?
Given the following line of code:
<p id="displaytext"></p>
Which of the following lines of JavaScript could display text within the paragraph element?
Why is the following XML fragment not well-formed?
<employee Number="478923"><name>Ian Smith</name><postcode="G12 8QQ"/></employee>Look at the following JavaScript code:
var a=2;var b=4;function resetValues() { var a=5; b=10;}resetValues();
Which of the following statements would be true after this code was executed?
Loading a website shows the following outcome in a browser.
You note that when resizing the window, the green box continues to overlap the text, remaining a constant distance from the bottom and right-hand side.
What type of position has been set in CSS for the green box?
Consider the following HTML and CSS code:
<html> <head> <style type="text/css"> body h3.heading { color : red; } body h3.heading { color : blue; } h3.heading { color : green; } </style> </head> <body> <h3 class="heading">My Heading</h3> </body></html>
Which of the following statements is true?