Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Review your answers, feedback, and question scores below. An asterisk (*) indicates
a correct answer.
Section 3 Quiz
(Answer all questions in this section)
Specify the same number of variables in the INTO clause as database columns
in the SELECT clause.
Correct Correct
Correct Correct
SELECT last_name
INTO v_holdit
FROM employees
WHERE employee_id=100;
(*)
SELECT last_name
INTO v_holdit
FROM employees;
SELECT *
INTO v_holdit
FROM employees;
SELECT salary
INTO v_holdit
FROM employees
WHERE employee_id=100;
Correct Correct
SELECT (*)
MERGE
DELETE
UPDATE
INSERT
Correct Correct
5. Which of the following is NOT a valid guideline for retrieving
data in PL/SQL? Mark for Review
(1) Points
Specify the same number of variables in the INTO clause as database columns
in the SELECT clause.
Correct Correct
Section 3 Quiz
(Answer all questions in this section)
Correct Correct
7. How many INSERTs can you have in one transaction? Mark for
Review
(1) Points
One
As many as you want until a different DML statement (UPDATE, DELETE or MERGE)
is executed.
Correct Correct
What is the value of SQL%FOUND immediately after the SELECT statement is executed?
False
Null
True (*)
Correct Correct
True
False (*)
Correct Correct
10. There are no employees in Department 77. What will happen when
the following block is executed?
BEGIN
DELETE FROM employees
WHERE department_id=77;
DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT)
END;
Mark for Review
(1) Points
A NULL is displayed.
An exception is raised because the block does not contain a COMMIT statement.
Correct Correct
Section 3 Quiz
(Answer all questions in this section)
Correct Correct
12. To modify an existing row in a table, you can use the ________
statement. Mark for Review
(1) Points
INSERT
ALTER
MODIFY
UPDATE (*)
Correct Correct
13. Which of the following will delete all employees who work in the
Sales department? Mark for Review
(1) Points
UPDATE
MERGE (*)
DELETE
INSERT
15. When explicitly inserting a row into a table, the VALUES clause
must include a value for every column of the table. True or False? Mark for
Review
(1) Points
True
False (*)