--:--









Quiz for User Privileges and Roles

Course: SQL | Subject: SQL | Topic: Data Control Language



Logo

Q1: Which SQL command is used to grant privileges to a user?

Logo

Q2: Which keyword is used to allow a user to give privileges to others?

Logo

Q3: Which system privilege allows creating tables?

Logo

Q4: What is a role in SQL?

Logo

Q5: Which SQL command is used to create a new role?

Logo

Q6: To assign a role to a user, which command is used?

Logo

Q7: Which of the following is NOT a valid SQL privilege?

Logo

Q8: What privilege is required to create a view?

Logo

Q9: What is the purpose of the SHOW GRANTS command?

Logo

Q10: Can you grant a role to another role in SQL?

Logo

Q11: Which SQL privilege allows reading data from a table?

Logo

Q12: What happens if you revoke a role from a user?

Logo

Q13: How are privileges stored in MySQL?

Logo

Q14: What type of privilege is EXECUTE?

Logo

Q15: Which keyword is used to remove a user role?

Logo

Q16: Which clause is required to revoke a privilege granted with WITH GRANT OPTION?

Logo

Q17: Can a user have multiple roles in SQL?

Logo

Q18: What is the function of the SET ROLE statement?

Logo

Q19: Which SQL statement would show all defined roles?

Are you ready to start test? Set your time limit