NEW
Font size
WorksheetsRDBMS Quiz
Total questions: 40
Worksheet time: 20mins
Which of the following is a feature of RDBMS?
Stores data in files
Stores data in tables with rows and columns
Stores data in arrays
Does not support relationships
In an RDBMS, a row is also called:
Attribute
Tuple
Column
Field
In an RDBMS, a column is also called:
Tuple
Field
Attribute
Relation
Which key uniquely identifies a row in a table?
Foreign Key
Composite Key
Primary Key
Candidate Key
A relation in RDBMS is represented as:
A table
A column
A row
A schema
Which of these is NOT a type of database key?
Primary Key
Foreign Key
Duplicate Key
Candidate Key
What is the full form of RDBMS?
Relational Data Basic Management System
Relational Database Management System
Reliable Database Management Software
Relational Data Backup Management System
Which normal form eliminates partial dependency?
1NF
2NF
3NF
BCNF
Which language is used to query data in RDBMS?
HTML
SQL
XML
C++
Referential integrity in RDBMS ensures:
Primary key values are unique
Foreign key values match with primary key values
Tables are normalized
Duplicate records are avoided
Which of the following is NOT an RDBMS?
Oracle
MySQL
MongoDB
SQL Server
Which operation combines rows from two or more tables based on a related column?
Projection
Join
Selection
Union
Which of the following is true about RDBMS?
Data is stored in files
Data is stored in key-value pairs
Data is stored in objects
Data is stored in tables
Which SQL clause is used to remove duplicate rows from the result set?
DISTINCT
UNIQUE
GROUP BY
ORDER BY
Which of the following is an example of a DQL command?
SELECT
INSERT
UPDATE
DELETE
Which of the following is a DDL command?
INSERT
UPDATE
CREATE
DELETE
Which DDL command is used to remove a table permanently?
REMOVE
DROP
DELETE
ERASE
Which DDL command is used to change the structure of a table?
CHANGE
MODIFY
ALTER
UPDATE
Which command is used to rename a table?
ALTER
UPDATE
RENAME
MODIFY
What does the TRUNCATE command do?
Removes a table permanently
Deletes all rows from a table but keeps structure
Deletes selected rows
Changes schema of a table
Which of the following commands can roll back?
DROP
TRUNCATE
DELETE
CREATE
Which DDL command is used to define a database schema?
ALTER
CREATE
INSERT
UPDATE
Which of the following will delete all rows and free the space?
DELETE
TRUNCATE
DROP
REMOVE
To add a new column to an existing table, which command is used?
CREATE
ALTER
INSERT
UPDATE
Which of the following is true for TRUNCATE?
Slower than DELETE
Cannot be rolled back
Works with WHERE clause
Only removes one row
Which command is used to remove a column from a table?
DELETE COLUMN
ALTER DROP COLUMN
ERASE COLUMN
REMOVE COLUMN
Which command creates a new empty table using another table’s structure?
CREATE TABLE … LIKE …
CREATE TABLE … COPY …
CREATE TABLE … STRUCTURE …
CREATE TABLE … AS EMPTY …
Which of the following is a DML command?
CREATE
ALTER
INSERT
DROP
Which command is used to remove selected rows from a table?
TRUNCATE
DELETE
DROP
REMOVE
Which DML command is used to modify existing records?
CHANGE
ALTER
UPDATE
MODIFY
Which DML command adds data into a table?
INSERT
ADD
APPEND
CREATE
DELETE command can use:
WHERE clause
ORDER BY clause
GROUP BY clause
DISTINCT clause
Which command is faster for removing all rows in a table?
DELETE
TRUNCATE
DROP
ERASE
Which statement is true about UPDATE command?
Cannot be used with WHERE clause
Updates all rows if WHERE is not given
Only works for primary keys
Cannot update NULL values
Which of the following is NOT a DML command?
UPDATE
DELETE
SELECT
ALTER
To insert values into all columns of a table:
Specify only values
Must specify column names
Cannot be done
Requires ALTER
Which of the following can remove duplicate records from a table?
DELETE with DISTINCT
DELETE with GROUP BY
DELETE with ROWID
TRUNCATE
Which of these is an example of a DML statement with subquery?
INSERT INTO table SELECT …
CREATE TABLE AS SELECT …
DROP TABLE …
ALTER TABLE …
Which of the following is true for DELETE command?
Removes table structure
Removes selected rows
Faster than TRUNCATE
Removes only last row
Which DML command can change multiple rows at once?
UPDATE with WHERE
INSERT
ALTER
DROP
