Computer

Introduction to DBMS MCQs with Answers

Which of the following is the primary purpose of a Database Management System (DBMS)?
a) To manage hardware resources
b) To store, manage, and retrieve data efficiently
c) To generate reports for businesses
d) To design and develop software applications

Answer
b) To store, manage, and retrieve data efficiently

What does DBMS stand for?
a) Database Management System
b) Data Bank Management System
c) Database Model System
d) Data Backup Management System

Answer
a) Database Management System

Which of the following is an example of a relational DBMS?
a) MongoDB
b) MySQL
c) Cassandra
d) Firebase

Answer
b) MySQL

What is the main function of a DBMS?
a) To store files on disk
b) To manage and control data access
c) To make backups of data
d) To automate data analysis

Answer
b) To manage and control data access

Which of the following is not a type of DBMS?
a) Hierarchical
b) Relational
c) Document-based
d) Linear

Answer
d) Linear

Which language is primarily used to interact with a relational DBMS?
a) HTML
b) SQL
c) Python
d) C++

Answer
b) SQL

Which of the following is an example of a NoSQL DBMS?
a) SQL Server
b) MongoDB
c) Oracle
d) PostgreSQL

Answer
b) MongoDB

What is the purpose of the primary key in a relational database?
a) To enforce uniqueness of a record
b) To link two tables together
c) To store data in a structured format
d) To store large text data

Answer
a) To enforce uniqueness of a record

Which of the following is not a feature of DBMS?
a) Data redundancy
b) Data integrity
c) Data security
d) Data consistency

Answer
a) Data redundancy

What type of relationship is defined between two tables in a relational database?
a) Unidirectional
b) One-to-one
c) Many-to-many
d) Hierarchical

Answer
b) One-to-one

Which of the following is a characteristic of a DBMS?
a) Data is stored in flat files
b) It reduces the need for data redundancy
c) It supports only text data
d) It does not support concurrent access

Answer
b) It reduces the need for data redundancy

What is the function of normalization in a DBMS?
a) To decrease data redundancy
b) To add more columns to the table
c) To improve system performance
d) To merge tables

Answer
a) To decrease data redundancy

Which of the following is the first stage of database design?
a) Normalization
b) Database modeling
c) Database implementation
d) Data entry

Answer
b) Database modeling

Which of the following is a feature of the hierarchical data model in DBMS?
a) Data is stored in a table format
b) Data is organized in a tree-like structure
c) Data is stored in key-value pairs
d) Data can be stored in multiple formats

Answer
b) Data is organized in a tree-like structure

What is the purpose of a foreign key in a relational database?
a) To define relationships between tables
b) To ensure the integrity of primary keys
c) To store large data values
d) To calculate aggregate values

Answer
a) To define relationships between tables

Which of the following is an example of a non-relational database?
a) SQLite
b) MySQL
c) MongoDB
d) PostgreSQL

Answer
c) MongoDB

What is the role of a Data Definition Language (DDL) in DBMS?
a) To define, modify, and delete database structures
b) To store and retrieve data from the database
c) To enforce security policies
d) To handle user permissions

Answer
a) To define, modify, and delete database structures

What is the purpose of a transaction in DBMS?
a) To store data in a structured format
b) To ensure data consistency and integrity
c) To create backups of data
d) To run queries on the database

Answer
b) To ensure data consistency and integrity

Which of the following is the ACID property that ensures the correctness of a transaction?
a) Atomicity
b) Consistency
c) Isolation
d) Durability

Answer
b) Consistency

Which type of DBMS supports both relational and non-relational data models?
a) Hybrid DBMS
b) Relational DBMS
c) NoSQL DBMS
d) Graph DBMS

Answer
a) Hybrid DBMS

Which of the following is the main advantage of using a DBMS?
a) Reduced hardware requirements
b) Improved data sharing and security
c) Increased data redundancy
d) Faster data access without backups

Answer
b) Improved data sharing and security

Which of the following is the main disadvantage of using a DBMS?
a) Data redundancy
b) Centralized control and management of data
c) Reduced performance due to centralized systems
d) Lack of data security

Answer
c) Reduced performance due to centralized systems

Which of the following is a common DBMS software?
a) Microsoft Excel
b) Oracle
c) Visual Studio
d) Adobe Photoshop

Answer
b) Oracle

Which of the following is a key benefit of using a DBMS?
a) Increased complexity of the system
b) Better management of large datasets
c) Lack of data integrity
d) Reduced data access speed

Answer
b) Better management of large datasets

What is the primary purpose of an Entity-Relationship (ER) diagram?
a) To define user roles and permissions
b) To show relationships between data entities
c) To store data in hierarchical format
d) To optimize database queries

Answer
b) To show relationships between data entities

Which of the following is an advantage of using a NoSQL database over a relational DBMS?
a) Easier to scale horizontally
b) Requires less data consistency
c) Supports SQL queries
d) Provides full ACID compliance

Answer
a) Easier to scale horizontally

Which of the following is true about DBMS backups?
a) Backups are only needed during system failures
b) A DBMS automatically performs backups without user intervention
c) Backups help ensure data recovery in case of data loss
d) Backup data is always stored in the same format as live data

Answer
c) Backups help ensure data recovery in case of data loss

Which of the following is used to improve database performance by reducing data retrieval times?
a) Indexing
b) Normalization
c) Encryption
d) Query optimization

Answer
a) Indexing

Which of the following is a benefit of normalization in a relational database?
a) Reduced data redundancy
b) Increased complexity of data queries
c) Better performance of queries
d) Decreased storage requirements

Answer
a) Reduced data redundancy

What does the “durability” property in the ACID transaction model refer to?
a) Ensuring that a transaction is completed successfully
b) Ensuring that data changes are permanent, even in case of a system failure
c) Ensuring that all database changes are isolated
d) Ensuring that all database operations are consistent

Answer
b) Ensuring that data changes are permanent, even in case of a system failure

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button