MCS-207 β Database Management Systems (IGNOU)
Β 75 Highly Important Exam Questions with Detailed Explanations & Examples
Covers full syllabus (IGNOU Pattern)
Ideal for Last-Minute Revision + Long Answer Writing
UNIT-1: DBMS Concepts, Architecture, Data Models (Q1β15)
1. Define database. Why do we need it?
A database is a structured and organized collection of data stored electronically for easy access, retrieval, and modification. Unlike random files, a database allows consistent, secure and efficient handling of large datasets.
Example: Student database storing roll_no, name, course, marks.
Why needed?
-
To avoid data redundancy
-
To maintain data consistency
-
To support multi-user access
-
To provide security and backup
-
To store structured, related information efficiently
2. What is DBMS? Explain its functions.
A Database Management System (DBMS) is software used to store, manage, retrieve, update, and secure data efficiently.
Examples: Oracle, MySQL, PostgreSQL, DB2, SQL Server
Functions of DBMS:
-
Data storage, retrieval and update
-
Data dictionary management
-
Transaction management
-
Concurrency control
-
Backup and recovery
-
Security and authorization
-
Data integrity enforcement
-
Support for query languages (SQL)
3. Compare File System vs DBMS.
| Feature | File System | DBMS |
|---|---|---|
| Data Redundancy | High | Low |
| Data Security | Weak | Very strong |
| Consistency | Difficult to maintain | Ensured via constraints |
| Concurrency | Not supported | Supported |
| Recovery | Manual and complex | Automatic using logs |
| Data access | Application dependent | SQL-based (independent) |
4. What is Metadata? Why is it important?
Metadata means βdata about data.β
It describes structure, constraints, table names, data types, indexes etc.
Β Example entry:
| Attribute | Type | Constraint |
|---|---|---|
| Emp_ID | INT | Primary Key |
| Name | VARCHAR(50) | NOT NULL |
β Used for query compilation, optimization, & integrity checks.
5. Explain database system components.
-
Hardware β storage devices, servers
-
Software β DBMS, application layer
-
Data β actual stored information
-
Users β DBA, developers, end users
-
Procedures β rules, standards for database use
6. What is a Data Model? Explain types.
A data model defines structure, constraints, and relationships of data.
Types:
-
Hierarchical model β tree-based
-
Network model β graph-based
-
Relational model β table-based (most widely used)
-
Object-oriented model β based on OOP concept
-
Entity-Relationship model β conceptual modeling
7. Explain Conceptual, Logical & Physical schema.
| Schema Type | Description | Example |
|---|---|---|
| Conceptual | High-level global database structure | ER Diagram |
| Logical | Table design, relationships, constraints | Relational schema |
| Physical | Storage structure | Indexes, blocks |
8. What is Data Independence? Types?
Ability to change schema at one level without modifying higher levels.
| Type | Meaning |
|---|---|
| Physical Independence | Storage change does not affect logical schema |
| Logical Independence | Logical schema modification does not affect user views |
Logical independence is harder to achieve.
9. DBMS Users
-
Database Administrator (DBA)
-
Database Designers
-
End users (casual, naΓ―ve, expert)
-
Application programmers
10. What is DBA? Mention responsibilities.
A DBA (Database Administrator) manages the database environment.
Responsibilities:
-
Storage & schema design
-
User authorization
-
Backup & recovery
-
Performance tuning
-
Integrity enforcement
-
Security policies
11. What is DBMS Architecture?
DBMS commonly uses three-tier architecture:
-
External Level β user views
-
Conceptual Level β logical model
-
Internal Level β physical storage details
β Supports data independence.
12. Define Constraints. Types?
Rules to maintain data correctness and integrity.
Types:
| Constraint | Description |
|---|---|
| NOT NULL | Value cannot be empty |
| UNIQUE | No duplicate values |
| PRIMARY KEY | Unique + NOT NULL |
| FOREIGN KEY | Reference to another table |
| CHECK | Validates domain rules |
| DEFAULT | Assigns default value |
13. Explain Relational Model with features.
Proposed by E. F. Codd, relational model stores data in tables (relations).
Features:
-
Simple tabular structure
-
SQL for querying
-
Integrity constraints
-
High flexibility
14. What is Database Instance?
The actual stored data at a particular moment is called an instance.
Schema β instance
(Schema is stable; instance changes frequently.)
15. What are DBMS Advantages?
β Reduces redundancy
β Easy backup & recovery
β Enforces integrity
β Supports concurrency
β Provides data security
β Standardized access using SQL
1οΈβ£6οΈβ£ What are Transaction States? Explain with a diagram.
A transaction moves through multiple stages during execution.
| State | Meaning |
|---|---|
| Active | Transaction is being executed. |
| Partially Committed | Execution completed but not yet persisted. |
| Committed | Data successfully saved (COMMIT applied). |
| Failed | Error occurred before commit (system failure, conflict). |
| Aborted | Changes undone and rolled back to previous state. |
State Diagram:
1οΈβ£7οΈβ£ What is Relational Algebra? Name its operations.
Relational Algebra is a procedural query language that works on relations (tables).
Basic Operations:
-
Selection (Ο) β filter rows
-
Projection (Ο) β select specific columns
-
Union (βͺ)
-
Set Difference (β)
-
Cartesian Product (Γ)
Advanced Operations:
-
Join
-
Division
Example:
Retrieves all employees with salary > 50,000.
1οΈβ£8οΈβ£ Differences between Relational Algebra and Relational Calculus.
| Feature | Relational Algebra | Relational Calculus |
|---|---|---|
| Type | Procedural | Non-procedural |
| Query Style | How to retrieve | What to retrieve |
| Example | Ο(age > 20)(Student) | {S |
1οΈβ£9οΈβ£ What is a View? Explain its advantages.
A View is a virtual table based on a query.
Advantages:
-
Security (hides sensitive columns)
-
Simplifies complex queries
-
Data abstraction
-
Provides logical independence
2οΈβ£0οΈβ£ What is a Stored Procedure?
A stored procedure is a compiled SQL program stored in DBMS.
Benefits:
-
Faster execution
-
Reusability
-
Reduced network traffic
-
Improved security
2οΈβ£1οΈβ£ What are Triggers? Give an example.
A trigger automatically executes when an event occurs (INSERT, UPDATE, DELETE).
2οΈβ£2οΈβ£ Explain Data Warehouse and OLAP.
-
A Data Warehouse stores large historical data for analysis and decision-making.
-
OLAP (Online Analytical Processing) supports complex analytical queries.
| Feature | OLTP | OLAP |
|---|---|---|
| Use | Transaction processing | Analytical reporting |
| Data | Current | Historical |
| Queries | Short, simple | Long, complex |
2οΈβ£3οΈβ£ What is Functional Dependency?
A functional dependency exists when attribute B is functionally dependent on A.
Means A uniquely determines B.
Example:
2οΈβ£4οΈβ£ Explain BCNF with an example.
BCNF (Boyce-Codd Normal Form) is stricter than 3NF.
Rule:
For every functional dependency X β Y, X must be a super key.
Example (Not BCNF):
To normalize:
2οΈβ£5οΈβ£ What is Multivalued Dependency?
Occurs when one attribute determines multiple independent values.
Example:
Means employee can have multiple skills independent of other attributes.
2οΈβ£6οΈβ£ Explain 4NF with example.
A relation is in 4NF if:
-
It is in BCNF
-
No Multivalued Dependency exists except key
Example Table (Not 4NF):
| Emp | Skill | Language |
|---|
Split into:
2οΈβ£7οΈβ£ What is a Cursor in SQL?
Cursor is used to process row-by-row results in SQL.
Used in stored procedures.
2οΈβ£8οΈβ£ Explain Hashing and its types.
Hashing maps keys to location using a hash function.
| Type | Description |
|---|---|
| Static Hashing | Fixed number of buckets |
| Dynamic Hashing | Buckets grow/shrink as data grows |
Used in hashing indexes.
2οΈβ£9οΈβ£ What is RAID? Explain RAID Levels.
RAID = Redundant Array of Independent Disks
Used for performance and fault tolerance.
| RAID Level | Purpose |
|---|---|
| 0 | Striping (High speed, no fault tolerance) |
| 1 | Mirroring (High reliability) |
| 5 | Block striping with parity |
| 10 | Mirroring + Striping |
3οΈβ£0οΈβ£ Explain Concurrency Control.
Concurrency control ensures correct results during simultaneous transactions.
Techniques:
-
Locking (Shared, Exclusive)
-
Timestamp ordering
-
Multiversion concurrency control (MVCC)
3οΈβ£1οΈβ£ What is Locking? Explain types.
Locks prevent conflicts during concurrent access.
| Type | Purpose |
|---|---|
| Shared Lock (S-Lock) | Read-only |
| Exclusive Lock (X-Lock) | Read + Write |
Multiple shared locks allowed, but exclusive lock allows only one user.
3οΈβ£2οΈβ£ What are Check Constraints with example?
Constraints ensure data validity.
3οΈβ£3οΈβ£ What is Savepoint?
A savepoint temporarily marks the transaction to rollback partially.
3οΈβ£4οΈβ£ What is a Distributed Database?
A database stored across multiple locations but appears as a single system to users.
Benefits:
-
Faster processing
-
Reliability
-
Scalability
3οΈβ£5οΈβ£ Explain Replication.
Replication means creating and maintaining copies of data across multiple locations.
Used in:
-
Cloud systems
-
Disaster recovery
-
Data sharing across branches
Types:
-
Snapshot replication
-
Transactional replication
-
Merge replication
3οΈβ£6οΈβ£ What is Metadata? Give examples.
Metadata is data about data. It describes structure, format, and meaning of stored data.
| Metadata Type | Example |
|---|---|
| Structural Metadata | Table name, columns, data types |
| Descriptive Metadata | Purpose of table, constraints |
| Administrative Metadata | Owner, access rights |
Example from DBMS catalog:
3οΈβ£7οΈβ£ What is a Weak Entity? How is it represented?
A weak entity depends on another entity for its existence and lacks a primary key.
Representation:
-
Rectangle with double border
-
Relationship diamond with double border
-
Uses partial key
Example:
| Strong Entity | Weak Entity |
|---|---|
| Building | Room |
Room number alone is not unique across buildings.
3οΈβ£8οΈβ£ Explain Cardinality in ER Model.
Cardinality defines the number of occurrences in a relationship.
| Type | Meaning |
|---|---|
| 1:1 | One person β one passport |
| 1:N | One teacher β many students |
| M:N | Many students β many courses |
3οΈβ£9οΈβ£ What is Tuple, Attribute, Degree, and Cardinality?
| Term | Meaning | Example |
|---|---|---|
| Attribute | Column | Name, Age |
| Tuple | Row | (101, Amit, 22) |
| Degree | Number of attributes | Table with 5 columns β degree = 5 |
| Cardinality | Number of rows | Table with 100 records β cardinality = 100 |
4οΈβ£0οΈβ£ What is SQL Injection? How is it prevented?
SQL Injection is a security attack where unauthorized queries are inserted into input fields.
Example attack:
Prevention:
-
Use parameterized queries
-
Input validation
-
Stored procedures
Comments
Leave a Comment
Your email address will not be published. Required fields are marked *