Flask Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Joseph Maxwell
Used 15+ times
FREE Resource
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
HTML Coding

Quiz
•
9th - 11th Grade
10 questions
8-sinf Cambridge II chorak

Quiz
•
8th Grade - University
10 questions
2.2 Websites

Quiz
•
9th - 10th Grade
10 questions
TIK - HTML Dasar

Quiz
•
10th Grade
10 questions
Pemprograman Web Dasar

Quiz
•
12th Grade
10 questions
HTML introduction

Quiz
•
8th - 9th Grade
10 questions
HTML Introduction

Quiz
•
3rd Grade - Professio...
12 questions
PROVA PARANÁ - PENSAMENTO COMPUTACIONAL | REVISÃO ENSINO MÉDIO 1

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade