Web App Development 2 - Quizzes

1. Which of the following HTML TAGS is used at the start of a list item element?

2. What command would you issue to download an existing GitHub repository (that you have not downloaded before)?

3. Which of the following design philosophies does Django adhere to?

4. Suppose that Question is a model that is used to represent a multiple-choice question. Which of the following commands will print a list of the Question objects that are stored in the database?

5. Suppose that the following URLconf is added to urls.py in the mysite project:

url(r'^polls/',include('polls.urls')),

What happens when the user navigates to
https://wad2.pythonanywhere.com/polls/extra?

6. What effect does the following URLconf have?

url(r'^(?P<question_id>[0-9]+)/results/$', views.results, name='showresults')

7. Suppose that a view wishes to pass on a variable to a template, which should display the value of the variable. How should the view do this?

8. Which of the following is not an assertion from the class Django.Test.Testcase?

9. Which of the following are good strategies for creating tests in Django?

10. Which option from the following list best describes a 1-tier architecture?

11. Building web applications involves an array of challenges and complexities; these include:

12. Which of the following are HTTP methods for sending data?

13. Which of the following are good choices of URL? Choose all that apply.

14. What are the main components of Entity-Relationship diagrams?

15. Consider the following ER Diagram:

What line of code should be in the Course model?

16. Consider the following HTML and CSS code:

How will "Test message" be displayed?

17. Consider the following HTML and CSS code:

How will "WAD2" be displayed?

18. Consider the following HTML and JavaScript code:

What will the document.write method print out?

19. In the example event handling web page involving 5 nested div blocks, how many event listeners are triggered when the user clicks on the div block labelled 5?
HTML:

JS:

20. Consider the following HTML and JavaScript code:

What should be inserted at point *****?

21. Consider the following JavaScript code:

What will be returned if getReturnVal() is called?

22. What is the correct jQuery code to set the background colour of all p elements to red?

23. Which of the following XML fragments is well-formed?

24. Consider the XHTML code below. Is it well-formed?

25. Asynchronous JavaScript and eXtensible Markup Language (also known as AJAX) is a useful combination of technologies, which enables a web app to (select the statement that best applies):

26.

Consider the above HTML and JavaScript code contained in Parser.html. What text will be displayed when Parser.html is opened in a browser?

27. Which of the following statements best describes the differences between a DOM parser and a SAX parser?

28. When using HTTP, two communication methods are commonly used. Select the statement that best describes what each method does.

29. Web Application Frameworks have both benefits and drawbacks. Which of the following statements best describes the benefits and drawbacks:

30. Most web application frameworks make use of the Model View Controller design pattern (or some variant of this). What are the advantages and disadvantages of the MVC pattern? Select the statement that best applies: