
Cuestionario de Bases de Datos

Quiz
•
Computers
•
Professional Development
•
Medium
Manuel Ruz
Used 1+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of trigger is executed before a DML operation occurs?
AFTER
BEFORE
INSTEAD OF
ON DELETE
Answer explanation
The correct choice is 'BEFORE' because it refers to triggers that execute prior to a DML operation, allowing for validation or modification of data before it is saved to the database.
2.
OPEN ENDED QUESTION
3 mins • 1 pt
Identify the error in this trigger: CREATE TRIGGER trg_example AFTER INSERT empleados BEGIN ... END;
Evaluate responses using AI:
OFF
Answer explanation
The error in the trigger definition is the missing 'FOR EACH ROW' clause. It should be 'CREATE TRIGGER trg_example AFTER INSERT ON empleados FOR EACH ROW BEGIN ... END;'. This clause specifies that the trigger will execute for each row affected.
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Fill the blank: CREATE TRIGGER trg_update_salary ___ UPDATE ON empleados FOR EACH ROW BEGIN ... END;
Answer explanation
La opción correcta es 'BEFORE' porque se utiliza para especificar que el trigger debe ejecutarse antes de que se realice la actualización en la tabla 'empleados'. Esto permite modificar datos antes de que se apliquen los cambios.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword to define an input parameter in a procedure?
IN
OUT
INOUT
PARAM
Answer explanation
The keyword 'IN' is used to define an input parameter in a procedure, indicating that the parameter is for input only. 'OUT' and 'INOUT' serve different purposes, while 'PARAM' is not a valid keyword.
5.
OPEN ENDED QUESTION
3 mins • 1 pt
Short answer: What statement is used to delete a stored procedure called 'calcular_total'?
Evaluate responses using AI:
OFF
Answer explanation
To delete a stored procedure called 'calcular_total', you use the statement: DROP PROCEDURE calcular_total; This command removes the specified procedure from the database.
6.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Fill in the blank: CREATE PROCEDURE ejemplo_proc( ___ name VARCHAR(50) ) BEGIN ... END;
7.
OPEN ENDED QUESTION
3 mins • 1 pt
What statement is used to grant SELECT permissions on the 'clientes' table to the user 'juan'?
Evaluate responses using AI:
OFF
Answer explanation
To grant SELECT permissions on the 'clientes' table to the user 'juan', use the statement: GRANT SELECT ON clientes TO juan; This allows 'juan' to read data from the 'clientes' table.
Create a free account and access millions of resources
Similar Resources on Wayground
43 questions
Splunk Power User Quiz 7

Quiz
•
Professional Development
40 questions
PPL XI 2020

Quiz
•
Professional Development
35 questions
DP-900 Exam Prep Quiz for Microsoft

Quiz
•
Professional Development
36 questions
Software_Requirements_Specifications

Quiz
•
Professional Development
45 questions
A+ 1102 Study Quiz 2

Quiz
•
Professional Development
37 questions
MS-900 - Describe Microsoft 365 Pricing and Support

Quiz
•
Professional Development
41 questions
Switch Staff Challenge 2025 - Explorer

Quiz
•
Professional Development
43 questions
OPY_Procesadores de texto

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development