Module 1 Flashcards

1
Q

What is a database?

A

A collection of data that exists over a long period of time and is structured, persistent, and managed by a DBMS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are examples of databases?

A

A list of friends’ contacts, company employee records, university student records, and library book inventories.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Database Management System (DBMS)?

A

A complex software system designed to store and manage databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between a database, database system, and DBMS?

A

A database is a collection of data, a DBMS manages the database, and a database system is the combination of both.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the main advantages of a DBMS?

A

Minimizes redundancy, improves data integrity, supports concurrent access, enhances security, and ensures reliability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the ACID properties in DBMS transactions?

A

Atomicity, Consistency, Isolation, Durability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is atomicity in database transactions?

A

A transaction is either fully completed or fully undone—no partial updates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is data consistency in DBMS?

A

Ensures that data follows integrity constraints and remains valid after transactions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is isolation in database transactions?

A

Ensures that concurrent transactions do not interfere with each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is durability in a database?

A

Once a transaction is committed, its changes persist even after system failures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the disadvantages of file processing systems (FPS) compared to databases?

A

Data redundancy, storage waste, update anomalies, inconsistency, and lack of centralized control.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is data redundancy?

A

The unnecessary duplication of data in multiple locations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is data inconsistency?

A

When different copies of the same data do not match due to redundant storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the three levels of database abstraction?

A

Internal (physical), logical (conceptual), and external (user view).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a database schema?

A

The structure that defines how data is organized in a database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a database instance?

A

The actual stored data in the database at a specific moment in time.

17
Q

What is logical data independence?

A

The ability to change the logical schema without modifying application programs.

18
Q

What is physical data independence?

A

The ability to change the physical storage structure without affecting the logical schema.

19
Q

What are the two main types of database languages?

A

Data Definition Language (DDL) and Data Manipulation Language (DML).

20
Q

What is DDL (Data Definition Language)?

A

Defines the database schema, including tables, indexes, and constraints.

21
Q

What is DML (Data Manipulation Language)?

A

Allows users to insert, delete, update, and retrieve data from the database.

22
Q

What are the two main types of database query languages?

A

SQL (commercial) and Relational Algebra (theoretical).

23
Q

What is SQL?

A

A structured query language used to interact with relational databases.

24
Q

What are the basic components of an SQL query?

A

SELECT (what to retrieve), FROM (which tables), WHERE (filter conditions).

25
What does the SQL `SELECT *` statement do?
Retrieves all columns from the specified table.
26
How do you retrieve specific columns from a table in SQL?
Using `SELECT column_name FROM table_name;`.
27
What is a Cartesian product in SQL?
Combining all rows from two tables without a condition, producing unnecessary duplicate combinations.
28
What is the purpose of the `JOIN` operation in SQL?
Combines rows from multiple tables based on related columns.
29
What are the five aggregate functions in SQL?
SUM, AVG, MIN, MAX, COUNT.
30
What is the purpose of the `GROUP BY` clause in SQL?
Groups rows with the same values in specified columns and applies aggregate functions.