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?

  • 119
  • 25
  • 142
  • 80
  • 420

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

  • POST
  • GET
  • PUT
  • DELE

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

  • Transpose
  • Transport
  • Transfer
  • Movement

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

  • Host
  • Document
  • Protocol
  • Operating System

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

  • h1
  • img
  • a
  • div
  • b
  • p

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

  • 6-Sigma
  • IETF
  • Educause
  • RIA
  • IRR

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

  • Display-type
  • Content-length
  • Content-type
  • Location
  • ETAG
  • Format

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

  • When you open a file, you get a read-and-write handle to allow simultaneous operations
  • A program writes to a socket, it can read its data back after closing the socket
  • A socket can be simultaneously read and written
  • A program can rewind a socket and start writing again at the beginning of the socket

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

  • The client must be on the same system as the server
  • A server must be running that is listening for socket connections
  • The server must allocate sufficient memory to handle any needed retransmissions
  • The client must be in the same folder as the server
  • The client must create a local file with the same name as the socket

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

  • 25
  • 420
  • 142
  • 119
  • 80

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

  • 119
  • 25
  • 80
  • 443
  • 142

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

  • SMTP – Simple Mail Transfer Protocol
  • HTTP – HyperText Transfer Protocol
  • FTP – File Transfer Protocol
  • POP – Post Office Protocol
  • Message Data Types

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

  • SMTP – Simple Mail Transfer Protocol
  • POP – Post Office Protocol
  • Message Data Types
  • FTP – File Transfer Protocol
  • HTTP – HyperText Transfer Protocol

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

  • RFC1224
  • RFC792
  • RFC5325
  • RFC815

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

  • To make sure that the web server properly recognizes the GET command
  • To break the data into packets for network transmission
  • To convert the data to UTF-8 before sending
  • To check if there is any data ready to send

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

  • The HTTP response code (like 200 or 404) for each request
  • The browser Document Object Model (DOM)
  • The request and response headers for retrieved documents
  • The code that runs in the server

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

  • decode()
  • bind()
  • listen()
  • recv()
  • socket()

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

  • bind()
  • recv()
  • listen()
  • decode()
  • socket()

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

  • re
  • urllib
  • decode
  • json

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

  • cats
  • dogs
  • blog
  • polls
  • autos

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

  • python manage.py check – and then reload the web application
  • python manage.py migrate – and then set the virtual environment
  • python manage.py paw_restart
  • python startapp polls

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

  • python manage.py create
  • python manage.py new
  • python manage.py build
  • python manage.py startapp

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

  • To make it easy to plug-and-play URLs
  • To pull in commonly used HTML material
  • To properly install Django and all its dependencies
  • To apply a regular expression to the incoming path in the request object

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

  • It makes sure all of the software is always the latest version
  • It tracks user activity
  • It lets you add, change, and delete data items
  • It checks to see if your server is using too many resources

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> 
  • The reference is an absolute reference
  • The text “Second Page” is improperly placed and will not be seen
  • The HTML is improperly formed and there will be a syntax error
  • The reference is a relative 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?

  • <?xml version>
  • <body>
  • <meta type>
  • <xs:sequence>
  • <html>

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

  • bold
  • strong
  • <xs:bold>
  • span
  • b

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

  • i
  • em
  • span
  • <xs:italics>
  • italics

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

  • CERN
  • HTMLco.com
  • NCSA
  • World Wide Web Consortium
  • Unesco

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

  • li
  • bullet
  • list:item
  • item
  • tag

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

  • h1 body title head html
  • body html h1 head title
  • html head title body h1
  • title head html body h1

Q8. What is the start of an HTML comment?

  • #
  • <!–
  • /*
  • ”’

Q9. What tag is used in a document’s <head> area to set the text shown in the tab of the browser or title bar?

  • meta
  • script
  • style
  • title

Q10. In HTML, what attribute is used to indicate text that will be shown if an image is not loaded or read to a user who is using a screen reader?

  • src
  • onclick
  • href
  • alt

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?

  • External Style Sheet
  • Directly on an HTML tag using the style= attribute
  • Using the <font> tag to enclose other tags
  • Using the <style> tag inline in the HTML document

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.

  • h1
  • embed
  • span
  • handle

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

 body { font-family: "Trebuchet MS", Helvetica, Arial, sans-serif; } 
  • They are listed in descending preference order if the fonts specified are not present in the browser
  • They are the preferred fonts for Windows, Mac, Linux, and “Other” systems
  • This is a syntax error, the rule should start with “font-name”
  • This is a syntax error, square braces [ ] should be used for the CSS rule

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

  • hover
  • :hover
  • a:hover

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

  • font-expand: 10%
  • font-style: bold
  • font-weight: bold
  • strong: yes
  • font-bold: on

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

 < ... class="puppy"> 
  • puppy !important { …
  • %puppy { …
  • puppy { …
  • .puppy { …
  • _puppy { …

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

  • visibility: hidden;
  • status: off;
  • display: block;
  • right: 0;
  • font-size: -1px;

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

  • pixels
  • margin
  • perimeter
  • edge
  • padding

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

  • <link>
  • link
  • <link

Q10. Which of the following statements are true?

  • An “id” attribute should only be used once in an HTML file
  • A tag can only have a “class” attribute or an “id” attribute but not both
  • It is recommended to use an “id” attribute many times in an HTML file
  • A “class” attribute can only be used once in an HTML file
  • 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;">
  • It changes the color of the tab for this page in the browser to be red
  • It allows the application of the specified CSS rule to the content of the paragraph
  • It is an HTML syntax error and will be ignored
  • It changes the background color of the paragraph to red
  • It contains JavaScript to be executed when the user’s mouse hovers over 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)

  • Create a table
  • Delete data
  • Insert data
  • Run python

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

  • CREATE people;
  • MAKE DATASET people;
  • MAKE people;

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

  • True
  • False

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

  • IF

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

  • SELECT all FROM Users
  • SELECT * FROM Users
  • RETRIEVE all FROM Users

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

  • None of these

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

  • True
  • False

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

  • True
  • False

Q9. A primary key can be set to null.

  • True
  • 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

Welcome to the official Author Page of Team Networking Funda! Here, we are dedicated to unraveling the intricate world of networking, connectivity, and team dynamics. Our mission is to provide you with insightful, actionable advice and solutions that will help you build strong connections, foster collaboration, and achieve success in all aspects of your professional life.

🌐 Networking Insights: Dive into the art of networking with us, as we explore strategies, tips, and real-world examples that can elevate your networking game. Whether you're a seasoned pro or just starting, we have valuable insights to offer.

🤝 Team Synergy: Discover the secrets to creating high-performing teams. We delve into team dynamics, leadership, and communication to help you unlock the full potential of your team and achieve outstanding results.

🚀 Professional Growth: Explore the tools and techniques that can accelerate your professional growth. From career development to personal branding, we're here to guide you toward achieving your goals.

🌟 Success Stories: Be inspired by success stories, case studies, and interviews with experts who have mastered the art of networking and teamwork. Learn from their experiences and apply their insights to your journey.

💬 Engage and Connect: Join the conversation, leave comments, and share your own networking and team-building experiences. Together, we can create a vibrant community of like-minded professionals dedicated to growth and success.

Stay tuned for a wealth of resources that will empower you to excel in your professional life. We're here to provide you with the knowledge and tools you need to thrive in today's interconnected world.

We are Team Networking Funda, a group of passionate authors and networking enthusiasts committed to sharing our expertise and experiences in the world of networking and team building. With backgrounds in [Your Background or Expertise], we bring a diverse range of 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 *

error: Content is protected !!