LogIn
I don't have account.

Practice rdbms Quizzes

Prepare for technical interviews with high-quality rdbms quizzes that mirror real industry questions. Each quiz helps you master concepts, improve problem-solving speed and gain the confidence needed for coding tests. Whether revising basics or tackling advanced scenarios, these quizzes ensure structured, effective preparation.

Explore All rdbms Quizzes

Learn rdbms step by step with interactive quizzes designed for beginners and learners revising key concepts. Build a strong foundation with clear, structured practice in rdbms.
Question 1
Which of the following best describes an RDBMS?
1
A database system that organizes data in tables with relationships
2
A database system that only allows unstructured data storage
3
A file-based system for data storage
4
A database system that stores data in key-value pairs
Question 2
In a relational database, what does a foreign key do?
1
Uniquely identifies a row in a table
2
Automatically indexes data
3
Ensures a table has at least one row
4
Establishes a relationship between two tables
Question 3
Which of the following is an example of an RDBMS?
1
MySQL
2
Firebase
3
MongoDB
4
Neo4j
Question 4
What is the purpose of the PRIMARY KEY in a table?
1
To uniquely identify each row
2
To create foreign keys
3
To store null values
4
To allow duplicate values
Question 5
In a relational database, what does normalization help to achieve?
1
Increasing redundancy
2
Increasing complexity
3
Slowing down performance
4
Reducing redundancy
Question 6
What is the primary advantage of using a key-value store over a relational database?
1
Requires less storage space
2
Stronger ACID compliance
3
Better support for complex joins
4
Fast lookup and retrieval of data
Question 7
What is the primary disadvantage of key-value stores compared to relational databases?
1
Poor performance for key lookups
2
Lack of complex query capabilities
3
Requires more memory
4
Does not support distributed systems
Question 8
Which of the following is NOT an example of a key-value database?
1
Cassandra
2
PostgreSQL
3
DynamoDB
4
Memcached
Question 9
Which SQL statement is used to retrieve unique values from a column?
1
SELECT UNIQUE column_name FROM table_name;
2
SELECT DIFFERENT column_name FROM table_name;
3
SELECT column_name FROM table_name WHERE DISTINCT;
4
SELECT DISTINCT column_name FROM table_name;
Question 10
What does SQL stand for?
1
Structured Query Language
2
Sequential Query Language
3
Standardized Query Logic
4
System Query Language
Question 11
Which SQL command is used to remove all records from a table without deleting the table structure?
1
DELETE
2
TRUNCATE
3
CLEAR
4
DROP
Question 12
Which SQL join returns only the matching rows from both tables?
1
FULL JOIN
2
INNER JOIN
3
RIGHT JOIN
4
LEFT JOIN
Question 13
Which SQL constraint ensures that a column cannot have NULL values?
1
NOT NULL
2
PRIMARY KEY
3
UNIQUE
4
CHECK
Question 14
Which of the following is NOT an SQL aggregate function?
1
AVG()
2
COUNT()
3
CONCAT()
4
SUM()
Question 15
Which SQL clause is used to filter records from a table?
1
ORDER BY
2
GROUP BY
3
HAVING
4
WHERE
Question 16
Which SQL JOIN returns all records from the left table and only matching records from the right table?
1
INNER JOIN
2
RIGHT JOIN
3
FULL JOIN
4
LEFT JOIN
Question 17
Which constraint is used to ensure that all values in a column are unique?
1
CHECK
2
NOT NULL
3
FOREIGN KEY
4
UNIQUE
Question 18
Which SQL clause is used with aggregate functions to group results?
1
HAVING
2
GROUP BY
3
ORDER BY
4
DISTINCT
Question 19
Which database index type speeds up text searches in SQL?
1
Hash Index
2
Full-Text Index
3
Clustered Index
4
B-Tree Index
Question 20
Which SQL command is used to permanently save changes in a transaction?
1
DELETE
2
COMMIT
3
SAVEPOINT
4
ROLLBACK
Question 21
Which normal form removes partial dependency?
1
1NF
2
BCNF
3
2NF
4
3NF
Question 22
Which index type does MySQL use by default for primary keys?
1
Bitmap Index
2
B-Tree Index
3
Hash Index
4
Full-Text Index
Question 23
Which SQL command creates a virtual table?
1
CREATE TABLE
2
CREATE INDEX
3
CREATE VIEW
4
CREATE PROCEDURE
Question 24
Which keyword is used to define an output parameter in an SQL stored procedure?
1
RESULT
2
OUTPUT
3
RETURN
4
OUT
Question 25
Which ACID property ensures that once a transaction is committed, it remains so even in case of system failure?
1
Consistency
2
Atomicity
3
Isolation
4
Durability
Question 26
What is the main goal of normalization in a database?
1
To increase redundancy
2
To minimize redundancy and improve data integrity
3
To store data in a single large table
4
To reduce data integrity
Question 27
What does ACID stand for in DBMS?
1
Automation, Control, Integrity, Dependency
2
Access, Control, Integrity, Data
3
Atomicity, Consistency, Isolation, Durability
4
Accuracy, Consistency, Isolation, Database
Question 28
Which of the following is NOT a type of database model?
1
Linear
2
Hierarchical
3
Network
4
Graph-based
Question 29
Which of the following SQL commands is used to remove all records from a table but keep its structure?
1
TRUNCATE
2
DELETE
3
DROP
4
ALTER
Question 30
Which of the following is an advantage of NoSQL databases over traditional RDBMS?
1
Schema flexibility
2
Better horizontal scalability
3
Handling unstructured data
4
All of the above