Prev: Q6, Next: Q8

# Quiz Questions


📗 Question 1



📗 Question 2





📗 Question 3



📗 Question 4





📗 Question 5



📗 Question 6





📗 Question 7



📗 Question 8





📗 Question 9



📗 Question 10




📗 End of Quiz
:
 ***** ***** ***** ***** ***** 

 ***** ***** ***** ***** *****

📗 [1 points] (SU23M2Q4, S23M2Q5) Which of the following is a correct query string for route data that produces dict(flask.request.args) = {"name": "A", "id": "1"}
IP:5000/data?name=A&id=1
IP:5000/data?name="A"&id=1
IP:5000/data?name=A,id=1
IP:5000/data?name="A",id=1
📗 [1 points] (SU23M2Q5, S22M2Q7, F22M2Q13, F21MQ13) If a flask app has the following routes, what does the app print when a user visits home.html of the site?
@app.route("/img.png")
def png():
  print("X")
  return ""
@app.route("/img.svg")
def svg():
  print("Y")
  return ""
@app.route("/home.html")
def home():
  print("Z")
  return "<html><body><img src="img.svg"></body></html>"
Ignore the order the letters are printed:
X, Y, Z
X, Z
Y, Z
Z
📗 [1 points] (SU23M2Q6) Which of the following image format should I use for a plot so that I can display it at high-resolution on an arbitrarily large screen?
SVG
PNG
JPEG
GIF
📗 [1 points] (SU23M2Q7) Suppose the total number of visits to version A and version B pages are fixed, say at 100 and 100. Which of the following will result in the smallest p-value for an A/B test?
75 clicks on A, 25 clicks on B
50 clicks on A, 50 clicks on B
75 clicks on A, 50 clicks on B
25 clicks on A, 50 clicks on B
📗 [1 points] (SU23M2Q9, S23M2Q6, F22M2Q5) What is the click-through rate of version A?
- click no-click
Version A 1 2
Version B 3 4

1/3
1/2
3/4
2/3
📗 [1 points] (S22M2Q3, F22M2Q7) When analyzing three contingency tables from an A/B test, scipy.stats.fisher_exact(df) returns 0.001 for table 1, 0.01 for table 2, and 0.1 for table 3. At a threshold for significance of 5 percent, for how many tests do we have statistically significant evidence that B has a different click-through-rate than A?
0
1
2
3
📗 [1 points] (SU23M2Q10, S23M2Q8, S23M2Q16, S22M2Q17, F22M2Q15) Where should we specify the "Retry-After" value for a specific route? 
status code
query string
request header
response header
📗 [1 points] (S23M2Q4, S22M2Q10) What URL should be visited to get the page that displays "aaa"?

@app.route("/aaa.html")
def aaa():
  return "bbb"

@app.route("/") def bbb():   return "aaa"
http://127.0.0.1:5000/
http://127.0.0.1:5000/aaa
http://127.0.0.1:5000/aaa.html
http://127.0.0.1:5000/bbb
📗 [1 points] (new) Suppose the click-through information of four versions of the same page is summarized in the following table, and the UCB (upper confidence bound) algorithm is used to select the version to visit, which version will be visited next?
Version LCB CTR UCB
A 0.4 0.5 0.6
B 0 0.4 0.8
C 0.1 0.3 0.5
D -0.3 0.2 0.7

A
B
C
D
📗 [1 points] (new) How many of the following visual encodings are more suitable for categorical data columns over ordinal data columns: (1) size, (2) shape (style), (3) color value (lightness or brightness), (4) color hue.
1
2
3
4





Last Updated: April 29, 2024 at 1:10 AM