Get All Weeks Web Application Technologies and Django Quiz Answers
Table of Contents
Web Application Technologies and Django Week 01 Quiz Answers
Q1. When a browser connects to a web server to retrieve a document, what default TCP/IP port is used?
[expand title=View Answer] 80 [/expand]
Q2. When a browser connects to a web server to retrieve a document, what command is sent to the server?
[expand title=View Answer] GET [/expand]
Q3. What does the second “T” of HTTP stand for?
[expand title=View Answer] Transfer [/expand]
Q4. Which of the following is NOT part of a Uniform Resource Locator:
[expand title=View Answer] Operating System [/expand]
Q5. Which HTML tag typically generates a request to retrieve a document from the server when it is clicked?
[expand title=View Answer] a [/expand]
Q6. What standards organization publishes many of the documents that describe the protocols we use on the Internet?
[expand title=View Answer] IETF [/expand]
Q7. Which of the HTTP headers does the browser look at to decide how to display the retrieved document?
[expand title=View Answer] Content -Type [/expand]
Q8. In Python, what is the difference between an open file and a socket?
[expand title=View Answer]A socket can be simultaneously read and written[/expand]
Q9. What must happen before a client can open a socket?
[expand title=View Answer] A server must be running that is listening for socket connections [/expand]
Q10. What port is used for Simple Mail Transfer Protocol (SMTP)?
[expand title=View Answer] 25 [/expand]
Q11. What port is used by default for Secure HTTP (https)?
[expand title=View Answer]443[/expand]
Q12. What is the topic of the Internet Engineering Task Force document RFC2616?
[expand title=View Answer] HTTP – HyperText Transfer Protocol [/expand]
Q13. What is the topic of the Internet Engineering Task Force document RFC42?
[expand title=View Answer]SMTP – Simple Mail Transfer Protocol [/expand]
Q14. Which of these Internet Engineering Task Force (IETF) documents described the “Internet Control Message Protocol”?
[expand title=View Answer] RFC792 [/expand]
Q15. What is the purpose of encode() in the socket1.py code:
[expand title=View Answer] To convert the data to UTF-8 before sending [/expand]
Q16. What can’t you see in the Browser Developer Mode for most browsers?
[expand title=View Answer] The code that runs in the server [/expand]
Q17. In the sample server.py code, which function call actually waits for incoming socket connection requests?
[expand title=View Answer] listen() [/expand]
Q18. In the sample server.py code, which function call will fail if another application is already using a port?
[expand title=View Answer] bind() [/expand]
Q19. Which Python library makes it very easy to make HTTP requests from Python?
[expand title=View Answer] urllib [/expand]
Web Application Technologies and Django Week 02 Quiz Answers
Django Tutorial 1 Quiz Answers
Q1. These questions come from the Django project tutorial materials.
What is the name of the application we build in step 1 of “Writing your first Django app, part 1”?
[expand title=View Answer] polls[/expand]
Q2. What command do we run on PythonAnywhere instead of “python manage.py runserver”?
[expand title=View Answer] python manage.py paw_restart [/expand]
Q3. What command is used to add a new application to a Django project?
[expand title=View Answer] python manage.py startapp [/expand]
Q4. In the mysite/urls.py file, what is the basic idea of “include”?
[expand title=View Answer] To make it easy to plug-and-play URLs [/expand]
Q5. What is the purpose of the admin site in a Django project?
[expand title=View Answer] It lets you add, change, and delete data items[/expand]
Web Application Technologies and Django Week 03 Quiz Answers
HTML Quiz Answers
Q1. What is true about the following HMTL?
<a href="http://www.dr-chuck.com/page2.htm">Second Page</a>
[expand title=View Answer] The reference is an absolute reference [/expand]
Q2. What do you put at the beginning of an HTML file to inform the browser which variant of HTML you will be using in this document?
[expand title=View Answer] DOCTYPE [/expand]
Q3. What is the preferred tag in modern HTML to indicate that text is to be shown in bold format?
[expand title=View Answer]strong [/expand]
Q4. What is the preferred tag in modern HTML to indicate that text is to be shown in italics format?
[expand title=View Answer] em[/expand]
Q5. What organization is responsible for standards for HTML and the web?
[expand title=View Answer] World Wide Web Consortium [/expand]
Q6. What is the HTML tag for an item in a bulleted list?
[expand title=View Answer] li [/expand]
Q7. Which is the correct ordering of opening tags in a well-formed html document?
[expand title=View Answer] html head title body h1 [/expand]
Q8. What is the start of an HTML comment?
[expand title=View Answer]
Web Application Technologies and Django Week 04 Quiz Answers
CSS Quiz answers
Q1. Which of the following is NOT a way to include CSS in an HTML page?
[expand title=View Answer] Using the tag to enclose other tags [/expand]
Q2. Which HTML tag does nothing to the text it surrounds and has as its sole purpose to create a “handle” so as to be able to apply CSS to the text.
[expand title=View Answer] span [/expand]
Q3. Why is there more than one font listed in the following CSS rule?
body { font-family: "Trebuchet MS", Helvetica, Arial, sans-serif; }
[expand title=View Answer] They are listed in descending preference order if the fonts specified are not present in the browser [/expand]
Q4. Which CSS selector controls how a link (anchor tag) looks while the user mouses over the link (i.e., while hovering)?
[expand title=View Answer] a:hover [/expand]
Q5. Which of these CSS rules make text appear in a bold face font?
[expand title=View Answer]font-weight: bold [/expand]
Q6. What CSS selector would style a tag that looks like this:
< ... class="puppy">
[expand title=View Answer]%puppy { … [/expand]
Q7. What CSS rule allows you include a tag in markup but hide it from view in the browser?
[expand title=View Answer] visibility: hidden; [/expand]
Q8. Which of the following CSS selectors is between the content area and the border? (CSS box model)
[expand title=View Answer] padding[/expand]
Q9. What tag is used to import a style sheet into an HTML document?
[expand title=View Answer] [/expand]
Q10. Which of the following statements are true?
[expand title=View Answer]
1.An “id” attribute should only be used once in an HTML file
2.A “class” attribute can be used many times in an HTML file
[/expand]
Q11. For the following HTML, which description of the “style=” attribute is most accurate?
<p style="color: red;">
[expand title=View Answer] It allows the application of the specified CSS rule to the content of the paragraph [/expand]
Web Application Technologies and Django Week 05 Quiz Answers
Basic SQL Answers
Q1. Structured Query Language (SQL) is used to (check all that apply)
[expand title=View Answer]
Create a table
Delete data
Insert data
[/expand]
Q2. Which of these is the correct syntax to make a new database using the command line?
[expand title=View Answer] CREATE DATABASE people; [/expand]
Q3. “INSERT INTO” is the keyword used to insert data into tables.
[expand title=View Answer] True [/expand]
Q4. Which keyword is used to add conditions to your query?
[expand title=View Answer] WHERE[/expand]
Q5. Which command is used to retrieve all records from the table Users?
[expand title=View Answer] SELECT * FROM Users [/expand]
Q6. Which keyword will cause the results of the query to be displayed in sorted order?
[expand title=View Answer] ORDER BY [/expand]
Q7. The LIMIT clause helps to narrow down the number of rows returned by the query.
[expand title=View Answer] True [/expand]
Q8. Images, PDFs, and movies cannot be stored in a database.
[expand title=View Answer] False [/expand]
Q9. A primary key can be set to null.
[expand title=View Answer] False [/expand]
Get All Course Quiz Answers of Django for Everybody Specialization
Web Application Technologies and Django Quiz Answers
Building Web Applications in Django Coursera Quiz Answers
Django Features and Libraries Coursera Quiz Answers
Using JavaScript, JQuery, and JSON in Django Coursera Quiz Answers