Web Application Technologies and Django Quiz Answers

Get All Weeks Web Application Technologies and Django Quiz Answers

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?

View
80

Q2. When a browser connects to a web server to retrieve a document, what command is sent to the server?

View
GET

Q3. What does the second “T” of HTTP stand for?

View
Transfer

Q4. Which of the following is NOT part of a Uniform Resource Locator:

View
Operating System

Q5. Which HTML tag typically generates a request to retrieve a document from the server when it is clicked?

View
a

Q6. What standards organization publishes many of the documents that describe the protocols we use on the Internet?

View
IETF

Q7. Which of the HTTP headers does the browser look at to decide how to display the retrieved document?

View
Content -Type

Q8. In Python, what is the difference between an open file and a socket?

View
A socket can be simultaneously read and written

Q9. What must happen before a client can open a socket?

View
A server must be running that is listening for socket connections

Q10. What port is used for Simple Mail Transfer Protocol (SMTP)?

View
25

Q11. What port is used by default for Secure HTTP (https)?

View
443

Q12. What is the topic of the Internet Engineering Task Force document RFC2616?

View
HTTP – HyperText Transfer Protocol

Q13. What is the topic of the Internet Engineering Task Force document RFC42?

View
SMTP – Simple Mail Transfer Protocol

Q14. Which of these Internet Engineering Task Force (IETF) documents described the “Internet Control Message Protocol”?

View
RFC792

Q15. What is the purpose of encode() in the socket1.py code:

View
To convert the data to UTF-8 before sending

Q16. What can’t you see in the Browser Developer Mode for most browsers?

View
The code that runs in the server

Q17. In the sample server.py code, which function call actually waits for incoming socket connection requests?

View
listen()

Q18. In the sample server.py code, which function call will fail if another application is already using a port?

View
bind()

Q19. Which Python library makes it very easy to make HTTP requests from Python?

View
urllib

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”?

View
polls

Q2. What command do we run on PythonAnywhere instead of “python manage.py runserver”?

View
python manage.py paw_restart

Q3. What command is used to add a new application to a Django project?

View
python manage.py startapp

Q4. In the mysite/urls.py file, what is the basic idea of “include”?

View
To make it easy to plug-and-play URLs

Q5. What is the purpose of the admin site in a Django project?

View
It lets you add, change, and delete data items

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> 
View
The reference is an absolute reference

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?

View
DOCTYPE

Q3. What is the preferred tag in modern HTML to indicate that text is to be shown in bold format?

View
strong

Q4. What is the preferred tag in modern HTML to indicate that text is to be shown in italics format?

View
em

Q5. What organization is responsible for standards for HTML and the web?

View
World Wide Web Consortium

Q6. What is the HTML tag for an item in a bulleted list?

View
li

Q7. Which is the correct ordering of opening tags in a well-formed html document?

View
html head title body h1

Q8. What is the start of an HTML comment?

View

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?

View Using the tag to enclose other tags

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.

View
span

Q3. Why is there more than one font listed in the following CSS rule?

 body { font-family: "Trebuchet MS", Helvetica, Arial, sans-serif; } 
View
They are listed in descending preference order if the fonts specified are not present in the browser

Q4. Which CSS selector controls how a link (anchor tag) looks while the user mouses over the link (i.e., while hovering)?

View
a:hover

Q5. Which of these CSS rules make text appear in a bold face font?

View
font-weight: bold

Q6. What CSS selector would style a tag that looks like this:

 < ... class="puppy"> 
View
%puppy { …

Q7. What CSS rule allows you include a tag in markup but hide it from view in the browser?

View
visibility: hidden;

Q8. Which of the following CSS selectors is between the content area and the border? (CSS box model)

View
padding

Q9. What tag is used to import a style sheet into an HTML document?

View

Q10. Which of the following statements are true?

View
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

Q11. For the following HTML, which description of the “style=” attribute is most accurate?

 <p style="color: red;">
View
It allows the application of the specified CSS rule to the content of the paragraph

Web Application Technologies and Django Week 05 Quiz Answers

Basic SQL Answers

Q1. Structured Query Language (SQL) is used to (check all that apply)

View
Create a table

Delete data

Insert data

Q2. Which of these is the correct syntax to make a new database using the command line?

View
CREATE DATABASE people;

Q3. “INSERT INTO” is the keyword used to insert data into tables.

View
True

Q4. Which keyword is used to add conditions to your query?

View
WHERE

Q5. Which command is used to retrieve all records from the table Users?

View
SELECT * FROM Users

Q6. Which keyword will cause the results of the query to be displayed in sorted order?

View
ORDER BY

Q7. The LIMIT clause helps to narrow down the number of rows returned by the query.

View
True

Q8. Images, PDFs, and movies cannot be stored in a database.

View
False

Q9. A primary key can be set to null.

View
False
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

Team Networking Funda
Team Networking Funda

We are Team Networking Funda, a group of passionate authors and networking enthusiasts committed to sharing our expertise and experiences in networking and team building. With backgrounds in Data Science, Information Technology, Health, and Business Marketing, we bring diverse perspectives and insights to help you navigate the challenges and opportunities of professional networking and teamwork.

Leave a Reply

Your email address will not be published. Required fields are marked *