Exam 2: Basic PL/SQL Block Structures

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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?

(Multiple Choice)
4.9/5
(40)

The basic loop dictates exactly how many times the loop should run in the opening LOOP clause. ____________________

(True/False)
4.8/5
(26)

To keep code efficient and minimize statement processing, any statements that are dynamic in nature should be placed outside a loop. _________________________

(True/False)
4.9/5
(41)

Loops are used for situations in which we need to repeat a line or lines of code within our block. _________________________

(True/False)
4.9/5
(31)

If the EXIT WHEN clause is not included in a basic loop, then the result is a(n) ____.

(Multiple Choice)
4.8/5
(34)

The only required sections of a PL/SQL block are DECLARE and END.

(True/False)
4.9/5
(25)

Which of the following statements is True?

(Multiple Choice)
4.9/5
(34)

The ____________________ option can be added to the variable declaration to require the variable to always contain a particular value within the block.

(Short Answer)
4.9/5
(30)

The ____ section of a PL/SQL block contains handlers that allow you to control what the application will do if an error occurs when the executable statements are processed.

(Multiple Choice)
4.8/5
(27)

The ____________________ statement is a mechanism that allows the checking of a condition to determine whether or not statements should be processed.

(Short Answer)
4.8/5
(31)

Which of the following statement blocks correctly uses a scalar variable in an assignment statement?

(Multiple Choice)
4.9/5
(35)

A(n) ____________________ statement does not use a selector but individually evaluates conditions that are placed in the WHEN clauses.

(Short Answer)
4.8/5
(35)

Which of the following dictates exactly how many times the loop should run in the opening LOOP clause?

(Multiple Choice)
5.0/5
(25)

Which of the following can be referenced in the loop but cannot be assigned a value because it is controlled by the loop?

(Multiple Choice)
4.7/5
(32)

The following code fragment is a correct example of the use of a basic loop. BEGIN LOOP DBMS_OUTPUT.PUT_LINE( lv_cnt_num ); lv_cnt_num := lv_cnt_num + 1; END LOOP; END;

(True/False)
4.9/5
(34)

The only required sections of a PL/SQL block are the ____ sections.

(Multiple Choice)
4.8/5
(37)

Which of the following does not use a selector, but individually evaluates conditions that are placed in WHEN clauses?

(Multiple Choice)
4.8/5
(35)

The code order NUMBER(2) := 6; is an example of a(n) ____________________.

(Short Answer)
4.9/5
(30)

The statements that are used to control the flow of logic processing in your programs are commonly referred to as ____.

(Multiple Choice)
4.9/5
(32)

The following code fragment is a correct example of the use of a WHILE loop. BEGIN WHILE lv_cnt_num <= 5 DBMS_OUTPUT.PUT_LINE( lv_cnt_num ); lv_cnt_num := lv_cnt_num + 1; END LOOP; END;

(True/False)
4.9/5
(40)
Showing 41 - 60 of 81
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)