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