Академический Документы
Профессиональный Документы
Культура Документы
Section 2 Quiz
(Answer all questions in this section)
11. Which of the following are required when declaring a variable? (Choose two.)
Mark for Review
(1) Points
NOT NULL
CONSTANT
Data type (*)
Identifier name (*)
Correct
12. Which of the following are examples of good programming practice? (Choose
three.) Mark for Review
(1) Points
Correct
13. Which of the following will help to make code easier to read?
Mark for Review
(1) Points
Naming variables.
Using %Type.
Including comments in the code. (*)
14. Which of the following are scalar data types? (Choose three.)
Mark for Review
(1) Points
Character (*)
Table
Array
Boolean (*)
Date (*)
Correct
Composite
Reference
Scalar
LOB (*)
Correct
Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 2 Quiz
(Answer all questions in this section)
6. PL/SQL can implicitly convert a CHAR to a NUMBER, provided the CHAR contains a
numeric value, for example '123'. True or False? Mark for Review
(1) Points
True (*)
False
Correct
Correct
completion_%
v_code (*)
students_street_address (*)
#hours
Full Name
Correct
9. Delimiters are _____ that have special meaning to the Oracle database.
Mark for Review
(1) Points
symbols (*)
identifiers
variables
Correct
Correct.
Not correct. (*)
Correct
Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 2 Quiz
(Answer all questions in this section)
v_count PLS_INTEGER:=0;
v_pages CONSTANT NUMBER; (*)
v_start_date DATE := sysdate+1;
college_name VARCHAR2(20):='Harvard';
Correct
2. If you are using the %TYPE attribute, you can avoid hard coding the:
Mark for Review
(1) Points
Constraint
Data type (*)
Table name
Column name
Correct
12
VarB
20
Nothing, the block will fail with an error (*)
8
Correct
Chang (*)
SusanChang
The code will fail with an error
Susan
ChangChang
Correct
5. Examine the following code:
Mark for Review
DECLARE (1) Points
x VARCHAR2(20);
BEGIN
x:= 5 + 4 * 5 ;
DBMS_OUTPUT.PUT_LINE(x);
END;
29
25 (*)
45
14
Correct