SQL Alchemy

SQL Alchemy

University

20 Qs

quiz-placeholder

Similar activities

Day-2 Assessment(Essentials of Data Analytics Using R)

Day-2 Assessment(Essentials of Data Analytics Using R)

University

20 Qs

HRM - Quiz 1

HRM - Quiz 1

University

20 Qs

Soal Pre-Test Sistem Informasi dalam Bisnis

Soal Pre-Test Sistem Informasi dalam Bisnis

University

20 Qs

Business Analytics Overview

Business Analytics Overview

University

20 Qs

ENGG1100 Project A 2020

ENGG1100 Project A 2020

University

18 Qs

KUIS ASC

KUIS ASC

University

15 Qs

FInal Test DM

FInal Test DM

University

20 Qs

05.11.2020_EC8071_CR_MODEL EXAM-2_PART-B

05.11.2020_EC8071_CR_MODEL EXAM-2_PART-B

University

15 Qs

SQL Alchemy

SQL Alchemy

Assessment

Quiz

Other

University

Easy

Created by

swaas 3

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does ORM stand for?

Object Relational Mapping

Object Relation Model

Optimized Relational Method

Object Repository Manager

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a benefit of using an ORM?

Writing only raw SQL queries

Mapping database tables to Python classes

Avoiding databases altogether

Replacing Python with SQL

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In SQLAlchemy, which component is responsible for connecting to the database?

Session

Engine

MetaData

ORM

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command installs SQLAlchemy?

pip install SQLAlchemy

npm install SQLAlchemy

apt-get install SQLAlchemy

conda run SQLAlchemy

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which driver is required for PostgreSQL in SQLAlchemy?

mysql-connector-python

sqlite3

psycopg2-binary

pymongo

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of declarative_base() in SQLAlchemy?

Creates database tables automatically

Defines the base class for ORM models

Starts a session for transactions

Connects to the database engine

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a model class, tablename is used to:

Define database constraints

Specify the table name in the database

Create indexes automatically

Generate foreign keys

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?