Web App Development 2 - 2016 - Section B (HTML, CSS, JS, etc)

1. CSS stands for:

2. Which CSS selector applies to all h2 tags within a class called "yellow":

3. Which CSS selector applies to all div tags within the ID called "red":

4. This question uses the following code:

p {
background-color: yellow;
border: 1px solid black;
}
p #blue {
background-color: blue;
}

Given the HTML code shown below how would the element be rendered:
<p><p id="blue">Hello World</p></p>

5. This question uses the following code:

p {
background-color: yellow;
border: 1px solid black;
}
p #blue {
background-color: blue;
}

Given the HTML code shown below how would the element be rendered:
<p><p class="blue" style="background-color: green">Goodbye World</p></p>

6. Which line of JQuery code selects the element with a class red and assigns an event to when the element is clicked:

7. Which line of code selects a paragraph element with the class "blue", and assigns a hover event to it, such that on hover the text turns "green", and off hover it turns "red".

8. The structure of Uniform Resource Locator structure is as follows:

9. REST and SOAP provide different ways for exchanging structured information. However, they both have advantages and disadvantages. Select the statement that best applies.

10. What is the role of XML on the web? Select the statement that best describes the role of XML on the web.