Exam 2: Basic PL/SQL Block Structures
Exam 1: Introduction To PL/SQL54 Questions
Exam 2: Basic PL/SQL Block Structures81 Questions
Exam 3: Handling Data In PL/SQL Blocks51 Questions
Exam 4: Cursors and Exception Handling65 Questions
Exam 5: Procedures75 Questions
Exam 6: Functions51 Questions
Exam 7: PL/SQL Packages68 Questions
Exam 8: Program Unit Dependencies61 Questions
Exam 9: Database Triggers54 Questions
Exam 10: Oracle-Supplied Packages, Dynamic SQL, and Hiding Source Code85 Questions
Select questions type
____________________ are used for situations in which we need to repeat a line or lines of code within our block.
(Short Answer)
4.7/5
(40)
Variables are named memory areas that hold values to allow retrieval and manipulation of values within your programs. _________________________
(True/False)
4.9/5
(35)
The following loop terminates when the lv_cnt_num variable holds a value of 6.
BEGIN
WHILE lv_cnt_num <= 5 LOOP
DBMS_OUTPUT.PUT_LINE( lv_cnt_num );
lv_cnt_num := lv_cnt_num + 1;
END LOOP;
END;
(True/False)
4.9/5
(39)
BEGIN WHILE lv_cnt_num <= 5 LOOP
DBMS_OUTPUT.PUT_LINE(lv_cnt_num);
Lv_cnt_num := lv_cnt_num + 1;
END LOOP;
END;
According to the code fragment above, how many times does the loop iterate?
(Multiple Choice)
4.9/5
(31)
To declare a variable, you must supply a variable name and ____________________.
(Short Answer)
4.8/5
(38)
Why would the following code raise an error? IF rec_order.state = 'VA' THEN
Lv_tax_num := rec_order.sub * .06;
ELSEIF rec_order.state = 'ME' THEN
Lv_tax_num := rec_order.sub * .05;
ELSE
Lv_tax_num := rec_order.sub * .04;
END IF;
(Multiple Choice)
4.9/5
(35)
Which of the following clauses ensures that a basic loop runs at least once?
(Multiple Choice)
4.8/5
(35)
The ____________________ loop is constructed with conditions in the LOOP statement to determine when the looping action begins and ends.
(Short Answer)
4.9/5
(36)
When an IF statement checks only one condition and performs actions only if the condition is True, it is referred to as a(n) simple IF condition. _________________________
(True/False)
4.7/5
(43)
Even though the EXIT clause can be used in any type of loop, it is considered good form to use the EXIT clause only in basic loops.
(True/False)
4.8/5
(36)
With respect to processing efficiency, the less code that has to be processed, the faster the program runs.
(True/False)
4.8/5
(30)
The common data types used for cursor variables include character, numeric, date, and Boolean. _________________________
(True/False)
4.9/5
(26)
Which of the following code fragments would not raise an error?
(Multiple Choice)
4.8/5
(31)
Which of the following allow us to repeat the processing of a desired portion of code?
(Multiple Choice)
4.7/5
(27)
Which of the following lines of code is syntactically correct?
(Multiple Choice)
4.9/5
(42)
The simple IF statement performs an action only if the condition is ____________________.
(True/False)
4.7/5
(35)
The ____________________ section of a PL/SQL block contains handlers that allow you to control what the application will do if an error occurs during the executable statements in the BEGIN section.
(Short Answer)
4.8/5
(35)
Showing 21 - 40 of 81
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)