Question 1
What Python library is commonly used for connecting to and interacting with relational databases like MySQL and PostgreSQL?
- Requests
- Pandas
- SQLAlchemy
- NumPy
- Soupify
Question 2
Which SQL command is used to retrieve data from one or more tables in a database?
- UPDATE
- SELECT
- INSERT
- DELETE
- CREATE
Question 3
What does the acronym ORM stand for in the context of database interactions?
- Object Relational Mapping
- Object Rendering Model
- Ordered Resource Management
- Object Request Manager
- Operational Routing Mechanism
Question 4
Which of the following is a common data serialization format often used for transmitting data between a server and a web application?
- YAML
- CSV
- XML
- JSON
- pickle
Question 5
What is the purpose of a 'WHERE' clause in an SQL query?
- To specify the columns to retrieve
- To sort the results
- To filter the results based on a condition
- To group the results
- To join tables
Question 6
Which SQL keyword is used to sort the result-set of a query?
- GROUP BY
- SORT
- FILTER
- ORDER BY
- ARRANGE
Question 7
In database terms, what does 'CRUD' stand for?
- Create, Read, Update, Delete
- Calculate, Render, Update, Display
- Connect, Request, Upgrade, Disconnect
- Copy, Rename, Upload, Download
- Compile, Run, Utilize, Debug
Question 8
Which method is commonly used in Python's SQLAlchemy to execute a raw SQL query?
- .execute()
- .query()
- .commit()
- .connect()
- .fetch()
Question 9
What is the primary key in a database table?
- A foreign key's alternate name.
- A unique identifier for each record.
- An index on a frequently used column.
- A column used for sorting data.
- The largest value in a column.
Question 10
What is a common vulnerability that can occur when building SQL queries by directly concatenating user input without proper sanitization?
- Cross-Site Scripting
- Buffer Overflow
- SQL Injection
- Denial of Service
- Session Hijacking