Which of the following is a DML statement? MCQ with Answer and Explanation

Which of the following is a DML statement?
A. ALTER
B. DROP
C. CREATE
D. UPDATE
Answer: Option D
Solution (By JKExamLibrary)
UPDATE is a Data Manipulation Language (DML) command used to modify existing records in a table. CREATE, ALTER, DROP are DDL.

This question belongs to: Computer Database Management System (DBMS)

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
What is an alternate key?
A. The primary key
B. A super key with extra attributes
C. A candidate key that is not chosen as the primary key
D. A foreign key

Correct Answer: Option C


Explanation:
An alternate key is any candidate key that is not the primary key.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
Which of the following terms refers to the duplication of data across multiple locations in a non-DBMS file system?
A. Data Isolation
B. Data Integrity
C. Data Security
D. Data Redundancy

Correct Answer: Option D


Explanation:
Data Redundancy refers to the unnecessary duplication of the exact same data in multiple files or locations, which wastes storage and can cause inconsistencies.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
Which of the following is a valid SQL statement to add a new column to a table?
A. ALTER TABLE table_name ADD COLUMN column_name datatype;
B. ADD COLUMN TO table_name column_name datatype;
C. ALTER TABLE table_name ADD column_name datatype;
D. Both A and C

Correct Answer: Option D


Explanation:
Both 'ADD column_name datatype' and 'ADD COLUMN column_name datatype' are valid syntax in some DBMS, but standard SQL uses 'ADD column_name datatype'. However, many DBMS support both.

This question belongs to: Computer Database Management System (DBMS)