Flask Quiz
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Joseph Maxwell
Used 15+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the proper decorator for a route in Flask?
@approute("/")
approute@("/")
@pp.route('/')
@app.route("/")
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How is it possible to pass values from Python to HTML templates?
render_template("file.html", item=value)
rendertemplate(item=value, "file.html")
render_template("file.html", item:value)
render_template("file.html", item, value)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is it possible to use a passed variable in an HTML template?
{ var_name }
{{ var_name }}
{[ var_name ]}
{% var_name %}
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following will properly route a function for url.repl.co/go
@app.route(go/)
@app.route("go")
@app.route("/go")
@app.route("go/"
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a proper link to a function with route @app.route("/this-page")?
<a href="this-page">This</a>
<a href="/this_page">This</a>
<a href="/this-page">This</a>
<a>/this-page</a>
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Template HTML files must be placed in which folder?
static
html
main
templates
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
CSS files must be placed in which file?
static
templates
main
style
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following properly imports the basic necessary Flask libraries?
from Flask import flask, render_template
from flask import Flask, render_template
import Flask from flask, render_template
import Flask
Similar Resources on Wayground
10 questions
Мова гіпертекстової розмітки
Quiz
•
10th Grade
10 questions
Bài 17 Các mức ưu tiên của bộ chọn
Quiz
•
12th Grade
10 questions
مراجعة الوحدة 3 ( البرمجة بواسطة المايكروبت )
Quiz
•
12th Grade
12 questions
Basic CSS3
Quiz
•
9th - 12th Grade
10 questions
HTML & Google Site Seatwork
Quiz
•
12th Grade
10 questions
Konsep Routing
Quiz
•
1st - 10th Grade
12 questions
AP CSP BI 4
Quiz
•
9th - 12th Grade
13 questions
JavaScript Variables
Quiz
•
3rd Grade - University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade
