403 - Final study cards Flashcards

(15 cards)

1
Q
  1. What is DBMS? What are the main functions of DBMS (Name minimum of 5 functions)?
A

A DBMS (Database Management System) is software that stores, manages, and manipulates databases.
Main functions include:
- Data Dictionary Management
- Data Storage Management
- Backup and Recovery
- Data Integrity Management
- Multi-user Access Control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. Define each of the following terms:
A

a. Data: Raw facts and figures with no specific meaning (e.g., 85, “blue”).
b. Field: A single data item or attribute in a record (e.g., “Student_Name”).
c. Record: A collection of related fields representing one entity (e.g., a student’s full profile).
d. Information: Processed data that is meaningful and useful (e.g., “It is 32°C today”).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Create “view” for the table created by following SQL statement.
A

CREATE VIEW Student_View AS
SELECT Student_Name, Student_FamilyName
FROM Student
WHERE Age >= 18;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. What is a database? Explain the difference between a database and a data warehouse.
A

A database is an organized collection of structured data used by an organization.
Database vs Data Warehouse:
- A database supports real-time transaction processing;
- A data warehouse is optimized for analytical querying and long-term data analysis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. Define the term ‘Normalization’ in the context of databases.
A

Normalization is the process of organizing data in a database to reduce redundancy and ensure data integrity by applying a series of rules (1NF to 5NF).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. What is a distributed database?
A

A distributed database is a database that is stored across multiple physical locations, often on different servers or sites, but managed as a single system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. What are the differences between a Primary Key and a Foreign Key?
A
  • Primary Key uniquely identifies each record in a table and cannot be NULL.
  • Foreign Key is a reference to the primary key in another table and helps maintain referential integrity.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. What is SQL in relation to databases?
A

SQL (Structured Query Language) is a standard language used to create, manage, and manipulate relational databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. Define the differences between DELETE and TRUNCATE in SQL.
A
  • DELETE removes specific rows based on a condition and can be rolled back.
  • TRUNCATE removes all rows from a table quickly and cannot be rolled back.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. What is ACID in the context of database transactions?
A

ACID ensures reliable processing of database transactions:
- Atomicity: All steps complete or none.
- Consistency: Maintains valid state.
- Isolation: Transactions don’t interfere.
- Durability: Changes persist even after failure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. Explain the purpose of an Index in a database.
A

An index improves the speed of data retrieval operations on a database table by allowing faster lookups.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. List any two advantages of an index in a database.
A
  • Faster query performance.
  • Improved sorting and filtering capabilities.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. Generalization is a process of finding common attributes and relations of a number of entities and defining a common super class for them.
A

Correct. For example, “Student” and “Employee” may be generalized as “Person” if they share attributes like name and address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. What is the difference between Referential Integrity and Data Integrity?
A
  • Referential Integrity ensures relationships between tables remain consistent using primary and foreign keys.
  • Data Integrity ensures the accuracy, validity, and consistency of all data in the database.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  1. Specialization is the process of defining a set of subclasses of an entity type where each subclass contains all the attributes and relationships of the parent entity and may have additional attributes and relationships which are specific to itself.
A

Correct. For instance, from the “Person” entity, you can specialize into “Student” and “Employee” entities with unique attributes.

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