Web App Development 2 - 2015

1. What sequence of commands would you issue to upload and share your code in a GitHub repository? You can assume the added code wont cause a conflict with existing code.

2. The typical architecture of a web application follows a:

3. What design pattern does the django web application use:

4. An overriding principle when design web applications is:

5. The responsibilities of the middleware include: (select option where all correctly apply):

6. What does HTTP stand for?

7. The two most frequently used in HTTP requests are:

8. Which problem does HTTP suffer from:

9. AJAX stands for:

10. AJAX enables us to (Select the option where all statements apply):

11. CSS stands for:

12. Which selector applies to all tags with a class called blue and are paragraph elements:

13. Which selector applies to all tags with the ID called blue and are div elements:

14. The following code applies to the following question:
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 id=“blue”>Hello World

15. The following code applies to the following question:
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 style=“background-color: green”>Goodbye World

16. By referencing the Javascript as follows in the HTML is an example of:
<head>
<link type="text/javascript" href="broken.js">
</head>

17. Assume that user has visited the site on previous occasions, and within the HTML on the site a piece of Javascript is referenced as follows:
<head>
<link type="text/javascript" href="notbroken.js">
</head>
Select the option, where all apply:

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

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

20. When writing JQuery code, it should be encapsulated by: