DATABASE Final Exam Reviewer [TERMS]

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/281

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

282 Terms

1
New cards

LETSS GO!!😊

YOU CAN DO IT!!😊

2
New cards

The ______ clause is used in DML statement to specify variable(s) that will hold the value(s) that SQL returns from the SELECT clause.

INTO

3
New cards

The _________ cursors are defined by the PL/SQL programmer.

EXPLICIT

4
New cards

The ______ is a Boolean attribute that evaluates to TRUE if the most recent SQL statement did not return even one row.

SQL%NOTFOUND

5
New cards

The _____ statement selects rows from one table to update and/or insert into another table.

MERGE

6
New cards

The _____ is an integer value that represents the number of rows affected by the most recent SQL statement.

SQL%ROWCOUNT

7
New cards

An integer value that represents the number of rows affected by the most recent SQL.

Group of answer choices

SQL%NUMROW

SQL%ROWCOUNT

SQL%COUNT

SQL%COUNTROW

SQL%ROWCOUNT

8
New cards

The DDL and _______ SQL statements cannot be used directly in PL/SQL.

DCL

9
New cards

The memory area allocated by Oracle server to store the SQL statement and the data that it uses in known as __________.

IMPLICIT CURSOR

10
New cards

The memory area allocated by Oracle server to store the SQL statement and the data that it uses in known as:

Group of answer choices

View

Cursor

Implicit Cursor

Explicit Cursor

Implicit Cursor

11
New cards

Which DML statement make changes to the database?

Group of answer choices

All the options

UPDATE

INSERT

DELETE

All the options

12
New cards

Which SQL statements cannot be used directly in PL/SQL?

Group of answer choices

TCL

DML

DDL, DCL

DML, TCL

DDL, DCL

13
New cards

The ______ are automatically declared variables that allow you to evaluate what happened when a cursor was last used.

Group of answer choices

Cursor attributes

Implicit attributes

Explicit attributes

Attributes

Cursor attributes

14
New cards

The ______ is the symbol used for the assignment operator.

Group of answer choices

=

:=

:=

15
New cards

The use of CASE statement to test conditions such as <, >, >=, <= is know as:

Group of answer choices

Conditional CASE Expression

Equality CASE statement

Non-equality CASE statement

Searched CASE statement

Searched CASE statement

16
New cards

A _______ is an expression with a TRUE or FALSE value that is used to make a decision.

Group of answer choices

Conditional statement

Condition

Nested-if

ELSE

Condition

17
New cards

The type of loop where the statement inside the loop must execute at least once.

BASIC LOOP

18
New cards

A ________ is used in order to come out of from the outer loop within an inner loop.

EXIT

19
New cards

The ______ is a Boolean attribute that evaluates to True if the most recent SQL statement returned at least one row.

SQL%FOUND

20
New cards

The _________ SQL Rule: queries must return only one row.

SINGLE ROW

21
New cards

You can change the logical flow of statements within the PL/SQL block by using:

Group of answer choices

Subprograms

Looping statements

Control structures

Conditional statements

Control structures

22
New cards

In for loop, counter variable is declared _______.

IMPLICITLY

23
New cards

dl link for m1s3 reference:https://feu.instructure.com/courses/98146/files/25247978/download?wrap=1

Refer to M1S3-code reference#1, what is missing in the creation of the implicit cursor inside the loop body? _______

VCTR

24
New cards

The _______cursor are automatically defined by Oracle.

IMPLICIT

25
New cards

The _______ are used to change the logical flow of statements within the PL/SQL block.

Group of answer choices

Control Structures

Conditional statement

Looping statement

CASE statement

Control Structures

26
New cards

The use of INTO clause in PL/SQL select statement is to specify the name of: ____________.

Group of answer choices

TABLE

VIEW

CURSOR

VARIABLE

VARIABLE

27
New cards

Use the ______ loop when the statement inside the loop must execute at least once.

BASIC

28
New cards

The DML statement: INSERT, DELETE, ________ make changes to the database.

UPDATE

29
New cards

The _______ statement selects rows from one table to update and/or insert into another table.

Group of answer choices

DML

COMBINE

SELECT, INSERT, UPDATE

MERGE

MERGE

30
New cards

The _______ is an expression that returns true, false, or null.

Group of answer choices

CASE STATEMENT

CONDITION

Counter variable

IF STATEMENT

CONDITION

31
New cards

The use of INTO clause in PL/SQL select statement is to specify the name of ________.

VARIABLES

32
New cards

The INTO clause occurs between the _______ and FROM clauses.

SELECT

33
New cards

The INTO clause occurs between the SELECT and _______ clauses.

FROM

34
New cards

The ______ are automatically declared variables that allow you to evaluate what happened when a cursor was last used.

CURSOR ATTRIBUTES

35
New cards

A ________ allows us to declare a variable as a record based on a particular table's structure.

%ROWTYPE

36
New cards

Each ________ is consists of a WHEN clause, which specifies an exception name.

HANDLER

37
New cards

The exception section begins with the keyword _______.

EXCEPTION

38
New cards

When an exception is raised, control immediately shifts to the _______ and the appropriate handler in the exception section is executed.

EXCEPTION SECTION

39
New cards

PL/SQL records contain one or more components/fields of any _______ or composite type.

SCALAR

40
New cards

In trapping a user-defined exception, these steps must be followed: DECLARE -> RAISE -> __________.

Group of answer choices

Not in the options

Exception Handling

Reference

Identify Exception

Reference

41
New cards

Code that defines the recovery actions to be performed when execution-time errors occur.

EXCEPTION HANDLER

42
New cards

The _______ is an optional exception-handling clause that traps any exceptions that have not been explicitly handled.

OTHERS

43
New cards

TYPE and ________ are composite structures.

RECORDS

44
New cards

The term ________ in exceptions is the same as handling any error by including corresponding exception handler.

TRAP

45
New cards

Error in PL/SQL is known as ____________.

EXCEPTION

46
New cards

The ________ clause is used in user-defined exception to tell the compiler to associate an exception name with a specific Oracle error

Group of answer choices

RAISE_APPLICATION_ERROR

PRAGMA EXCEPTION_INIT

Not in the options

SQLCODE, SQLERRM

PRAGMA EXCEPTION_INIT

47
New cards

Each exception handler is consists of a _____ clause, which specifies an exception name.

WHEN

48
New cards

You must include the FOR UPDATE clause in the cursor query so that the rows are locked on _____.

OPEN

49
New cards

The RAISE statement can be used to raise either user-defined or ________ exception.

Group of answer choices

NON-PREDEFINED

PREDEFINED

PREDEFINED

50
New cards

You can use the ________________ procedure to return user-defined error messages from stored subprograms.

Group of answer choices

PRAGMA EXCEPTION_INIT

SQLCODE

RAISE_APPLICATION_ERROR

SQLERRM

RAISE_APPLICATION_ERROR

51
New cards

Start with the _____ keyword to define a user-defined record structure.

TYPE

52
New cards

In explicit cursor operations, the set of rows returned by a multiple-row query is called ________.

Group of answer choices

Active set

Record set

Active Cursor

Cursor

Active set

53
New cards

What are/is the type of exception can be raised using the RAISE statement?

Group of answer choices

Pre-defined, User-defined

User-defined

NON-PREDEFINED

Non-predefined, User-defined

Pre-defined, Non-predefined

Pre-defined, User-defined

54
New cards

The ___________ and ___________ are the two types of Oracle Server Errors.

Group of answer choices

Predefined, Non-predefined

Implicit, Explicit

Predefined, Non-predefined

55
New cards

In non-predefined exception, you must reference the ________ within a WHEN clause in the exception-handling section.

Group of answer choices

Oracle associated error#

Declared exception name

Exception name

All the options are possible

Declared exception name

56
New cards

Each exception handler is consists of a _____ clause, which specifies an exception name.

Group of answer choices

WHEN

IF

Not in the options

CONDITION

WHEN

57
New cards

In exception section, the WHEN clause if followed by _______.

EXCEPTION NAME

58
New cards

You must include the ________ clause in the cursor query so that the rows are locked on OPEN.

FOR UPDATE

59
New cards

If you omit the ______ keyword, then the Oracle server waits indefinitely until the rows are available.

NOWAIT

60
New cards

The ______ returns character data containing the message associated with the error number.

Group of answer choices

SQLCODE

SQLERRM

SQLERRM

61
New cards

Oracle server errors that has name

PREDEFINED

62
New cards

The _______________ is used in non-predefined exception to tell the compiler to associate an exception name with a specific Oracle error

Group of answer choices

PRAGMA EXCEPTION INIT

EXCEPTION INIT

PRAGMA EXCEPTION_INIT

EXCEPTION_INIT

PRAGMA EXCEPTION_INIT

63
New cards

The oracle error number, at the PRAGMA EXCEPTION_INIT function, starts with _____.

Group of answer choices

0

1

UNDERSCORE

HYPEN

HYPEN

64
New cards

What is the first step in handing non-predefined exception?

Group of answer choices

Exception name declaration

Pragma declaration

Exception name declaration

65
New cards

The RAISE_APPLICATION_ERROR can be used in:

Group of answer choices

Executable and Exception section

Executable section

Exception section

Declaration and Exception section

Executable and Exception section

66
New cards

PL/SQL records contain one or more components/fields of any SCALAR or ______ type.

COMPOSITE

67
New cards

Trying to duplicate a primary key value is an example of:

Group of answer choices

Data error

System error

User-action error

Other error

User-action error

68
New cards

The __________ clause is used in conjunction with the FOR UPDATE clause to refer to the most recently fetched row in an explicit cursor.

WHERE CURRENT OF

69
New cards

The declared non-predefined exception is raised ____________.

Group of answer choices

IMPLICITLY

EXPLICITLY

IMPLICITLY

70
New cards

The __________ keyword is used in user-defined exception for error notification.

RAISE

71
New cards

The ___________ contains the exceptions handlers.

EXCEPTION SECTION

72
New cards

Handle named exceptions whenever possible, instead of using ______ in exception handlers.

OTHERS

73
New cards

Always add ________ whenever there is a possibility of an error occurring.

EXCEPTION HANDLER

74
New cards

The following statements are examples of ________________.

Entering an expiration date that has passed

Selecting more than one row into a single variable

Receiving "no rows returned" from a select statement

EXCEPTION

75
New cards

How many number of exception handlers can be included in the exception section?

Group of answer choices

1 OR MORE

3

2

1

1 OR MORE

76
New cards

Two methods for raising an exception: Implicit, ________.

EXPLICIT

77
New cards

The ________ clause is used in non-predefined exception to tell the compiler to associate an exception name with a specific Oracle error

Group of answer choices

PRAGMA EXCEPTION_INIT

RAISE_APPLICATION_ERROR

SQLERRM

SQLCODE

PRAGMA EXCEPTION_INIT

78
New cards

What is the first parameter of the PRAGMA EXCEPTION_INIT function?

Group of answer choices

Oracle error number

EXCEPTION NAME

EXCEPTION NAME

79
New cards

The RAISE statement can be used to raise either ________ or predefined exception.

Group of answer choices

NON-PREDEFINED

USER-DEFINED

USER-DEFINED

80
New cards

The NO_DATA_FOUND is an example of:

Group of answer choices

Predefined exception

Non-predefined exception

Predefined exception

81
New cards

The NO_DATA_FOUND is a _______ exception.

Group of answer choices

PREDEFINED

USER-DEFINED

NON-PREDEFINED

PREDEFINED

82
New cards

In anonymous block, DECLARE states "this is the start of a block". In Procedure, ____________ states "this is the start of a subprogram".

CREATE PROCEDURE

83
New cards

The executable section of the procedure body requires a minimum of _____ statement.

ONE

84
New cards

The _____ are named PL/SQL blocks that are compiled and stored in the database.

SUBPROGRAM

85
New cards

The _______ is added to CREATE PROCEDURE clause to overwrite an existing procedure.

OR REPLACE

86
New cards

Which parameter mode can be assigned a default value?

IN

OUT

IN OUT

Group of answer choices

OUT

IN OUT

IN

IN

87
New cards

The purpose of the OR REPLACE clause is to ______ an existing procedure.

OVERWRITE

88
New cards

A function can be called as a part of:

Group of answer choices

PL/SL expression

Not in the options

SQL statement

SQL statement, PL/SQL expression

SQL statement, PL/SQL expression

89
New cards

In PL/SQL ___________, the function identifier acts like a variable whose value depends on the parameters passed to it.

EXPRESSIONS

90
New cards

In PL/SQL ___________, the function identifier acts like a variable whose value depends on the parameters passed to it.

Group of answer choices

EXPRESSION

PARAMETER

STATEMENT

SELECT

EXPRESSION

91
New cards

The functions used in SQL statements cannot use OUT or _____ modes.

IN OUT

92
New cards

What is the symbol used for association operator?

Group of answer choices

>=

=

=>

>>

=>

93
New cards

Using an _______ parameter mode, you can pass a value into a procedure that can be updated within the procedure.

Group of answer choices

OUT

IN OUT

All the options

IN

IN OUT

94
New cards

Which type of parameter passing uses an association operator?

Group of answer choices

Positional

Combination

Named

IN OUT

Named

95
New cards

Subprograms are named PL/SQL blocks that are compiled and stored in the _______.

DATABASE

96
New cards

A function can be called as a part of:

Group of answer choices

SQL statement

Both options

PL/SL expression

Both options

97
New cards

A function must have a _______ clause in the header and at least one RETURN statement in the executable section.

RETURN

98
New cards

Functions return only a single value, and the value is returned through a ______ statement.

RETURN

99
New cards

The operator => is called _______.

Group of answer choices

Association operator

Reference operator

Referencing operator

Associate operator

Association operator

100
New cards

The type of parameter that is declared in procedure heading is called ________.

Group of answer choices

FORMAL

ACTUAL