Python Programming Language

Python Interview Questions: Read Latest interview questions on Python Frameworks like Python Pyramid, Python Flask, CherryPy, Django and more...

  • 1

    What are Python dictionaries? How to implement it?
    Python

    Posted By: Ray

  • 2

    What are immutable data types?
    Python

    Posted By: Ayesha Badepir

  • 3

    What is proprioception?
    Python

    Posted By: Roland

  • 4

    How to achieve Multithreading in Python?
    Python

    Posted By: Tolbert

  • 5

    What is monkey patching in Python?
    Python

    Posted By: Author

  • 6

    What are *args and **kwargs in Python?
    Python

    Posted By: Justus

  • 7

    Explain few differences between range & xrange?
    Python

    Posted By: Tilman

  • 8

    What is the difference between NumPy and SciPy?
    Python

    Posted By: Prosper

  • 9

    What is pickling and unpickling in Python?
    Python

    Posted By: Harmon

  • 10

    Explain lambda in Python?
    Python

    Posted By: Stacy

  • 11

    How to share global variables across modules in Python?
    Python

    Posted By: Anonymous

  • 12

    Enlist some Mutable datatypes in Python?
    Python

    Posted By: S.K.Mahalingam

  • 13

    What is difference Between List and Tuple in Python?
    Python

    Posted By: Raman verma

  • 14

    What Is The Purpose Of Id() Function In Python?
    Python

    Posted By: Benjamin

  • 15

    What Is GIL In Python Language?
    Python

    Posted By: Peter

  • 16

    Is Python is Thread Safe? Explain how?
    Python

    Posted By: Ajeet Prajapati

  • 17

    What are generators in Python?
    Python

    Posted By: KUMAR KANISHK

  • 18

    Explain Decorators in Python?
    Python

    Posted By: Austin

  • 19

    What Architecture Django follows ?
    Django

    Posted By: Elbridge

    Django follows model-template-view (MTV) architectural pattern.

  • 20

    What is difference between MVT and MVC?
    Django

    Posted By: Roll

  • 21

    What are Middlewares? Lists some important Middlewares you have used in Django?
    Django

    Posted By: Harlan

  • 22

    What is Decorator? How to write custom decorator in Django ?
    Django

    Posted By: Homer

  • 23

    What is the usage of ALLOWED_HOST in Django project settings?
    Django

    Posted By: Shannon

  • 24

    What is Inheritance in Models ?
    Django

    Posted By: Rose

  • 25

    What are signals in Django?
    Django

    Posted By: Davis

  • 26

    When to use the iterator in Django ORM?
    Django

    Posted By: Surakasula Revathi

  • 27

    Explain mixins in Django?
    Django

    Posted By: Gordon

  • 28

    How to create an Constant in Django?
    Django

    Posted By: Worth

  • 29

    What are Class-based views in Django?
    Django

    Posted By: Robertrof

  • 30

    How to Configure Database in Django.
    Django

    Posted By: Dandut

  • 31

    What constitutes Django templates?
    Django

    Posted By: Bedford

  • 32

    What is Flask-WTF?
    Python Flask

    Posted By: Waldo

    Flask-WTF is an extension that provides a simple interface for creating form elements with the WTForms library. Using Flask-WTF, we can define the form fields in our Python script and render them using an HTML template. It is also possible to apply validation to the WTF field.

  • 33

    For what python flask is used?
    Python Flask

    Posted By: Jarrett

    Python Flask is a lightweight microframework of Python. Flask can be used for

    • Creating web services.
    • Blogging websites.
    • Company intro websites.
    • Twitter Bots.
    • CMS for the website.

  • 34

    How to install python flask on linux?
    Python Flask

    Posted By: Ethel

    Simple steps to install Flask on the Linux server.

    • Step 1. Install Python 3 or above and venv.
    • Step 2. Create a project directory and Virtual Environment.
    • Step 3. Install Flask by running pip install Flask

    That's it.

    For complete step by step tutorial visit https://linuxize.com

  • 35

    How to deploy python flask app on Heroku?
    Python Flask

    Posted By: Haridass

  • 36

    How to structure python flask project?
    Python Flask

    Posted By: laxmi

  • 37

    How to check request is json type in flask?
    Python Flask

    Posted By: WilliamyxVioto

  • 38

    What is Jsonify in flask?
    Python Flask

    Posted By: fernandofarmer

  • 39

    How to change Flask server host/port using config file?
    Python Flask

    Posted By: Cas

  • 40

    How to log request body in python flask?
    Python Flask

    Posted By: Bryanblina

  • 41

    How to divide flask app into multiple py files?
    Python Flask

    Posted By: Dixon

  • 42

    Is python flask multithreaded?
    Python Flask

    Posted By: brij

  • 43

    How to create an array with checkboxes in Flask?
    Python Flask

    Posted By: Maxwell

  • 44

    How to get visitor ip address in Flask?
    Python Flask

    Posted By: Merle

  • 45

    What is g in python flask?
    Python Flask

    Posted By: S.K.Mahalingam

  • 46

    What is Flask Sijax?
    Python Flask

    Posted By: raghu

  • 47

    For what url_for() function is used in Flask?
    Python Flask

    Posted By: Godfrey

  • 48

    What is WSGI?
    Python Flask

    Posted By: Aden

  • 49

    How to get http headers in flask?
    Python Flask

    Posted By: Larry

  • 50

    How to serve static files in Flask?
    Python Flask

    Posted By: Ernest

    The recommended way to serve a static file in Flask is to serve using web server. However, if you want it to be done via Flask then you can use send_from_directory the function of Flask.

    Below is a Simple code to serve static files in Flask.

    from flask import Flask, request, send_from_directory
    
    # set the project root directory as the static folder, you can set others.
    app = Flask(__name__, static_url_path='')
    
    @app.route('/js/')
    def send_js(path):
        return send_from_directory('js', path)
    
    if __name__ == "__main__":
        app.run()
    
    

  • 51

    How to get a query string in Flask?
    Python Flask

    Posted By: Larry

  • 52

    How to import function into main file in flask?
    Python Flask

    Posted By: Tom

  • 53

    How to disable csrf for a view with flask-wft for a restapi?
    Python Flask

    Posted By: James

  • 54

    How to share the global app object in flask?
    Python Flask

    Posted By: Esequiel

  • 55

    What is the purpose of Flask's context stacks?
    Python Flask

    Posted By: Arvid

  • 56

    How to get logged user id in flask?
    Python Flask

    Posted By: Axel

    Use the below code to get a logged user id in Flask Framework.

    from flask import g
    
    if current_user.is_authenticated():
            g.user = current_user.get_id()
    

  • 57

    Define OpenCV?
    Opencv

    Posted By: Unknown

  • 58

    Enlist different types of video filters available in OpenCV?
    Opencv

    Posted By: Carter

  • 59

    What is use of Mat class in OpenCV?
    Opencv

    Posted By: Tamuna

  • 60

    How to read and write an image in OpenCV?
    Opencv

    Posted By: Merton

  • 61

    What is use of sobel operation in OpenCV?
    Opencv

    Posted By: AnthonySen

  • 62

    Which function is used to draw line in OpenCV?
    Opencv

    Posted By: Abercormlen

  • 63

    Where opencv libraries are installed?
    Opencv

    Posted By: Collins

  • 64

    What is cv_8uc1 in opencv?
    Opencv

    Posted By: Colonel

  • 65

    Explain what is CherryPy?
    Cherrypy

    Posted By: SMK

  • 66

    In which Language CherryPy is written?
    Cherrypy

    Posted By: Frank

  • 67

    What is current stable version of CherryPy?
    Cherrypy

    Posted By: Otto

  • 68

    What is Pythonic interface?
    Cherrypy

    Posted By: Patricksic

  • 69

    List some key features of CherryPy?
    Cherrypy

    Posted By: Wells

  • 70

    Enlist some requirements to install CherryPy?
    Cherrypy

    Posted By: Wirt

  • 71

    How to install CherryPy?
    Cherrypy

    Posted By: Nurry

  • 72

    What is Kid template?
    Cherrypy

    Posted By: Ceylon

  • 73

    Enlist some alternatives of CherryPy?
    Cherrypy

    Posted By: Orange

  • 74

    What is CherryPy Toolbox?
    Cherrypy

    Posted By: REMONTEr

  • 75

    Enlist some basic authentication tools avilable in CherryPy?
    Cherrypy

    Posted By: shankar

  • ;