logo

Crowdly

Browser

Add to Chrome

2211 情報ネットワーク基礎演習 2025年 後期

Looking for 2211 情報ネットワーク基礎演習 2025年 後期 test answers and solutions? Browse our comprehensive collection of verified answers for 2211 情報ネットワーク基礎演習 2025年 後期 at blend.el-kait.jp.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

次のコードにおいて,index() 関数が呼び出されるURLパスとして正しいものを1つ選びなさい。

@app.route("/")

def index():

    return render_template("index.html")

View this question
Flaskでテンプレートを使うためにHTMLファイルを保存するフォルダ名として正しいものを1つ選びなさい。
0%
0%
0%
0%
View this question
次のコードにおいて,hello() 関数が呼び出されるときにアクセスするURLとして正しいものを1つ選びなさい。

@app.route("/hello")

def hello():

    return render_template("hello.html")

View this question
次のコードでについて正しい説明を1つ選びなさい。

@app.errorhandler(404)

def not_found(e):

    return render_template("error.html"), 404

0%
0%
0%
0%
View this question
次のコードで,404エラーが起きたときに呼び出される関数名として正しいものを1つ選びなさい。

@app.errorhandler(404)

def not_found(e):

    return render_template("error.html"), 404

View this question
テンプレートを使ってHTMLファイルを返す関数として正しいものを1つ選びなさい。
View this question
ルーティングのために関数の上に書くもの(デコーダーと呼ぶ)として正しいものを1つ選びなさい。
0%
0%
0%
0%
View this question
次のコードについて正しい説明を1つ選びなさい。

@app.route('/hello')

def hello():

    username = '太郎'

    return render_template('renshu08-04_hello.html', name=username)

View this question
次のコードにおいて,ブラウザで http://127.0.0.1:5000/太郎 にアクセスしたときの表示として最も近いものを1つ選びなさい。

@app.route('/<name>')

def hello_user(name):

    html = f'<h1>こんにちは、{name}</h1>'

    return html

View this question
次の説明のうち,Flaskの「ルーティング」に当たるものを1つ選びなさい。
0%
0%
0%
0%
View this question

Want instant access to all verified answers on blend.el-kait.jp?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome