Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Oracle SQL Programming
Quiz 2: Basic PL/SQL Block Structures
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 61
Short Answer
The ____________________ section of the PL/SQL block contains code that creates variables, cursors, and types.
Question 62
Multiple Choice
Which of the following code fragments would not raise an error?
Question 63
Short Answer
The code order NUMBER(2) := 6; is an example of a(n) ____________________.
Question 64
Short Answer
____________________ are used for situations in which we need to repeat a line or lines of code within our block.
Question 65
Short Answer
_____________________ statements are used to put or change values in variables.
Question 66
Multiple Choice
IF rec_order.state = 'VA' THEN lv_tax_num := rec_order.sub * .06; ELSIF rec_order.state = 'ME' THEN Lv_tax_num := rec_order.sub * .05; ELSE Lv_tax_num := rec_order.sub * .04; END IF; Which of the clauses in the code fragment above would not cause the IF statement to raise an error if it were excluded?
Question 67
Short Answer
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.
Question 68
Short Answer
A(n) ____________________ variable can hold only a single value.
Question 69
True/False
By indicating a numeric range, the ____________________ dictates exactly how many times the loop should run in the opening LOOP clause.
Question 70
Essay
What is the purpose of the BEGIN section of a PL/SQL block?
Question 71
True/False
The simple IF statement performs an action only if the condition is ____________________.
Question 72
Short Answer
The ____________________ loop is constructed with conditions in the LOOP statement to determine when the looping action begins and ends.
Question 73
Short Answer
A(n) ____________________ statement does not use a selector but individually evaluates conditions that are placed in the WHEN clauses.
Question 74
Short Answer
If the EXIT WHEN clause is not included in the basic loop, the result is the programmer's nightmare of a(n) ____________________.
Question 75
Short Answer
To declare a variable, you must supply a variable name and ____________________.
Question 76
Multiple Choice
Which of the following code fragments is correct?
Question 77
Multiple Choice
Which of the following can be referenced in the loop but cannot be assigned a value because it is controlled by the loop?
Question 78
Short Answer
The ____________________ statement is a mechanism that allows the checking of a condition to determine whether or not statements should be processed.
Question 79
Multiple Choice
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;