Flask Quiz

Flask Quiz

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Parcial-Dibujo

Parcial-Dibujo

12th Grade

10 Qs

Internet Protocols

Internet Protocols

10th - 11th Grade

9 Qs

Kuis Aplikasi Presentasi

Kuis Aplikasi Presentasi

1st - 12th Grade

10 Qs

test 3.6

test 3.6

11th Grade

10 Qs

AP CSP Review 11Q

AP CSP Review 11Q

10th - 12th Grade

11 Qs

Mengoperasikan Website

Mengoperasikan Website

10th Grade

10 Qs

Електронні таблиці Exel

Електронні таблиці Exel

1st - 12th Grade

12 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

Flask Quiz

Flask Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Joseph Maxwell

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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