Full file at

Similar documents
ORACLE: PL/SQL Programming

OVERVIEW OF THE TYPES OF PL/SQL BLOCKS:

The PL/SQL Engine: PL/SQL. A PL/SQL Block: Declaration Section. Execution Section. Declaration Section 3/24/2014

Topics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia

Contents I Introduction 1 Introduction to PL/SQL iii

Chapter 2: Functions and Control Structures

Oracle PLSQL. Course Summary. Duration. Objectives

Procedural Language Structured Query Language (PL/SQL)

PL/SQL Block structure

Introduction to Computer Science and Business

PROCEDURAL DATABASE PROGRAMMING ( PL/SQL AND T-SQL)

2 PL/SQL - fundamentals Variables and Constants Operators SQL in PL/SQL Control structures... 7

Oracle Database 11g: SQL and PL/SQL Fundamentals

5. Single-row function

Section I : Section II : Question 1. Question 2. Question 3.

C++ Programming: From Problem Analysis to Program Design, Third Edition

Chapter 1 CONTROL STRUCTURES. SYS-ED/ Computer Education Techniques, Inc.

Question Bank PL/SQL Fundamentals-I

Lecture 08. Spring 2018 Borough of Manhattan Community College

IBM DB2 9.7 SQL Procedure Developer.

Database Programming with PL/SQL

Database Programming with PL/SQL

UNIT II PL / SQL AND TRIGGERS

ADVANTAGES. Via PL/SQL, all sorts of calculations can be done quickly and efficiently without use of Oracle engine.

Oracle Database: SQL and PL/SQL Fundamentals NEW

Lesson B Objectives IF/THEN. Chapter 4B: More Advanced PL/SQL Programming

Oracle Database: SQL and PL/SQL Fundamentals Ed 2

Computing Science 114 Solutions to Midterm Examination Tuesday October 19, In Questions 1 20, Circle EXACTLY ONE choice as the best answer

An Introduction to Programming with C++ Sixth Edition. Chapter 7 The Repetition Structure

Oracle PLSQL Training Syllabus

RDBMS - PL SQL - Topic 5 - MSBTE QUESTIONS AND ANSWERS

Oracle PL/SQL - 12c & 11g [Basic PL/SQL & Advanced PL/SQL]

Oracle Database 11g: Program with PL/SQL Release 2

3. Except for strings, double quotes, identifiers, and keywords, C++ ignores all white space.

Database Programming with PL/SQL

Table of Contents. Oracle SQL PL/SQL Training Courses

Oracle Database 11g: Program with PL/SQL

Lab 09: Advanced SQL

First Name: Last: ID# 1. Hexadecimal uses the symbols 1, 2, 3, 4, 5, 6, 7 8, 9, A, B, C, D, E, F,G.

Table of Contents. PDF created with FinePrint pdffactory Pro trial version

Business Analytics. SQL PL SQL [Oracle 10 g] P r i n c e S e t h i w w w. x l m a c r o. w e b s. c o m

Slides by: Ms. Shree Jaswal

1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL

Introduction to Visual Basic and Visual C++ Arithmetic Expression. Arithmetic Expression. Using Arithmetic Expression. Lesson 4.

Full file at

PL / SQL Basics. Chapter 3

Full file at Chapter 2: An Introduction to SQL

All copyrights reserved - KV NAD, Aluva. Dinesh Kumar Ram PGT(CS) KV NAD Aluva

Oracle Database: Introduction to SQL/PLSQL Accelerated

Oracle Class VI. Exception Block Cursors For Loops

Question No : 1 Which statement is true about triggers on data definition language (DDL) statements?

Oracle Database: Program with PL/SQL

COSC344 Database Theory and Applications. Lecture 11 Triggers

Databases 1. SQL/PSM and Oracle PL/SQL

Introduction to Explicit Cursors. Copyright 2008, Oracle. All rights reserved.

Control Structures. Control Structures 3-1

OBJECT ORIENTED SIMULATION LANGUAGE. OOSimL Reference Manual - Part 1

UNIT-IV (Relational Database Language, PL/SQL)

Oracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led

V3 1/3/2015. Programming in C. Example 1. Example Ch 05 A 1. What if we want to process three different pairs of integers?

Introduction to SQL/PLSQL Accelerated Ed 2

Database Programming with PL/SQL

Meet MariaDB Vicențiu Ciorbaru Software MariaDB Foundation * * 2017 MariaDB Foundation

PL/SQL is a combination of SQL along with the procedural features of programming languages.

Ch02. True/False Indicate whether the statement is true or false.

ch02 True/False Indicate whether the statement is true or false.

ECE 122. Engineering Problem Solving with Java

IZ0-144Oracle 11g PL/SQL Certification (OCA) training

function [s p] = sumprod (f, g)

DATABASE DESIGN - 1DL400

CPE 112 Spring 2015 Exam II (100 pts) March 4, Definition Matching (8 Points)

Problem Solving With Loops

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Oracle Database: Program with PL/SQL

Computer Programming I - Unit 5 Lecture page 1 of 14

4 Application Programming

Oracle Database: Program with PL/SQL Ed 2

Loops. CSE 114, Computer Science 1 Stony Brook University

4 Application Programming

PROCEDURAL DATABASE PROGRAMMING ( PL/SQL AND T-SQL)

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database 11g: Program with PL/ SQL. Version: Demo

Oracle Database 12c R2: Program with PL/SQL Ed 2 Duration: 5 Days

Conditionally control code flow (loops, control structures). Create stored procedures and functions.

The PCAT Programming Language Reference Manual

MIS 409 PL/SQL test (May 5, 2016) 1) Create a package called Company_package - This package consists of two procedures and two functions.

Real SQL Programming Persistent Stored Modules (PSM)

ITDUMPS QUESTION & ANSWER. Accurate study guides, High passing rate! IT dumps provides update free of charge in one year!

INDEX. 1 Introduction. 2 Types of Cursors 2.1 Explicit cursor 2.2 Attributes 2.3 Implicit cursor 2.4 Attributes. 3 Parameterized cursor

Chapter 4 Loops. Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved.

Flow Control Continued

SQL User Defined Code. Kathleen Durant CS 3200

ORACLE TRAINING. ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL. Oracle SQL Training Syllabus

based mainly on course notes by Will Hyslop (UNB-F) and course notes by Jeff Ullman and others (Stanford)

COBOL Unbounded Loops A Diatribe On Their Omission From the COBOL Standard (and a Plea for Understanding)

Oracle Database 10g: PL/SQL Fundamentals

Performance and Tuning. 2010, Oracle and/or its affiliates. All rights reserved.

Data Base Management System LAB LECTURES

Course 492 Supplementary Materials. Mutating Tables

Sisteme Informatice şi Standarde Deschise (SISD) Curs 7 Standarde pentru programarea bazelor de date (1)

Greens Technology s Contact :

Transcription:

ch02 True/False Indicate whether the statement is true or false. 1. The term anonymous blocks refers to blocks of code that are not stored for reuse and do not exist after being executed. 2. The only required sections of a PL/SQL block are DECLARE and END. 3. The section of a PL/SQL block contains code that creates variables, cursors, and types. 4. Assignment statements are used to put or change the values of variables. 5. The keyword DEFAULT can be used in place of the := symbol to assign initial values to the variables within the declaration statement. 6. The LOOP statement is a mechanism that allows the checking of a condition to determine if statements should or should not be processed. 7. When an IF statement checks only one condition and performs actions only if the condition is TRUE, it is referred to as a simple IF condition. 8. With respect to processing efficiency, the less code that has to be processed, the faster the program runs. 9. The syntax of the following code fragment is correct: IF rec_order.state = VA THEN lv_tax_num := rec_order.sub *.06; IF rec_order.state = ME THEN lv_tax_num := rec_order.sub *.05; lv_tax_num := rec_order.sub *.04; END IF 10. 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 11. The CASE statement begins with the keyword CASE followed by a selector that is typically a variable name. 12. The following code fragment is a correct example of the use of a basic loop. LOOP DBMS_OUTPUT.PUT_LINE( lv_cnt_num );

13. An infinite loop causes a program to loop indefinitely, disrupting the ability of the code to continue with any processing beyond the loop. 14. The EXIT WHEN clause ensures that a basic loop runs at least once. 15. The following code fragment is a correct example of the use of a WHILE loop. WHILE lv_cnt_num <= 5 DBMS_OUTPUT.PUT_LINE( lv_cnt_num ); 16. The following loop iterates four times. WHILE lv_cnt_num <= 5 LOOP DBMS_OUTPUT.PUT_LINE( lv_cnt_num ); 17. The following loop terminates when the lv_cnt_num variable holds a value of 6. WHILE lv_cnt_num <= 5 LOOP DBMS_OUTPUT.PUT_LINE( lv_cnt_num ); 18. The following code fragment is a correct example of the use of a FOR loop. FOR i IN 1..5 DBMS_OUTPUT.PUT_LINE( i ); 19. Even though the EXIT clause can be used in any type of loop, it is considered good form to use the EXIT clause only in basic loops. Modified True/False Indicate whether the statement is true or false. If false, change the identified word or phrase to make the statement true. 20. The section of a PL/SQL block contains code that creates variables, cursors, and types. _

21. A(n) scalar variable can hold only a single value. _ 22. The DECLARE section of the PL/SQL block contains all the processing action, or programming logic. _ 23. The EXCEPTION section of a PL/SQL block contains handlers that allow you to control what the application will do if an error occurs. _ 24. Variables are named memory areas that hold values to allow retrieval and manipulation of values within your programs. _ 25. The common data types used for cursor variables include character, numeric, date, and Boolean. _ 26. When an IF statement checks only one condition and performs actions only if the condition is TRUE, it is referred to as a(n) simple IF condition. _ 27. The Searched CASE statement does not use a selector but individually evaluates conditions that are placed in the WHERE clauses. _ 28. A(n) CASE expression evaluates conditions and returns a value in an assignment statement. _ 29. Loops are used for situations in which we need to repeat a line or lines of code within our block. _ 30. The basic loop uses the LOOP and END LOOP markers to begin and end the loop code. _ 31. If the WHERE clause is not included the basic loop, the result is the programmer s nightmare of the infinite loop. _ 32. The basic loop dictates exactly how many times the loop should run in the opening LOOP clause. 33. To keep code efficient and minimize statement processing, any statements that are dynamic in nature should be placed outside a loop. _ Multiple Choice Identify the choice that best completes the statement or answers the question. 34. The only required sections of a PL/SQL block are the sections. a. & DECLARE c. & END b. DECLARE & EXCEPTION d. EXCEPTION & END 35. The section of a PL/SQL block contains code that creates variables, cursors, and types. a. DECLARE c. EXCEPTION b. d. END 36. are used to change the values of variables.

a. Loops c. Exceptions b. Assignment statements d. Blocks 37. 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. a. EXCEPTION c. DECLARE b. d. END 38. are named memory areas that hold values to allow the retrieval and manipulation of values in a program. a. Loops c. Blocks b. Assignment statements d. Variables 39. Which of the following lines of code is syntactically correct? a. DECLARE order NUMBER; END b. DECLARE order NUMBER; departure DATE END c. DECLARE order NUMBER(2); ; END d. DECLARE order NUMBER(3); 40. Which of the following initializes the variable order? a. DECLARE order NUMBER(2); b. DECLARE order NUMBER(2) = 0;

c. DECLARE order NUMBER(2) =: 0; d. DECLARE order NUMBER(2) := 0; 41. Which of the following PL/SQL blocks requires the variable to always contain a particular value within the block? a. DECLARE order NUMBER(2) := 0; b. DECLARE order NUMBER(2,2) :=.06; c. DECLARE order CONSTANT NUMBER(2,2) :=.02; d. DECLARE order NUMBER(2) CONSTANT :=.03; 42. DECLARE order NUMBER(2) := 4;

total_amt NUMBER(2); total_amt := order * 8; According to the statement block above, what value is stored in the variable total_amt? a. 4 c. 12 b. 8 d. 32 43. Which of the following statement blocks correctly uses a scalar variable in an assignment statement? a. DECLARE order NUMBER(2) := 4; total_amt NUMBER(2); total_amt = 12; b. DECLARE order NUMBER(2) := 4; total_amt NUMBER(2); total_amt := 12 * order; c. DECLARE order NUMBER(2) := 4; total_amt NUMBER(2); order := total_amt *12; d. DECLARE order NUMBER(2) := 4; total_amt NUMBER(2); total_amt := total_amt *12; 44. The statements that are used to control the flow of logic processing in your programs are commonly referred to as. a. exceptions c. pragma statements b. control structures d. index-by tables 45. Which of the following statements is correct? a. IF order > 5 prize = yes ; b. IF order > 5 THEN prize = yes ; ENDIF

c. IF order > 5 THEN; prize = yes ; d. IF order > 5 THEN prize := yes ; 46. Which of the following code fragments would not raise an error? a. IF rec_order.state = VA THEN lv_tax_num := rec_order.sub *.06; IF rec_order.state = ME THEN lv_tax_num := rec_order.sub *.05; lv_tax_num := rec_order.sub *.04; b. IF rec_order.state = VA THEN lv_tax_num := rec_order.sub *.06; IF rec_order.state = ME THEN lv_tax_num := rec_order.sub *.05; lv_tax_num := rec_order.sub *.04; c. 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; lv_tax_num := rec_order.sub *.04; d. 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; lv_tax_num := rec_order.sub *.04; 47. Which of the following code fragments would not raise an error? a. IF rec.state = VA OR PA THEN a := b *.06; a := b *.04; b. IF rec.state = VA OR rec.state = PA THEN a := b *.06;

a := b *.04; c. IF rec.state = VA OR rec.state = PA a := b *.06; a := b *.04; d. IF rec.state = VA OR rec.state = PA THEN a := b *.06; a := b *.04; END IF 48. Which of the following does not use a selector, but individually evaluates conditions that are placed in WHEN clauses? a. Control statements c. Loops b. Searched CASE d. CASE expression 49. Which of the following evaluates conditions and returns a value in an assignment statement? a. Searched CASE c. CASE expression b. Basic loop d. Control statement 50. Which of the following statements is true? a. The WHEN clause of a CASE statement ends with a semicolon. b. The WHEN clause of a CASE statement ends with END CASE;. c. The WHEN clause of a CASE expression does not end with a semicolon. d. The WHEN clause of a CASE statement ends with ENDCASE. 51. Which of the following allow us to repeat the processing of a desired portion of code? a. Functions c. IF statements b. Looping constructs d. CASE expressions 52. The uses the LOOP and END LOOP markers to begin and end the loop code. a. basic loop c. index-by table b. cursor d. general loop 53. Which of the following code fragments would not raise an error? a. LOOP DBMS_OUTPUT.PUT_LINE( lv_cnt_num ); b. LOOP DBMS_OUTPUT.PUT_LINE( lv_cnt_num ); EXIT WHEN lv_cnt_num >= 5;

c. LOOP DBMS_OUTPUT.PUT_LINE( lv_cnt_num ); EXIT WHEN lv_cnt_num >= 5; lv_cnt_num := lv_cnt_num + 1 END LOOP END d. LOOP DBMS_OUTPUT.PUT_LINE( lv_cnt_num ); EXIT WHEN lv_cnt_num >= 5; 54. If the EXIT WHEN clause is not included in a basic loop, then the result is a(n). a. infinite loop c. RAISE_APPLICATION_ERROR b. exception d. SQLCODE error 55. Which of the following clauses ensures that a basic loop runs at least once? a. EXIT WHEN c. CASE b. WHERE d. LOOP 56. LOOP DBMS_OUTPUT.PUT_LINE(lv_cnt_num); EXIT WHEN lv_cnt_num >= 5; Which of the statements in the code fragment above ensures that the loop executes at least once? a. LOOP b. c. EXIT WHEN lv_cnt_num >= 5; d. DBMS_OUTPUT.PUT_LINE(lv_cnt_num); 57. Which of the following code fragments would not raise an error? a. WHILE lv_cnt_num <= 5 DBMS_OUTPUT.PUT_LINE(lv_cnt_num); b. WHILE lv_cnt_num <= 5 DBMS_OUTPUT.PUT_LINE(lv_cnt_num);

c. WHILE lv_cnt_num <= 5 LOOP DBMS_OUTPUT.PUT_LINE(lv_cnt_num); d. WHILE lv_cnt_num <= 5 LOOP DBMS_OUTPUT.PUT_LINE(lv_cnt_num); 58. WHILE lv_cnt_num <= 5 LOOP DBMS_OUTPUT.PUT_LINE(lv_cnt_num); According to the code fragment above, how many times does the loop iterate? a. 3 c. 5 b. 4 d. 6 59. FOR i IN 1..tbl_roast.COUNT LOOP lv_tot_num := lv_tot_num + tbl_roast(i); In the above code fragment, which of the following holds the value of the current iteration number? a. tbl_roast c. COUNT b. i d. lv_tot_num 60. Which of the following dictates exactly how many times the loop should run in the opening LOOP clause? a. CASE c. FOR loop b. WHILE loop d. Basic loop 61. Which of the following code fragments would not raise an error? a. FOR i IN 1..10 LOOP DBMS_OUTPUT.PUT_LINE(i); b. FOR i IN 1..10 LOOP DBMS_OUTPUT.PUT_LINE(c) END LOOP

c. FOR i IN 1..10 DBMS_OUTPUT.PUT_LINE(i); d. FOR i IN 1..10 LOOP DBMS_OUTPUT.PUT_LINE END LOOP 62. Which of the following can be referenced in the loop but cannot be assigned a value because it is controlled by the loop? a. The counter variable c. The INSERT INTO clause b. The IN clause d. The FOR clause 63. Which of the following code fragments is correct? a. FOR i IN 1..tbl.COUNT lv_tot_num := lv_tot_num + tbl_roast(i); b. FOR i IN 1..tbl.COUNT LOOP lv_tot_num := lv_tot_num + tbl_roast(i) END LOOP c. FOR i IN 1..tbl.COUNT LOOP lv_tot_num = lv_tot_num + tbl_roast(i); d. FOR i IN 1..tbl.COUNT LOOP lv_tot_num := lv_tot_num + tbl_roast(i); 64. Why would the following code raise an error? IF rec_order.state = VA THEN lv_tax_num := rec_order.sub *.06; IF rec_order.state = ME THEN lv_tax_num := rec_order.sub *.05; lv_tax_num := rec_order.sub *.04; a. Semicolon after THEN is omitted c. IF is not a keyword b. No space between and IF d. := should be = 65. 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;

lv_tax_num := rec_order.sub *.04; Which of the clauses in the code fragment above would not cause the IF statement to raise an error if it were excluded? a. c. END IF b. IF d. THEN Completion Complete each statement. 66. The section of the PL/SQL block contains code that creates variables, cursors, and types. 67. A(n) variable can hold only a single value. 68. _ statements are used to put or change values in variables. 69. 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 section. 70. To declare a variable, you must supply a variable name and. 71. The code order NUMBER(2) := 6; is an example of a(n). 72. The option can be added to the variable declaration to require the variable to always contain a particular value within the block. 73. The statement is a mechanism that allows the checking of a condition to determine whether or not statements should be processed. 74. The simple IF statement performs an action only if the condition is. 75. A(n) statement does not use a selector but individually evaluates conditions that are placed in the WHEN clauses. 76. are used for situations in which we need to repeat a line or lines of code within our block. 77. If the EXIT WHEN clause is not included in the basic loop, the result is the programmer s nightmare of a(n). 78. By indicating a numeric range, the dictates exactly how many times the loop should run in the opening LOOP clause. 79. The loop is constructed with conditions in the LOOP statement to determine when the looping action begins and ends.

Essay 80. What is the purpose of the section of a PL/SQL block? 81. What is the purpose of control structures?

ch02 Answer Section TRUE/FALSE 1. ANS: T PTS: 1 REF: 36 2. ANS: T PTS: 1 REF: 36 3. ANS: F PTS: 1 REF: 36 4. ANS: T PTS: 1 REF: 37 5. ANS: T PTS: 1 REF: 41 6. ANS: F PTS: 1 REF: 47 7. ANS: T PTS: 1 REF: 47 8. ANS: T PTS: 1 REF: 49 9. ANS: F PTS: 1 REF: 50 10. ANS: F PTS: 1 REF: 50 11. ANS: T PTS: 1 REF: 53 12. ANS: F PTS: 1 REF: 58 13. ANS: T PTS: 1 REF: 59 14. ANS: T PTS: 1 REF: 59 15. ANS: F PTS: 1 REF: 60 16. ANS: F PTS: 1 REF: 60 17. ANS: T PTS: 1 REF: 60 18. ANS: F PTS: 1 REF: 61 19. ANS: T PTS: 1 REF: 63 MODIFIED TRUE/FALSE 20. ANS: F, DECLARE PTS: 1 REF: 36 21. ANS: T PTS: 1 REF: 36 22. ANS: F, PTS: 1 REF: 37 23. ANS: T PTS: 1 REF: 37 24. ANS: T PTS: 1 REF: 37 25. ANS: F, scalar PTS: 1 REF: 38 26. ANS: T PTS: 1 REF: 47 27. ANS: F, WHEN PTS: 1 REF: 55 28. ANS: T PTS: 1 REF: 56 29. ANS: T PTS: 1 REF: 57 30. ANS: T PTS: 1 REF: 57

31. ANS: F, EXIT WHEN PTS: 1 REF: 59 32. ANS: F, FOR PTS: 1 REF: 61 33. ANS: F, static PTS: 1 REF: 63 MULTIPLE CHOICE 34. ANS: C PTS: 1 REF: 36 35. ANS: A PTS: 1 REF: 36 36. ANS: B PTS: 1 REF: 37 37. ANS: A PTS: 1 REF: 37 38. ANS: D PTS: 1 REF: 37 39. ANS: D PTS: 1 REF: 39 40. ANS: D PTS: 1 REF: 41 41. ANS: C PTS: 1 REF: 42 42. ANS: D PTS: 1 REF: 44 43. ANS: B PTS: 1 REF: 44 44. ANS: B PTS: 1 REF: 46 45. ANS: D PTS: 1 REF: 47-48 46. ANS: C PTS: 1 REF: 50 47. ANS: B PTS: 1 REF: 50 48. ANS: B PTS: 1 REF: 55 49. ANS: C PTS: 1 REF: 56 50. ANS: C PTS: 1 REF: 57 51. ANS: B PTS: 1 REF: 57 52. ANS: A PTS: 1 REF: 57 53. ANS: D PTS: 1 REF: 58 54. ANS: A PTS: 1 REF: 59 55. ANS: A PTS: 1 REF: 59 56. ANS: C PTS: 1 REF: 59 57. ANS: D PTS: 1 REF: 60 58. ANS: C PTS: 1 REF: 60 59. ANS: B PTS: 1 REF: 61 60. ANS: C PTS: 1 REF: 61 61. ANS: A PTS: 1 REF: 61 62. ANS: A PTS: 1 REF: 62 63. ANS: D PTS: 1 REF: 63 64. ANS: C PTS: 1 REF: 64 65 65. ANS: A PTS: 1 REF: 64-65 COMPLETION

66. ANS: DECLARE PTS: 1 REF: 36 67. ANS: scalar PTS: 1 REF: 36 68. ANS: Assignment PTS: 1 REF: 37 69. ANS: EXCEPTION PTS: 1 REF: 37 70. ANS: data type PTS: 1 REF: 37 71. ANS: assignment statement PTS: 1 REF: 39 72. ANS: CONSTANT PTS: 1 REF: 42 73. ANS: IF PTS: 1 REF: 47 74. ANS: TRUE PTS: 1 REF: 47 75. ANS: Searched CASE PTS: 1 REF: 55 76. ANS: Loops PTS: 1 REF: 57 77. ANS: infinite loop PTS: 1 REF: 59 78. ANS: FOR loop PTS: 1 REF: 61 79. ANS: WHILE FOR PTS: 1 REF: 63 ESSAY 80. ANS:

The section is the heart of the PL/SQL block in that it contains all the processing action, or programming logic. SQL is used for database queries and data manipulation. Conditional logic, such as IF statements, is used to make decisions on what action to take. Loops are used to repeat code and assignment statements are used to put or change values in variables. PTS: 1 REF: 37 81. ANS: Control structures provide the capability to perform conditional logic to determine which statements should be run, how many times the statements should be run, and the overall sequence of events. PTS: 1 REF: 46 47