
Course Introduction
![]()

Course Introduction
Database Programming introduces students to the principles and practices of developing applications that interact with relational databases. The course covers essential topics such as Structured Query Language (SQL), data modeling, normalization, and the integration of databases with programming languages like Python, Java, or C#. Students will learn how to design, implement, and optimize database queries, perform transactions, and manage data integrity and security. Through hands-on projects and assignments, students gain practical experience in building dynamic, data-driven applications that meet industry standards.
Recommended Textbook
Oracle 11G PL SQL Programming 2nd Edition by Joan Casteel
Available Study Resources on Quizplus
10 Chapters
645 Verified Questions
645 Flashcards
Source URL: https://quizplus.com/study-set/1149

Page 2

Available Study Resources on Quizplus for this Chatper
54 Verified Questions
54 Flashcards
Source URL: https://quizplus.com/quiz/22517
Sample Questions
Q1) Which of the following is an example of an event?
A) User interface
B) Application logic
C) Clicking a button on the screen
D) Server-side processing
Answer: C
Q2) <u>PL/SQL's</u> role is to provide the logic to instruct the computer as to what to do when an event occurs. _________________________
A)True
B)False Answer: True
Q3) An event can range from a user action, such as clicking the button on the screen, to a table update statement that automatically calls a database trigger.
A)True
B)False
Answer: True
Q4) A program that can run on any platform is considered ____________________. Answer: portable
To view all questions and flashcards with answers, click on the resource link above. Page 3

Available Study Resources on Quizplus for this Chatper
81 Verified Questions
81 Flashcards
Source URL: https://quizplus.com/quiz/22518
Sample Questions
Q1) Which of the following does not use a selector, but individually evaluates conditions that are placed in WHEN clauses?
A) Control statements
B) Searched CASE
C) Loops
D) CASE expression
Answer: B
Q2) The following loop iterates four times. BEGIN
WHILE lv_cnt_num <= 5 LOOP
DBMS_OUTPUT.PUT_LINE( lv_cnt_num );
lv_cnt_num := lv_cnt_num + 1; END LOOP; END;
A)True
B)False
Answer: False
Q3) ____________________ are used for situations in which we need to repeat a line or lines of code within our block.
Answer: Loops
To view all questions and flashcards with answers, click on the resource link above. Page 4

Available Study Resources on Quizplus for this Chatper
51 Verified Questions
51 Flashcards
Source URL: https://quizplus.com/quiz/22519
Sample Questions
Q1) One major advantage of using collections as part of the physical database is being able to retrieve multiple values with a query of a single column.
A)True
B)False
Answer: True
Q2) PL/SQL blocks use assignment <u>variables</u> to assign values to variables.
A)True
B)False
Answer: False
Q3) Which of the following statements about collections is NOT True?
A) Collections are similar to arrays.
B) An index allows references to individual values or rows within a collection.
C) A collection may hold many rows of data and many fields.
D) The values in each row of the collection must be of the same type.
Answer: C
Q4) A(n) ____________________ statement could be used to create a record data type.
Answer: TRYPE
To view all questions and flashcards with answers, click on the resource link above. Page 5

Available Study Resources on Quizplus for this Chatper
65 Verified Questions
65 Flashcards
Source URL: https://quizplus.com/quiz/22520
Sample Questions
Q1) ____ refers to a SELECT statement in a PL/SQL block that retrieves no rows.
A) TOO_MANY_ROWS
B) NO_DATA_FOUND
C) ZERO_DIVIDE
D) DUP_VAL_ON_INDEX
Q2) Because Oracle does not raise an error if a(n) ____________________ does not affect any rows, you must include specific instructions in the block.
Q3) ____ returns the Oracle error message.
A) EXIT WHEN
B) SQLCODE
C) SQLERR
D) SQLERRM
Q4) What is the difference between a predefined exception and a user-defined exception?
Q5) Because Oracle does not raise an error if a(n) <u>UPDATE </u>does not affect any rows, you must include specific instructions in the block to raise an error if no rows are updated. _________________________
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above. Page 6

Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/22521
Sample Questions
Q1) The values from an application that pass into parameters are called <u>formal parameters</u>. _________________________
A)True B)False
Q2) 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
Q3) The special syntax of =>> is used to accomplish named association. A)True B)False
Q4) A program unit that is defined within another program unit is called a subprogram. A)True B)False
To view all questions and flashcards with answers, click on the resource link above. Page 7

Available Study Resources on Quizplus for this Chatper
51 Verified Questions
51 Flashcards
Source URL: https://quizplus.com/quiz/22522
Sample Questions
Q1) The RETURN statement can return constant values, such as a text string.
A)True
B)False
Q2) In the code below, which of the following is the parameter variable?
CREATE OR REPLACE FUNCTION fct_test1_sf (p_num IN NUMBER)
RETURN NUMBER IS BEGIN
UPDATE bb_test1
SET col1 = p_num; RETURN p_num; END;
A) bb_test1
B) col1
C) p_num
D) fct_test1_sf
Q3) What are formal and actual parameters?
Q4) Deleting a program unit can be accomplished by issuing a(n) ____________________ command.
Q5) A(n) ____________________ cannot serve as an entire statement.
To view all questions and flashcards with answers, click on the resource link above. Page 8

Available Study Resources on Quizplus for this Chatper
68 Verified Questions
68 Flashcards
Source URL: https://quizplus.com/quiz/22523
Sample Questions
Q1) When a user assumes the rights of the program unit owner just during the processing of that program unit, this is referred to as ____.
A) user-rights
B) user scope
C) definer-rights
D) definer-scope
Q2) CREATE OR REPLACE PACKAGE metric_pkg IS cup_to_liter CONSTANT NUMBER := .24; Pint_to_liter CONSTANT NUMBER := .47; Qrt_to_liter CONSTANT NUMBER := .95;
END;
Which of the following statements about the code fragment above is correct?
A) The CONSTANT option allows the values of the variables to be modified.
B) There is no need to create a body for this package.
C) Program units are included in the package.
D) The package body must be created.
Q3) Package elements are considered <u>public</u> if they can be called only from other program units within the same package. _________________________
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
Page 9

Available Study Resources on Quizplus for this Chatper
61 Verified Questions
61 Flashcards
Source URL: https://quizplus.com/quiz/22524
Sample Questions
Q1) ____ allows a user to modify program units in any schema.
A) CREATE PROCEDURE
B) CREATE ANY PROCEDURE
C) DROP ANY PROCEDURE
D) ALTER ANY PROCEDURE
Q2) When you have successfully saved or compiled a procedure, the status is marked as <u>VALID</u>. _________________________
A)True
B)False
Q3) Compiler ____________________________ are settings that affect code optimization and availability of warning messages.
Q4) The dependency tree utility allows the user to review direct and indirect dependencies of an object in either numeric order or indented format.
A)True
B)False
Q5) Only modifications to the package specification or the program unit header section can raise the ____________________________ status of dependent objects.
Q6) What is the difference between the timestamp model and the signature model?
To view all questions and flashcards with answers, click on the resource link above. Page 10

Available Study Resources on Quizplus for this Chatper
54 Verified Questions
54 Flashcards
Source URL: https://quizplus.com/quiz/22525
Sample Questions
Q1) Which of the following statements is correct?
A) If multiple triggers exist on a table, the order in which the triggers will be fired can be set.
B) A BEFORE statement level trigger will fire before a BEFORE row level trigger.
C) If you have two statement level triggers, the order in which they are fired is dependent on the order in which they were written.
D) Only one trigger can be constructed per table.
Q2) A(n) ____ trigger fires whenever the event occurs, regardless of the schema in which it occurs.
A) row level
B) system level
C) Instead-Of
D) database level
Q3) The statement ____ can be used to disable or enable a specific trigger.
A) ANALYZE TRIGGER trigger_name DISABLE|ENABLE;
B) ALTER TRIGGER trigger_name DISABLE|ENABLE;
C) AUDIT TRIGGER trigger_name DISABLE|ENABLE;
D) GRANT TRIGGER trigger_name DISABLE|ENABLE;
Q4) What is the difference between a mutating table and a key-preserved table?
To view all questions and flashcards with answers, click on the resource link above. Page 11

Available Study Resources on Quizplus for this Chatper
85 Verified Questions
85 Flashcards
Source URL: https://quizplus.com/quiz/22526
Sample Questions
Q1) The _________________________ package was introduced with Oracle version 7 to allow more dynamic SQL code within PL/SQL coding.
Q2) DBMS_DDL.ALTER_COMPILE ( Type VARCHAR2, Schema VARCHAR2, Name VARCHAR2);
In the header for the ALTER_COMPILE procedure above, the ____ statement refers to the object's owner.
A) type
B) schema
C) name
D) ALTER
Q3) The goal of SQL is to empower users with little or no query skills to be able to perform a variety of data queries.
A)True
B)False
Q4) Two methods can be used to implement _________________________: EXECUTE IMMEDIATE and OPEN FOR.
Q5) What is the goal of dynamic SQL?
To view all questions and flashcards with answers, click on the resource link above. Page 12