Quiz 1 Information
Material covered
The quiz will focus on the material that we have discussed in class, with an emphasis on material covered during this part of the course. These topics include:
- The Internet and the WWW
- HTTP requests and responses
- Defining the full Stack application
- Fundamentals of Django: URLs, views, and templates
- Form processing: reading form fields into Python
Quiz details
-
The quiz will be held in class on Tuesday 9/23, beginning promptly at the start of class. You will have 30 minutes to complete the quiz. The remaining time after the quiz will be workshop time to work on assignment 3.
-
The quiz will be a paper quiz, in which you will hand-write your responses. Each question will be a short-answer format; you should write complete sentences (not bullet points), approximate 4-5 sentences about about 75-100 words per response.
-
The quiz will be closed notes/closed books. You may not use any PowerPoint slides, examples, assignments, webpages, or other electronic devices/resources during the quiz.
Sample Questions
The following sample questions are provided to give you an idea about how the questions will be posed, but this is NOT a complete or sufficient study guide.
-
Explain the difference between the Internet and the World-Wide Web.
-
Identify and explain the key inventions that make the World-Wide-Web possible.
-
Explain the main elements of an HTTP Request and an HTTP Response.
-
Define a “Full stack” web application.
-
What is a web application framework, and why would a developer use one?
-
Describe the steps in handling a request from the user and sending a response, and which files are involved.
-
What is the purpose of the context dictionary in Django views? How does it relate to templates?
-
Write an HTML form to collect a user’s favorite ice cream flavor. Write the corresponding Python code to extract this data from the HTTP request. Finally, write the necessary code to display an HTML page showing the user’s favorite ice cream flavor.