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
Which of the following code fragments would not raise an error?
(Multiple Choice)
4.8/5
(80)
The EXIT WHEN clause ensures that a basic loop runs at least once.
(True/False)
4.7/5
(90)
If the WHERE clause is not included the basic loop, the result is the programmer's nightmare of the infinite loop. _________________________
(True/False)
4.9/5
(86)
Which of the following code fragments would not raise an error?
(Multiple Choice)
4.9/5
(87)
The syntax of the following code fragment is correct.
IF rec_order.state = 'VA' THEN
lv_tax_num := rec_order.sub * .06;
ELS IF rec_order.state = 'ME' THEN
lv_tax_num := rec_order.sub * .05;
END IF
(True/False)
4.9/5
(77)
The Searched CASE statement does not use a selector but individually evaluates conditions that are placed in the WHERE clauses. _________________________
(True/False)
4.9/5
(84)
If the EXIT WHEN clause is not included in the basic loop, the result is the programmer's nightmare of a(n) ____________________.
(Short Answer)
4.9/5
(78)
BEGIN LOOP
DBMS_OUTPUT.PUT_LINE(lv_cnt_num);
Lv_cnt_num := lv_cnt_num + 1;
EXIT WHEN lv_cnt_num >= 5;
END LOOP;
END;
Which of the statements in the code fragment above ensures that the loop executes at least once?
(Multiple Choice)
4.8/5
(72)
_____________________ statements are used to put or change values in variables.
(Short Answer)
4.8/5
(79)
A(n) ____________________ variable can hold only a single value.
(Short Answer)
4.9/5
(83)
The BEGIN section of a PL/SQL block contains code that creates variables, cursors, and types.
(True/False)
4.8/5
(78)
The CASE statement begins with the keyword CASE followed by a selector that is typically a variable name.
(True/False)
4.8/5
(84)
By indicating a numeric range, the ____________________ dictates exactly how many times the loop should run in the opening LOOP clause.
(True/False)
4.9/5
(89)
The ____________________ section of the PL/SQL block contains code that creates variables, cursors, and types.
(Short Answer)
4.9/5
(75)
The syntax of the following code fragment is correct:
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
(True/False)
4.7/5
(88)
The EXCEPTION section of a PL/SQL block contains handlers that allow you to control what the application will do if an error occurs. _________________________
(True/False)
4.9/5
(88)
Which of the following evaluates conditions and returns a value in an assignment statement?
(Multiple Choice)
4.7/5
(85)
The ____ section of a PL/SQL block contains code that creates variables, cursors, and types.
(Multiple Choice)
4.9/5
(71)
Which of the following code fragments would not raise an error?
(Multiple Choice)
4.9/5
(77)
Showing 61 - 80 of 81
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)