Professional Documents
Culture Documents
Test Bank For Database Design Application Development and Administration 3 Edition Mannino
Test Bank For Database Design Application Development and Administration 3 Edition Mannino
1. A database programming language allows a program to combine procedural statements with non-procedural
database access.
True False
2. Due to the growth of online database processing and commercial Web commerce, batch processing is no
longer an important method to process database work.
True False
3. Transitive closure, an important operation for queries involving self-referencing relationships, is supported by
most SQL implementations.
True False
4. Portability across host languages is one advantage of using the statement level interface language style.
True False
5. Because the optimization process can consume considerable computing resources, it is usually desirable to
determine the access plan at run-time using dynamic statement binding.
True False
6. In the SQL:2003 specification, a statement level interface can support both static and dynamic binding, while
a call level interface supports only dynamic binding.
True False
7. For procedures and triggers stored in a database, the database connection is explicit.
True False
8. Triggers provide reuse of common code, while stored procedures provide rule processing for common tasks.
True False
9. A Database Programming Language is a procedural language with an interface to one or more DBMSs. The
interface allows a program to combine procedural statements with nonprocedural database access.
True False
10. A Call-Level Interfaceis a language style for integrating a programming language with a nonprocedural
language such as SQL. A statement-level interface involves changes to the syntax of a host programming
language to accommodate embedded SQL statements.
True False
11. Dynamic binding involves the determination of the access plan at compile time.
True False
12. Procedures and functions are executed by the rule system of the DBMS not by explicit calls as for triggers.
True False
13. Since PL/SQL is a block structured language, all code blocks must have unique names in order to execute in
SQL*Plus.
True False
14. When writing a PL/SQL procedure, it is good practice to include length constraints in the data type
specifications for parameters.
True False
15. To catch a specific error in a stored procedure, you should use a predefined exception or create a
user-defined exception.
True False
16. An important benefit of PL/SQL functions is that they can be used as expressions in SELECT statements.
True False
17. An explicit cursor cannot use parameters for non-constant search values in the associated SELECT
statement.
True False
18. All objects in a package interface are public.
True False
19. To use the objects in a package, you must use the package name before the object name.
True False
20. Because the SQL:1999 trigger specification was defined in response to vendor implementation, most trigger
implementations adhere to the SQL:1999 specification.
True False
21. The body of a trigger is similar to other PL/SQL blocks, except that triggers have more restrictions on the
statements in a block.
True False
22. Like procedures, triggers can be tested directly by executing them in SQL*Plus.
True False
23. Since the number of triggers is a complicating factor in understanding the interaction among triggers, it is
always better to create a few large triggers instead of many smaller triggers.
True False
24. You can encounter mutating table errors in trigger execution, regardless of the DBMS they are executed on.
True False
25. For most triggers, you can avoid mutating table errors by using statement triggers with new and old values.
True False
26. What is the primary motivation for using a database programming language?
A. Customization.
B. Batch processing.
C. Complex operations.
D. All of the above.
27. The two language styles provided by SQL:2003 for integrating a procedural language with SQL are:
A. Statement level interface and function level interface.
B. Procedural level interface and trigger level interface.
C. Statement level interface and call level interface.
D. None of the above.
30. As with other programming languages, in PL/SQL the IF-THEN-ELSE statement construct is:
A. A comparison operator.
B. A conditional statement.
C. A logical operator.
D. None of the above.
31. With regards to conditional decision making in PL/SQL, which statement is true?
A. A condition must evaluate to TRUE or FALSE.
B. Complex conditions are evaluated left to right, and this order cannot be altered.
C. Conditions are evaluated using three-value logic.
D. There is a limit to the number of statements that can be used between the THEN and END-IF keywords.
34. Which of the following is the reason the DBMS, instead of the programming environment, manages stored
procedures?
A. A DBMS can compile the programming language code along with the SQL statements in a stored procedure.
B. Since they are stored on the server, stored procedures allow flexibility for client-server development.
C. Database administrators can manage stored procedures with the same tools for managing other parts of the
database.
D. All of the above.
35. A database connection identifies the database used by an application. A database connection can be
________ or ________.
A. implicit/explicit
B. internal/external
C. implicit/dynamic
D. virtual/dynamic
40. Based on the PL/SQL code block above, if there is not a SSN in the Student table which matches the value
provided:
A. The code will return the name of the Student record that is the closest numeric match.
B. The code will raise an application error.
C. The code will stop executing without any explanation.
D. The code will return NULL.
43. In the use of an explicit cursor, which 3 statements replace the FOR statement of an implicit cursor?
A. OPEN, FIND, and CLOSE.
B. OPEN, FETCH, and CLOSE.
C. OPEN, GET, and CLOSE.
D. CONNECT, FIND, and CLOSE.
45. One of the advantages of using a package over procedures and functions is:
A. A package supports a larger unit of modularity.
B. Packages provide easier reuse of code.
C. Packages reduce software maintenance costs.
D. All of the above.
46. For each object defined in a package interface, the package body must define:
A. A private object.
B. An implementation.
C. A cursor.
D. An exception handler.
53. To support customized code, most database application development tools use a coding style known as
_________________.
________________________________________
54. A(n) _____________ level interface is a language style that involves changes to the syntax of a host
programming language to accommodate embedded SQL statements.
________________________________________
55. Open Database Connectivity (ODBC) and Java Database Connectivity (JDBC) are the most widely used
_____________ level interfaces.
________________________________________
56. The concept of ______________ for a database programming language involves the association of an SQL
statement with its access plan.
________________________________________
57. A(n) ______________ is a construct in a database programming language that allows for storage and
iteration of a set of records returned by a SELECT statement.
________________________________________
59. In PL/SQL, a(n) _____________ statement is comprised of a variable, the assignment symbol, and an
expression.
________________________________________
60. In a PL/SQL IF statement, the keywords AND, OR and NOT are ____________ operators.
________________________________________
61. An unnamed PL/SQL block of code, which is useful for testing procedures and triggers, is known as a(n)
_________ block.
________________________________________
62. The common SQL*Plus command used to list the columns of a table is ___________.
________________________________________
63. The common SQL*Plus command used to display compilation errors is ___________________.
________________________________________
64. In a stored procedure, a(n) _____________ parameter should have a value provided outside the procedure
but it can be changed inside the procedure.
________________________________________
65. Functions should be usable in expressions, i.e. a function call can be replaced by the __________ it returns.
________________________________________
66. In the body of a function, a(n) ______________ statement is used to generate the function's output value.
________________________________________
67. A package ________________ contains the definitions of procedures and functions along with other objects
that can be specified in the DECLARE section of a PL/SQL block.
________________________________________
69. Inside a package implementation, each procedure or function must be terminated by a(n) _____________
statement containing the procedure or function name.
________________________________________
71. Integrity constraints that compare the values before and after an update to a table occurs are called
___________.
________________________________________
72. The _________________ of a trigger involves the keywords BEFORE, AFTER, or INSTEAD OF, along
with a triggering event using the keywords INSERT, UPDATE, or DELETE.
________________________________________
73. If you omit the keywords FOR EACH ROW from a trigger specification, the trigger by default becomes
a(n) _____________ trigger.
________________________________________
74. The ______________________________ specifies the order of execution among the various kinds of
triggers, integrity constraints, and database manipulation statements.
________________________________________
75. Two triggers with the same timing, granularity, and applicable table ______________ if an SQL statement
may cause both triggers to fire.
________________________________________
1. A database programming language allows a program to combine procedural statements with non-procedural
database access.
TRUE
Level: Medium
Mannino - Chapter 11 #1
2. Due to the growth of online database processing and commercial Web commerce, batch processing is no
longer an important method to process database work.
FALSE
Level: Easy
Mannino - Chapter 11 #2
3. Transitive closure, an important operation for queries involving self-referencing relationships, is supported by
most SQL implementations.
FALSE
Level: Medium
Mannino - Chapter 11 #3
4. Portability across host languages is one advantage of using the statement level interface language style.
FALSE
Level: Medium
Mannino - Chapter 11 #4
5. Because the optimization process can consume considerable computing resources, it is usually desirable to
determine the access plan at run-time using dynamic statement binding.
FALSE
Level: Easy
Mannino - Chapter 11 #5
6. In the SQL:2003 specification, a statement level interface can support both static and dynamic binding, while
a call level interface supports only dynamic binding.
TRUE
Level: Hard
Mannino - Chapter 11 #6
7. For procedures and triggers stored in a database, the database connection is explicit.
FALSE
Level: Easy
Mannino - Chapter 11 #7
8. Triggers provide reuse of common code, while stored procedures provide rule processing for common tasks.
FALSE
Stored procedures provide reuse of common code, while triggers provide rule processing for common tasks.
Level: Easy
Mannino - Chapter 11 #8
9. A Database Programming Language is a procedural language with an interface to one or more DBMSs. The
interface allows a program to combine procedural statements with nonprocedural database access.
TRUE
Level: Medium
Mannino - Chapter 11 #9
10. A Call-Level Interfaceis a language style for integrating a programming language with a nonprocedural
language such as SQL. A statement-level interface involves changes to the syntax of a host programming
language to accommodate embedded SQL statements.
FALSE
Level: Medium
Mannino - Chapter 11 #10
11. Dynamic binding involves the determination of the access plan at compile time.
FALSE
Static binding involves the determination of the access plan at compile time.
Level: Hard
Mannino - Chapter 11 #11
12. Procedures and functions are executed by the rule system of the DBMS not by explicit calls as for triggers.
TRUE
Level: Easy
Mannino - Chapter 11 #12
13. Since PL/SQL is a block structured language, all code blocks must have unique names in order to execute in
SQL*Plus.
FALSE
Level: Medium
Mannino - Chapter 11 #13
14. When writing a PL/SQL procedure, it is good practice to include length constraints in the data type
specifications for parameters.
FALSE
You do not provide length in the specification of the data type for a parameter.
Level: Medium
Mannino - Chapter 11 #14
15. To catch a specific error in a stored procedure, you should use a predefined exception or create a
user-defined exception.
TRUE
Level: Medium
Mannino - Chapter 11 #15
16. An important benefit of PL/SQL functions is that they can be used as expressions in SELECT statements.
TRUE
Level: Medium
Mannino - Chapter 11 #16
17. An explicit cursor cannot use parameters for non-constant search values in the associated SELECT
statement.
FALSE
Level: Hard
Mannino - Chapter 11 #17
Level: Medium
Mannino - Chapter 11 #18
19. To use the objects in a package, you must use the package name before the object name.
TRUE
Level: Easy
Mannino - Chapter 11 #19
20. Because the SQL:1999 trigger specification was defined in response to vendor implementation, most trigger
implementations adhere to the SQL:1999 specification.
FALSE
Level: Medium
Mannino - Chapter 11 #20
21. The body of a trigger is similar to other PL/SQL blocks, except that triggers have more restrictions on the
statements in a block.
TRUE
Level: Medium
Mannino - Chapter 11 #21
22. Like procedures, triggers can be tested directly by executing them in SQL*Plus.
FALSE
Level: Easy
Mannino - Chapter 11 #22
23. Since the number of triggers is a complicating factor in understanding the interaction among triggers, it is
always better to create a few large triggers instead of many smaller triggers.
FALSE
Per the author, there is no clear preference between few large triggers or many small triggers.
Level: Medium
Mannino - Chapter 11 #23
24. You can encounter mutating table errors in trigger execution, regardless of the DBMS they are executed on.
FALSE
Level: Easy
Mannino - Chapter 11 #24
25. For most triggers, you can avoid mutating table errors by using statement triggers with new and old values.
FALSE
You can avoid mutating table errors by using row triggers with new and old values.
Level: Hard
Mannino - Chapter 11 #25
26. What is the primary motivation for using a database programming language?
A. Customization.
B. Batch processing.
C. Complex operations.
D. All of the above.
All 3 are the primary motivations for using a database programming language.
Level: Easy
Mannino - Chapter 11 #26
27. The two language styles provided by SQL:2003 for integrating a procedural language with SQL are:
A. Statement level interface and function level interface.
B. Procedural level interface and trigger level interface.
C. Statement level interface and call level interface.
D. None of the above.
Level: Medium
Mannino - Chapter 11 #27
Level: Hard
Mannino - Chapter 11 #28
29. For statement level interfaces, SQL:2003 provides statements to:
A. Declare cursors.
B. Position cursors.
C. Retrieve values from cursors.
D. All of the above.
Level: Easy
Mannino - Chapter 11 #29
30. As with other programming languages, in PL/SQL the IF-THEN-ELSE statement construct is:
A. A comparison operator.
B. A conditional statement.
C. A logical operator.
D. None of the above.
Level: Easy
Mannino - Chapter 11 #30
31. With regards to conditional decision making in PL/SQL, which statement is true?
A. A condition must evaluate to TRUE or FALSE.
B. Complex conditions are evaluated left to right, and this order cannot be altered.
C. Conditions are evaluated using three-value logic.
D. There is a limit to the number of statements that can be used between the THEN and END-IF keywords.
Level: Hard
Mannino - Chapter 11 #31
Level: Medium
Mannino - Chapter 11 #32
33. A PL/SQL block contains:
A. A required declaration section, a required executable section, and an optional exception section.
B. An optional declaration section, a required executable section, and an optional exception section.
C. A required declaration section, a required executable section, and a required exception section.
D. An optional declaration section, a required executable section, and a required exception section.
Level: Medium
Mannino - Chapter 11 #33
34. Which of the following is the reason the DBMS, instead of the programming environment, manages stored
procedures?
A. A DBMS can compile the programming language code along with the SQL statements in a stored procedure.
B. Since they are stored on the server, stored procedures allow flexibility for client-server development.
C. Database administrators can manage stored procedures with the same tools for managing other parts of the
database.
D. All of the above.
Level: Medium
Mannino - Chapter 11 #34
35. A database connection identifies the database used by an application. A database connection can be
________ or ________.
A. implicit/explicit
B. internal/external
C. implicit/dynamic
D. virtual/dynamic
Level: Easy
Mannino - Chapter 11 #35
Level: Hard
Mannino - Chapter 11 #36
37. In PL/SQL, functions should:
A. Always use input parameters.
B. Contain a parameter list.
C. Generate an output value using a RETURN statement.
D. All of the above.
Level: Hard
Mannino - Chapter 11 #37
Mannino - Chapter 11
Level: Easy
Mannino - Chapter 11 #38
39. In the PL/SQL code block above, aStdSSN is:
A. A return variable.
B. An input parameter.
C. A column in the Student table.
D. None of the above.
Level: Easy
Mannino - Chapter 11 #39
40. Based on the PL/SQL code block above, if there is not a SSN in the Student table which matches the value
provided:
A. The code will return the name of the Student record that is the closest numeric match.
B. The code will raise an application error.
C. The code will stop executing without any explanation.
D. The code will return NULL.
Level: Easy
Mannino - Chapter 11 #40
Level: Medium
Mannino - Chapter 11 #41
42. The PL/SQL statement "FOR StudentRec IN SELECT StudentID FROM StudentTable" is an example of:
A. An implicit cursor.
B. An explicit cursor.
C. A dynamic cursor.
D. This statement does not define a cursor.
Level: Medium
Mannino - Chapter 11 #42
43. In the use of an explicit cursor, which 3 statements replace the FOR statement of an implicit cursor?
A. OPEN, FIND, and CLOSE.
B. OPEN, FETCH, and CLOSE.
C. OPEN, GET, and CLOSE.
D. CONNECT, FIND, and CLOSE.
Level: Medium
Mannino - Chapter 11 #43
Level: Hard
Mannino - Chapter 11 #44
45. One of the advantages of using a package over procedures and functions is:
A. A package supports a larger unit of modularity.
B. Packages provide easier reuse of code.
C. Packages reduce software maintenance costs.
D. All of the above.
Level: Medium
Mannino - Chapter 11 #45
46. For each object defined in a package interface, the package body must define:
A. A private object.
B. An implementation.
C. A cursor.
D. An exception handler.
Level: Medium
Mannino - Chapter 11 #46
47. Which of the following is not a typical use for triggers:
A. Complex integrity constraints.
B. Update propagation.
C. Exception reporting.
D. All of the above are typical uses for triggers.
Level: Medium
Mannino - Chapter 11 #47
48. To control complexity among a collection of triggers, which guideline(s) should be followed?
A. Use data manipulation statements primarily in BEFORE triggers.
B. For triggers that fire on UPDATE statements, do not list the columns to which the trigger applies.
C. Be cautious about creating triggers on tables affected by actions on referenced rows.
D. All of the above.
Level: Hard
Mannino - Chapter 11 #48
Level: Hard
Mannino - Chapter 11 #49
Level: Medium
Mannino - Chapter 11 #50
51. Mutating table errors:
A. Can occur when one table is cloned from another.
B. Can occur in trigger actions with SQL statements on the target table or related tables affected by DELETE
CASCADE actions.
C. Never occur in Oracle databases.
D. None of the above.
Level: Medium
Mannino - Chapter 11 #51
Level: Easy
Mannino - Chapter 11 #52
53. To support customized code, most database application development tools use a coding style known as
_________________.
event driven coding
Level: Medium
Mannino - Chapter 11 #53
54. A(n) _____________ level interface is a language style that involves changes to the syntax of a host
programming language to accommodate embedded SQL statements.
statement
Level: Easy
Mannino - Chapter 11 #54
55. Open Database Connectivity (ODBC) and Java Database Connectivity (JDBC) are the most widely used
_____________ level interfaces.
call
Level: Medium
Mannino - Chapter 11 #55
56. The concept of ______________ for a database programming language involves the association of an SQL
statement with its access plan.
binding
Level: Medium
Mannino - Chapter 11 #56
57. A(n) ______________ is a construct in a database programming language that allows for storage and
iteration of a set of records returned by a SELECT statement.
cursor
Level: Medium
Mannino - Chapter 11 #57
Level: Easy
Mannino - Chapter 11 #58
59. In PL/SQL, a(n) _____________ statement is comprised of a variable, the assignment symbol, and an
expression.
assignment
Level: Medium
Mannino - Chapter 11 #59
60. In a PL/SQL IF statement, the keywords AND, OR and NOT are ____________ operators.
logical or Boolean
Level: Medium
Mannino - Chapter 11 #60
61. An unnamed PL/SQL block of code, which is useful for testing procedures and triggers, is known as a(n)
_________ block.
anonymous
Level: Easy
Mannino - Chapter 11 #61
62. The common SQL*Plus command used to list the columns of a table is ___________.
DESCRIBE
Level: Medium
Mannino - Chapter 11 #62
63. The common SQL*Plus command used to display compilation errors is ___________________.
SHOW ERRORS
Level: Medium
Mannino - Chapter 11 #63
64. In a stored procedure, a(n) _____________ parameter should have a value provided outside the procedure
but it can be changed inside the procedure.
input-output
Level: Easy
Mannino - Chapter 11 #64
65. Functions should be usable in expressions, i.e. a function call can be replaced by the __________ it returns.
value
Level: Easy
Mannino - Chapter 11 #65
66. In the body of a function, a(n) ______________ statement is used to generate the function's output value.
RETURN
Level: Medium
Mannino - Chapter 11 #66
67. A package ________________ contains the definitions of procedures and functions along with other objects
that can be specified in the DECLARE section of a PL/SQL block.
interface
Level: Medium
Mannino - Chapter 11 #67
68. A package ________________ contains the private details of a package.
implementation or body
Level: Medium
Mannino - Chapter 11 #68
69. Inside a package implementation, each procedure or function must be terminated by a(n) _____________
statement containing the procedure or function name.
END
Level: Medium
Mannino - Chapter 11 #69
Level: Medium
Mannino - Chapter 11 #70
71. Integrity constraints that compare the values before and after an update to a table occurs are called
___________.
transition constraints
Level: Medium
Mannino - Chapter 11 #71
72. The _________________ of a trigger involves the keywords BEFORE, AFTER, or INSTEAD OF, along
with a triggering event using the keywords INSERT, UPDATE, or DELETE.
timing specification
Level: Hard
Mannino - Chapter 11 #72
73. If you omit the keywords FOR EACH ROW from a trigger specification, the trigger by default becomes
a(n) _____________ trigger.
statement
Level: Medium
Mannino - Chapter 11 #73
74. The ______________________________ specifies the order of execution among the various kinds of
triggers, integrity constraints, and database manipulation statements.
trigger execution procedure
Level: Medium
Mannino - Chapter 11 #74
75. Two triggers with the same timing, granularity, and applicable table ______________ if an SQL statement
may cause both triggers to fire.
overlap
Level: Easy
Mannino - Chapter 11 #75
Level: Hard
Mannino - Chapter 11 #76
Test Bank for Database Design Application Development And Administration, 3 Edition : Mannin
Category # of Questions
Level: Easy 22
Level: Hard 13
Level: Medium 41
Mannino - Chapter 11 77