Exam 2: Basic PL/SQL Block Structures

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

Which of the following code fragments would not raise an error?

(Multiple Choice)
4.8/5
(40)

The EXIT WHEN clause ensures that a basic loop runs at least once.

(True/False)
4.7/5
(38)

Which of the following statements is correct?

(Multiple Choice)
4.9/5
(34)

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
(40)

Which of the following code fragments would not raise an error?

(Multiple Choice)
4.8/5
(44)

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
(30)

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
(40)

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
(31)

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
(38)

_____________________ statements are used to put or change values in variables.

(Short Answer)
4.8/5
(40)

A(n) ____________________ variable can hold only a single value.

(Short Answer)
4.9/5
(34)

The BEGIN section of a PL/SQL block contains code that creates variables, cursors, and types.

(True/False)
4.8/5
(37)

The CASE statement begins with the keyword CASE followed by a selector that is typically a variable name.

(True/False)
4.8/5
(33)

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
(42)

The ____________________ section of the PL/SQL block contains code that creates variables, cursors, and types.

(Short Answer)
4.8/5
(33)

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
(38)

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
(39)

Which of the following evaluates conditions and returns a value in an assignment statement?

(Multiple Choice)
4.7/5
(37)

The ____ section of a PL/SQL block contains code that creates variables, cursors, and types.

(Multiple Choice)
5.0/5
(31)

Which of the following code fragments would not raise an error?

(Multiple Choice)
4.9/5
(28)
Showing 61 - 80 of 81
close modal

Filters

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