Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1Web server + database server + server-side code | AWeb server -> Server-side code -> Database server | |
| 2Browser + user device | BBrowser --HTTP request--> Web server --HTTP response--> Browser | |
| 3The client side talks to the server side over the internet by sending a request and getting a response | CThese are server-side components, not client-side ones. The client side is the browser and the user device. | |
| 4Server-side code asks the database server for stored data before the web server replies to the browser | DThe browser does not connect straight to the database server. The request goes through the web server and server-side code first. | |
| 5Client side = web server, database server, server-side code | EThe server-side components of a web application, which run on the host computers and not on the user's device | |
| 6Browser --> Database server (browser reads data directly) | FThe client-side components of a web application, which the user runs and sees |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
web application — Software run through a browser, made of server-side parts (web server, database server, server-side code) and client-side parts (browser, user device) that connect over the internet.import requests
r = requests.get("http://localhost:5000/")
print(r.text)from flask import Flask
app = Flask("shop")
app.run(port=5000)cur = db.cursor()
cur.execute("SELECT name FROM players")
rows = cur.fetchall()<form action="/login" method="post">
<input type="text" name="user">
</form>@app.route("/api/score")
def score():
return jsonify({"score": 42})