Search Header Logo

Python and Django Quiz

Authored by Krishndeo Pawar

Computers

University

Used 3+ times

Python and Django Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

…………. method is used to start a thread in Python

Start()

join()

sleep()

all of these

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

…. Python module is commonly used to connect to a MySQL database

sqlite3

psycopg2

cx_Oracle

mysql-connector-python

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

After inserting the data we need to issue

Rollback()

Mycur.commit(1)

mycur.commit()

none of these

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

…………… method is used to fetch all rows from the result of an executed query

cursor.fetchall()

cursor.fetchrows()

cursor.fetch_all()

cursor.fetchallrows()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

……….. provide two way communication between two different programs.

socket

port

HTTP

Protocol

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

……. command is used to create a new Django project

django-admin startproject projectname

django startproject projectname

manage.py createproject projectname

django-admin createproject projectname

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

……. method is used to listen for incoming connections on a socket

accept()

listen()

connect()

receive()

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?

Discover more resources for Computers