logo

Crowdly

Browser

Add to Chrome

COMPSCI2021 Web Application Development 2 - 2024-25

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?

0%
0%
0%
0%
View this question

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?

0%
0%
0%
0%
View this question
In the example from the previous question, if the CSS position property was changed to fixed (but no other changes were made), what effect would it have?
0%
0%
0%
0%
View this question

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?

0%
0%
0%
0%
View this question

Given the following line of code:

<p id="displaytext"></p> 

Which of the following lines of JavaScript could display text within the paragraph element?

0%
0%
0%
0%
View this question

Why is the following XML fragment not well-formed?

<employee Number="478923"><name>Ian Smith</name><postcode="G12 8QQ"/></employee>
0%
0%
0%
0%
View this question

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?

0%
0%
0%
0%
View this question

Loading a website shows the following outcome in a browser.

BrowserWindow

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?

0%
0%
0%
0%
View this question

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?

0%
0%
0%
0%
View this question
Consider the HTML and CSS from the previous question. Which of the following edits to the code could change the colour that "My Heading" would appear?
0%
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.gla.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome