DBMS · Question 4 · Easy

The SQL commands GRANT and REVOKE belong to which category of SQL statements?

  1. DCL (Data Control Language)
  2. DDL (Data Definition Language)
  3. DML (Data Manipulation Language)
  4. TCL (Transaction Control Language)
Answer and explanation

Answer: A. DCL (Data Control Language)

Explanation: GRANT and REVOKE control access privileges, so they are Data Control Language commands. COMMIT/ROLLBACK are TCL, CREATE/ALTER are DDL.

Previous: Among all candidate keys of a relation, the one chosen by the database… · Next: In an ER diagram (Chen notation), how is a weak entity set drawn?

Practise dbms

Try a fresh set of dbms questions with an explanation after every answer, free and without signing up: DBMS practice. Or sit a full placement mock test.

More dbms questions

More technical & programming practice

SQL · Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge