
Cuestionario de Bases de Datos
Authored by Manuel Ruz
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
38 questions
IT Basic Assesment
Quiz
•
7th Grade - Professio...
35 questions
Python Knowledge Check
Quiz
•
Professional Development
44 questions
UD8. La Capa de Transporte
Quiz
•
Professional Development
45 questions
Android ATC_Practice 2
Quiz
•
Professional Development
44 questions
AWS Certified Cloud Practitioner
Quiz
•
5th Grade - Professio...
44 questions
AZ-900 - Simulado de Exame 02
Quiz
•
Professional Development
40 questions
DATA BASE
Quiz
•
Professional Development
45 questions
PHOTOSHOP MCQ QUZIZZ
Quiz
•
Professional Development
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
44 questions
Would you rather...
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
14 questions
Valentine's Day Trivia!
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development