Lab 8.2 Self-Review Questions


In order to test your progress, you should be able to answer the following questions.

1)

How many times is a WHILE loop executed if the test condition always evaluates to FALSE?

  1. _____ The loop does not execute at all.

  2. _____ The loop executes once.

  3. _____ The loop executes an infinite number of times.

2)

How many times is a WHILE loop executed if the test condition always evaluates to TRUE?

  1. _____ The loop does not execute at all.

  2. _____ The loop executes once.

  3. _____ The loop executes an infinite number of times.

3)

What value must the test condition evaluate to in order for the loop to terminate?

  1. _____ TRUE

  2. _____ FALSE

  3. _____ NULL

4)

What causes a WHILE loop to terminate prematurely?

  1. _____ The EXIT condition evaluates to TRUE before the test condition evaluates to FALSE.

  2. _____ The test condition evaluates to FALSE before the EXIT condition evaluates to TRUE.

  3. _____ Both test and EXIT conditions evaluate to FALSE.

5)

A WHILE loop will execute a minimum of

  1. _____ zero times.

  2. _____ one time.

  3. _____ infinite number of times.


Answers appear in Appendix A, Section 8.2 .



Oracle PL[s]SQL by Example
Oracle PL[s]SQL by Example
ISBN: 3642256902
EAN: N/A
Year: 2003
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net