Web App Development 2 - 2016 - Section B (HTML, CSS, JS, etc)
1. CSS stands for:
Cascading Style Sheet
Counterstrike Source Sheet
Cascade Style Sheet
Cascading Styling Sheet
2. Which CSS selector applies to all h2 tags within a class called "yellow":
yellow h2
.yellow h2
$yellow h2
h2 #yellow
3. Which CSS selector applies to all div tags within the ID called "red":
div #red
red blue
$red div
red div
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>
Hello world with no border and no background color
Hello world, with a solid border and a yellow background
Hello world, with no border and blue background
Hello world with a solid border and blue background
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>
Goodbye world, with border and yellow background
Goodbye world with border and green background
Goodbye world with no border and no background color
Goodbye world, with no border and green background
6. Which line of JQuery code selects the element with a class red and assigns an event to when the element is clicked:
$(".red").click()
$("#red").onclick()
$("#red").click()
$(".red").onclick()
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".
$("p.blue").hover( function() { $(this).css('color', 'green’); }, function() { $(this).css('color', ‘red’); };
$("p#blue").onhover( function() { $(this).css('color', 'green’); }, function() { $(this).css('color', 'red'); });
$("p#blue").hover( function() { $(this).css('color', ‘green’); }, function() { $(this).css('color', ‘red'); });
$("p.blue").onhover( function() { $(this).css('color', ‘green’); }, function() { $(this).css('color', ‘red'); });
8. The structure of Uniform Resource Locator structure is as follows:
protocol://domain/path?query_string=val #fragment_identifier
protocol://domain/path&query_string=val #fragment_identifier
scheme://domain/path&query_string=val#fragment_identifier
scheme://domain/path?query_string=val #fragment_identifier
9. REST and SOAP provide different ways for exchanging structured information. However, they both have advantages and disadvantages. Select the statement that best applies.
SOAP and REST are protocol specific, but SOAP is slow and very verbose
SOAP is reliable but very verbose, whereas REST is simple but adds lots of overheads.
SOAP and REST are complicated, very verbose, slow and add lots of overheads
SOAP and REST both build upon HTTP, but REST puts the burden on the developer to process the message
10. What is the role of XML on the web? Select the statement that best describes the role of XML on the web.
to describe semi-structured documents, to be a mechanism for storing annotated data, and to display data
to describe semi-structured documents, to be mechanism for storing annotated data, to be a mechanism for transporting annotated data
to be mechanism for storing annotated data, to be a mechanism for sharing annotated data, and to display data
to be mechanism for storing annotated data, to be a mechanism for sharing annotated data, and to be a mechanism for securing annotated data
Submit Quiz