In SQL, which statement is used to change a user's password? MCQ with Answer and Explanation

In SQL, which statement is used to change a user's password?
A. UPDATE USER
B. CHANGE USER
C. ALTER USER
D. MODIFY USER
Answer: Option C
Solution (By JKExamLibrary)
ALTER USER is used in many DBMS to change user attributes, including password. The exact syntax varies by DBMS.

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
Which SQL component is used to specify a fallback default value for a column when no value is provided during an insert operation?
A. NOT NULL
B. CHECK
C. UNIQUE
D. DEFAULT

Correct Answer: Option D


Explanation:
The DEFAULT constraint assigns a predefined default value to a column when an INSERT statement does not explicitly provide a value for that column.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
What is the role of the 'WHERE' clause in an UPDATE statement?
A. To specify which rows to update
B. To join tables
C. To specify the new values
D. To sort the results

Correct Answer: Option A


Explanation:
The WHERE clause in UPDATE identifies the rows that will be updated. Without it, all rows would be updated.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
What does a database constraint called a 'CHECK' constraint do?
A. It automatically links tables together.
B. It limits the range of values that can be placed in a column based on a specific condition.
C. It checks if the database server is running safely.
D. It verifies user authentication passwords.

Correct Answer: Option B


Explanation:
A CHECK constraint enforces domain integrity by limiting the values accepted by a column to only those that satisfy a specified Boolean predicate.

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