Search Header Logo

Flask Quiz - Day one

Authored by Cap4 Learning

Computers

Professional Development

Used 1+ times

Flask Quiz - Day one
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Flask in the context of Python?

A web development framework

A type of data structure

A Python package for machine learning

A tool for data visualization

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who created Flask and when was it released?

Guido van Rossum in 2001

Armin Ronacher in 2010

Tim Berners-Lee in 1990

Mark Zuckerberg in 2004

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a key reason for the creation of Flask?

To provide a complex framework for enterprise applications

To offer a minimalistic, flexible, and easy-to-use framework

To replace the Django framework

To integrate directly with JavaScript frameworks

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a virtual environment in Python?

To enhance the performance of Python code

To isolate project dependencies and avoid conflicts between different projects

To compile Python code into machine language

To provide a graphical user interface for Python applications

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to create a virtual environment in Python?

python -m venv .env

create_env .env

virtualenv create .env

pip install virtualenv

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to activate a virtual environment on Windows?

source .env/bin/activate

.env\\Scripts\\activate

activate .env

start .env

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following Flask code return when accessed at the route '/'?

from flask import Flask

app = Flask(__name__)

@app.route('/')

def hello():

return 'Hello, World!'

A 404 error

'Welcome to Flask!'

'Hello, World!'

'Flask is running!'

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?