--:--









Quiz for BEFORE vs AFTER Trigger

Course: SQL | Subject: SQL | Topic: Stored Procedures & Triggers



Logo

Q1: What is the difference between BEFORE and AFTER triggers?

Logo

Q2: Which trigger type allows modification of NEW values before insertion?

Logo

Q3: Which trigger cannot modify data in the table that caused the trigger to fire?

Logo

Q4: Which is true about a BEFORE trigger?

Logo

Q5: Which of the following is executed last in an INSERT operation?

Logo

Q6: Which trigger is best for logging actions that occurred?

Logo

Q7: Which of these can be used to prevent invalid data from being inserted?

Logo

Q8: Which trigger allows you to update another table after a row is inserted?

Logo

Q9: BEFORE DELETE triggers are typically used to:

Logo

Q10: AFTER UPDATE triggers execute:

Logo

Q11: Can you modify the NEW value in an AFTER INSERT trigger?

Logo

Q12: In which situation would a BEFORE UPDATE trigger be used?

Logo

Q13: Which clause is necessary to specify trigger timing?

Logo

Q14: Can AFTER triggers be used to enforce business rules?

Logo

Q15: Which trigger allows checking constraints before executing DML?

Logo

Q16: Which trigger fires after the data is physically removed from a table?

Logo

Q17: When is a BEFORE UPDATE trigger executed?

Logo

Q18: Which of these triggers cannot be used to prevent DML operation?

Logo

Q19: What is a valid use case for AFTER DELETE?

Logo

Q20: What happens if a BEFORE trigger fails?

Logo

Q21: Which clause specifies the timing in a trigger?

Are you ready to start test? Set your time limit