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.
pull add commit push
push commit add pull
push add commit pull
pull commit push add
2. The typical architecture of a web application follows a:
Three Tier architecture
Two tier architecture
Model View Controller
Model View Template
3. What design pattern does the django web application use:
Model View Template Pattern
Model View Controller Pattern
Subject Observer Pattern
Factory Pattern
4. An overriding principle when design web applications is:
separation of content
separation of concerns
concerns separation
keep’em separated
5. The responsibilities of the middleware include: (select option where all correctly apply):
handle incoming requests from servers, request data from the client, return an html/xml response the server
handle incoming request from clients, request data from a database, return a html/xml response to the server
handle incoming requests from clients, request data from a database, return an html/xml response to the client
handle incoming requests from clients and servers, request data from server, return a html/xml response to the client and server.
6. What does HTTP stand for?
Hyper Text Transfer Protocol
Hyper Text The Protocol
Hyper Text Transfer Process
The good of all internet citizens
7. The two most frequently used in HTTP requests are:
PUSH and PULL
FETCH and POST
GET and POST
PUSH and GET
8. Which problem does HTTP suffer from:
statelessness, maintains no state
entomophobia, fear of being crawled
statefulness, maintains state
statuslessness, maintains no status
9. AJAX stands for:
Asynchronous JavaScript and eXtensible Markup Language
Asynchronous Java and Extensible Markup Language
Amsterdam Football club
Asynchronous JavaScript and eXtensible Makeup Language
10. AJAX enables us to (Select the option where all statements apply):
make requests without reloading the page, to receive and work with data from the server, using only xml data
make requests without reloading the page, to receive and work with data from the server, using any type data
make requests by reloading the page, to receive and work with data from the server, using any type data
make requests by reloading the page, to receive and work with data from the server, using only xml data
11. CSS stands for:
Cascade Style Sheet
Cascading Style Sheet
Counterstrike Source Sheet
Cascading Styling Sheet
12. Which selector applies to all tags with a class called blue and are paragraph elements:
.blue p
$blue p
#blue p
blue p
13. Which selector applies to all tags with the ID called blue and are div elements:
$blue div
div #blue
blue div
div blue
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
Hello world, with a solid border and a yellow background
Hello world with a solid border and blue background
Hello world with no border and no background color
Hello world, with no border and blue background
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
Goodbye world with no border and no background color
Goodbye world, with border and yellow background
Goodbye world, with no border and green background
Goodbye world with border and green background
16. By referencing the Javascript as follows in the HTML is an example of:<head><link type="text/javascript" href="broken.js"></head>
external referencing
online referencing
embedded referencing
inline referencing
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:
page load times will be faster, content is separated from style, difficult to maintain
page load times will be slower, content is separated from style, difficult to maintain
page load times will be slower, content is separated from style, easy to maintain
page load times will be faster, content is separated from style, easy to maintain
18. Which line of JQuery code selects the element with a class brown and assigns an event to when the element is clicked:
$(“.brownâ€).onclick( )
$(“#brownâ€).onclick( )
$(“#brownâ€).click( )
$(“.brownâ€).click( )
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.
$("pâ€).onhover( function() { $(this).css('color', ‘blue’); },</br> function() { $(this).css('color', ‘red'); });
$("pâ€).onhover( function() { $(this).css('color', 'red’); },</br> function() { $(this).css('color', 'blue'); });
$("p").hover( function() { $(this).css('color', ‘blue’); },</br> function() { $(this).css('color', ‘red'); });
$("p").hover( function() { $(this).css('color', 'red’); },</br> function() { $(this).css('color', 'blue'); };
20. When writing JQuery code, it should be encapsulated by:
$(document).onready(function() {</br> // JQuery code to be added in here.</br> });
$(document).ready(function() {</br> // JQuery code to be added in here.</br> });
$().ready(function() {</br> // JQuery code to be added in here.</br> });
$().onready(function() {</br> // JQuery code to be added in here.</br> });
Submit Quiz