Deck 5: Procedures
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/75
العب
ملء الشاشة (f)
Deck 5: Procedures
1
The values from the application that pass into parameters are called actual parameters; the parameters in the procedure declaration are called formal parameters.
True
2
A(n) database trigger performs tasks automatically when a particular application event occurs such as when a user clicks a button on the screen. _________________________
False, application trigger
3
A PL/SQL block that is created and named is known as a(n) named program unit. _________________________
True
4
An application trigger performs a task automatically when a DML action occurs on the table with which it is associated.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
5
Exception handling refers to the logical group of DML actions that is affected by a transaction control statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
6
A PL/SQL block created and named is a named program unit or subprogram.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
7
A(n) application trigger performs tasks automatically when a DML action occurs on the table with which it is associated. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
8
The special syntax of =>> is used to accomplish named association.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
9
The reuse of code is an important contributor to programming efficiency.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
10
Exception handling is the process of identifying and removing errors from within program code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
11
Three choices exist for parameter mode: INTO, OUT OF, and IN OUT.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
12
Only the program unit in which a subprogram is declared can use that subprogram.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
13
A program unit that is defined within another program unit is called a subprogram.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
14
A(n) procedure is used to accomplish one or more tasks, return none or many values, and can be used only in PL/SQL statements. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
15
Stored procedures and functions are saved in an Oracle11g application or library on the client-side. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
16
The term server-side refers to code that resides on the client machine.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
17
Stored procedures are saved in an Oracle11g application or library on the client-side.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
18
The term program unit implies that we typically create blocks of code to perform specific tasks that may be needed within a number of applications. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
19
Program units are made flexible by using parameters, which are mechanisms to send values into and out of the program unit. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
20
The term pragma refers to additional instructions for the PL/SQL compiler to use during program unit compilation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
21
The term ____ refers to program code that resides on the user machine.
A) client-side
B) client/server
C) two-tier
D) server-side
A) client-side
B) client/server
C) two-tier
D) server-side
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
22
____ are saved in an Oracle11g application or library on the client-side.
A) Stored procedure and functions
B) Functions
C) Packages
D) Application procedures
A) Stored procedure and functions
B) Functions
C) Packages
D) Application procedures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
23
A(n) ____ performs tasks automatically when a DML action occurs on the table with which it is associated.
A) package
B) stored procedure
C) application trigger
D) database trigger
A) package
B) stored procedure
C) application trigger
D) database trigger
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
24
A(n) ____ contains a RETURN clause and is used to manipulate data and return a single resulting value.
A) procedure
B) application
C) function
D) database trigger
A) procedure
B) application
C) function
D) database trigger
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
25
The parameters in the procedure declaration of an application are called actual parameters. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
26
The term autonomous transaction refers to additional instructions for the PL/SQL compiler to use during program unit compilation. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
27
The special syntax of := is used to accomplish named association. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
28
____ can accept and return none, one, or many parameters.
A) Triggers
B) Procedures
C) Packages
D) Programs
A) Triggers
B) Procedures
C) Packages
D) Programs
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
29
One important item that needs to be considered when creating stored procedures is to make them flexible so that they can be ____.
A) executed
B) reused
C) packaged
D) triggered
A) executed
B) reused
C) packaged
D) triggered
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
30
____ is an example of a function.
A) ROUND
B) IN
C) OUT
D) IN OUT
A) ROUND
B) IN
C) OUT
D) IN OUT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
31
Debugging is the process of identifying and removing errors from within program code. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
32
____ no longer exist after being executed.
A) Program units
B) Exception handlers
C) Anonymous blocks
D) Parameters
A) Program units
B) Exception handlers
C) Anonymous blocks
D) Parameters
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
33
The EXIT command can be used to remove procedures. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
34
When invoking a procedure list, the values are listed in the order in which the parameters are declared in the procedure. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
35
A(n) ____ performs tasks automatically when a particular application event occurs, such as when the user clicks a button on the screen.
A) package
B) application trigger
C) stored procedure
D) database trigger
A) package
B) application trigger
C) stored procedure
D) database trigger
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
36
____ are stored on the server.
A) Stored procedures
B) Application procedures
C) Packages
D) Database triggers
A) Stored procedures
B) Application procedures
C) Packages
D) Database triggers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
37
In a(n) positional method, you associate a value to each parameter by name in the invoke statement. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
38
The values from an application that pass into parameters are called formal parameters. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
39
____ a program unit or PL/SQL block of code allows the storage and reuse of the code.
A) Naming
B) Processing
C) Creating
D) Debugging
A) Naming
B) Processing
C) Creating
D) Debugging
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
40
____ are mechanisms used to send values into and out of a program unit.
A) Parameters
B) Procedures
C) Database triggers
D) Packages
A) Parameters
B) Procedures
C) Database triggers
D) Packages
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
41
When creating a procedure, each parameter is listed, along with a mode and ____.
A) function
B) package
C) variable
D) data type
A) function
B) package
C) variable
D) data type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
42
____ is a compiler directive.
A) Autonomous
B) Pragma
C) Subprogram
D) EXCEPTION
A) Autonomous
B) Pragma
C) Subprogram
D) EXCEPTION
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
43
In the following code fragment, the IS keyword indicates that the ____. CREATE OR REPLACE PROCEDURE total_calc_sp
(p_basket IN bb_basket.idbasket%TYPE,
P_total OUT bb_basket.total%TYPE := 0 )
IS
A) executable section follows
B) exception handlers follow
C) PL/SQL block follows
D) function follows
(p_basket IN bb_basket.idbasket%TYPE,
P_total OUT bb_basket.total%TYPE := 0 )
IS
A) executable section follows
B) exception handlers follow
C) PL/SQL block follows
D) function follows
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
44
Which of the following statements is True?
A) If an exception is raised in procedure B that has been called from procedure A, the control initially moves to the exception handler section of procedure B.
B) If an exception is raised in procedure B that has been called from procedure A, the control initially moves to the BEGIN section of procedure B.
C) If an exception is raised in procedure B that has been called from procedure A, the control initially moves to the exception handler section of procedure A.
D) If an exception is raised in procedure B that has been called from procedure A, the control initially moves to the header section of procedure B.
A) If an exception is raised in procedure B that has been called from procedure A, the control initially moves to the exception handler section of procedure B.
B) If an exception is raised in procedure B that has been called from procedure A, the control initially moves to the BEGIN section of procedure B.
C) If an exception is raised in procedure B that has been called from procedure A, the control initially moves to the exception handler section of procedure A.
D) If an exception is raised in procedure B that has been called from procedure A, the control initially moves to the header section of procedure B.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
45
The ____ command can be used to list details about the structure of a procedure, such as information regarding the parameters.
A) UPDATE
B) DESCRIBE
C) TYPE
D) %TYPE
A) UPDATE
B) DESCRIBE
C) TYPE
D) %TYPE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
46
If values are calculated or retrieved from the database within the procedure, ____ parameters are used to return these values to the calling environment.
A) IN
B) OUT
C) IN OUT
D) INOUT
A) IN
B) OUT
C) IN OUT
D) INOUT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
47
____are transactions created within another transaction.
A) Pragma transactions
B) Dynamic transactions
C) Autonomous transactions
D) Subprograms
A) Pragma transactions
B) Dynamic transactions
C) Autonomous transactions
D) Subprograms
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
48
The ____ mode type is considered constant because it cannot be changed within the procedure.
A) IN
B) OUT
C) INOUT
D) IN OUT
A) IN
B) OUT
C) INOUT
D) IN OUT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
49
____ is an acceptable error number for the RAISE_APPLICATION_ERROR function.
A) -18,000
B) -19,000
C) -20,002
D) -21,000
A) -18,000
B) -19,000
C) -20,002
D) -21,000
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
50
The ____ area of a block determines what happens if an error occurs.
A) transaction scope
B) mode
C) data type
D) exception handling
A) transaction scope
B) mode
C) data type
D) exception handling
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
51
The variable name ____ conforms to Oracle11g naming standards.
A) $quantity
B) ship_date
C) :p_ship
D) _ship_date
A) $quantity
B) ship_date
C) :p_ship
D) _ship_date
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
52
The DBMS_OUTPUT statement is used to ____.
A) create error messages
B) create exceptions
C) display exceptions to the screen
D) display a message to the screen
A) create error messages
B) create exceptions
C) display exceptions to the screen
D) display a message to the screen
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
53
The error message argument of the RAISE_APPLICATION_ERROR function can accept up to ____ characters.
A) 300
B) 450
C) 512
D) 600
A) 300
B) 450
C) 512
D) 600
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
54
A(n) ____ must be assigned one of three available modes: IN, OUT, IN OUT.
A) function
B) parameter
C) package
D) procedure
A) function
B) parameter
C) package
D) procedure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
55
The RAISE_APPLICATION_ERROR built-in function is provided by Oracle to ____.
A) create error messages
B) display error messages
C) track error messages
D) display functions
A) create error messages
B) display error messages
C) track error messages
D) display functions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
56
The DBMS_OUTPUT.PUT_LINE statement can be used to ____.
A) assist with the creation of a cursor
B) assist with the creation of an exception
C) assist with creating functions
D) assist with debugging your code
A) assist with the creation of a cursor
B) assist with the creation of an exception
C) assist with creating functions
D) assist with debugging your code
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
57
A parameter with a(n) ____ only mode can receive a value, but this value cannot be changed in the procedure.
A) IN OUT
B) IN
C) OUT
D) INOUT
A) IN OUT
B) IN
C) OUT
D) INOUT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
58
If a table column data type is modified, no changes to associated variables are required because the ____ attribute always uses the column's current data type.
A) TYPE
B) :=
C) =>
D) %TYPE
A) TYPE
B) :=
C) =>
D) %TYPE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
59
The RAISE_APPLICATION_ERROR function accepts the ____ arguments.
A) Error ID
B) Error name
C) Error length
D) Error message
A) Error ID
B) Error name
C) Error length
D) Error message
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
60
The following code is considered to be a ____. CREATE OR REPLACE PROCEDURE total_calc_sp
(p_basket IN bb_basket.idbasket%TYPE,
P_total OUT bb_basket.total%TYPE := 0 )
IS
A) function header section
B) PL/SQL block
C) procedure header section
D) DECLARE section
(p_basket IN bb_basket.idbasket%TYPE,
P_total OUT bb_basket.total%TYPE := 0 )
IS
A) function header section
B) PL/SQL block
C) procedure header section
D) DECLARE section
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
61
What information must be provided in the header section of a PL/SQL block for each parameter? Provide an explanation for each.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
62
In a(n) ____________________, you associate a value to each parameter by name in the invoke statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
63
____________________ indicate which way the value provided for the parameter flows: into the procedure, out of the procedure, or both.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
64
With a(n) ____________________ only parameter, the parameter is empty when the procedure is invoked and a value is assigned to the parameter during the execution of the procedure and returned upon completion.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
65
A subprogram is created in the ____________________ section of the procedure block.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
66
The ____________________ area of a block determines what happens if an error occurs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
67
Three pieces of information for each parameter must be provided in the header: name, mode, and ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
68
What is the difference between a database trigger and an application trigger?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
69
If no mode is indicated in a parameter, the default value of ____________________ is applied.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
70
____________________ refers to the logical group of DML actions that is affected by a transaction control statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
71
A(n) ____________________ contains a RETURN clause and is used to manipulate data and return a single resulting value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
72
What is the difference between a function and a procedure?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
73
The ____ command can be used to remove procedures.
A) DEL
B) DROP
C) DELETE
D) REMOVE
A) DEL
B) DROP
C) DELETE
D) REMOVE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
74
The ____________________ combined mode can achieve the passing of a value both into and out of a procedure with a single parameter.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
75
____________________ is the process of identifying and removing errors from within program code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck