Quiz 5
Quiz 5
Quiz 5
You can
Marcar para Revisión
store a
(1) Puntos
whole
record in a
single
variable
using
%ROWTYPE
or by
creating
your own
record
structure
as a type
and then
declaring a
variable of
that type.
True (*)
False
Correct
v_dept_info_rec dept_info_type;
v_emp_dept_rec emp_dept_type;
four
two (*)
three
Correct
Correct
True (*)
False
Correct
5. Which of the following will successfully create a record
Marcar para Revisión
type containing two fields, and a record variable of that
(1) Puntos
type?
(l_name VARCHAR2(20),
gender CHAR(1));
person_rec TYPE person_type;
(*)
Correct
To
Marcar para Revisión
declare
(1) Puntos
an
INDEX
BY table,
we must
first
declare a
type and
then
declare a
collection
variable
of that
type.
True or
False?
True (*)
False
Incorrect. Refer to
Section 5 Lesson 2.
Incorrect. Refer to
Section 5 Lesson 2.
a user-defined record
Either one. (*)
%ROWTYPE
Incorrect. Refer to
Section 5 Lesson 2.
Correct
10. Which of the following successfully declares an
Marcar para Revisión
INDEX BY table of records which could be used to
(1) Puntos
store copies of complete rows from the departments
table?
DECLARE
TYPE t_depttab IS TABLE OF
departments%ROWTYPE
INDEX BY BINARY_INTEGER;
(*)
DECLARE
TYPE t_depttab IS INDEX BY TABLE OF
departments%ROWTYPE
INDEX BY BINARY_INTEGER;
DECLARE
TYPE t_depttab IS TABLE OF
departments%TYPE
INDEX BY BINARY_INTEGER;
DECLARE
TYPE t_depttab IS TABLE OF
departments%ROWTYPE
INDEXED BY NUMBER;
11.Which of
Marcar para Revisión
these
(1) Puntos
PL/SQL
data
structures
could
store a
complete
copy of
the
employees
table, i.e.,
20
complete
table
rows?
Correct
True
False (*)
Incorrect. Refer to
Section 5 Lesson 2.
DROP
COUNT (*)
FIRST (*)
PREVIOUS
EXISTS (*)
Correct
True (*)
False
Correct