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