Multiple Choice
Which of the following code fragments correctly uses a record variable to hold the row of data queried for a shopper?
A) DECLARE
Rec_shopper bb_shopper%ROWTYPE;
BEGIN
SELECT*
INTO rec_shopper
FROM bb_shopper
WHERE idshopper = :g_shopper;
DBMS_OUTPUT.PUT_LINE(rec_shopper.lastname) ;
DBMS_OUTPUT.PUT_LINE(rec_shopper.address) ;
DBMS_OUTPUT.PUT_LINE(rec_shopper.email) ;
END;
B) DECLARE
Rec_shopper bb_shopper%ROW;
BEGIN
SELECT*
INTO rec_shopper
FROM bb_shopper
WHERE idshopper = :g_shopper;
DBMS_OUTPUT.PUT_LINE(rec_shopper.lastname) ;
DBMS_OUTPUT.PUT_LINE(rec_shopper.address) ;
DBMS_OUTPUT.PUT_LINE(rec_shopper.email) ;
END;
C) DECLARE
Rec_shopper bb_shopper%TYPE;
BEGIN
SELECT*
INTO rec_shopper
FROM bb_shopper
WHERE idshopper = :g_shopper;
DBMS_OUTPUT.PUT_LINE(rec_shopper.lastname) ;
DBMS_OUTPUT.PUT_LINE(rec_shopper.address) ;
DBMS_OUTPUT.PUT_LINE(rec_shopper.email) ;
END;
D) DECLARE
Rec_shopper bb_shopperROWTYPE;
BEGIN
SELECT*
INTO rec_shopper
FROM bb_shopper;
WHERE idshopper = :g_shopper;
END;
Correct Answer:

Verified
Correct Answer:
Verified
Q34: A(n)<u>index table</u> is an ordered group of
Q35: Which of the following statements is incorrect?<br>A)
Q36: The associative array attribute <u>EXISTS </u>returns the
Q37: A(n) _ can store and handle multiple
Q38: A composite data type is a variable
Q40: The GOTO statement interrupts the flow of
Q41: The<u> UPDATE</u> statement is sometimes called a
Q42: Discuss the meaning of the term collection.
Q43: A variable declared with a record type
Q44: A(n) _ data type is quite similar