Skip to main content

Database Systems Chapter Exam Questions - 1685 Verified Questions

Page 1


Database Systems

Chapter Exam Questions

Course Introduction

This course provides a comprehensive introduction to the principles and practices of database systems. Students will explore data models, particularly the relational model, and gain hands-on experience with designing, implementing, and querying databases using SQL. Key topics include database architecture, normalization, indexing, transaction management, security, and concurrency control. Additionally, the course examines advanced concepts such as NoSQL databases, distributed databases, and emerging trends in data management, preparing students to develop, administer, and optimize modern database systems in real-world applications.

Recommended Textbook

Oracle 11G SQL 2nd Edition by Joan Casteel

Available Study Resources on Quizplus

13 Chapters

1685 Verified Questions

1685 Flashcards

Source URL: https://quizplus.com/study-set/1085

Page 2

Chapter 1: Overview of Database Concepts

Available Study Resources on Quizplus for this Chatper

108 Verified Questions

108 Flashcards

Source URL: https://quizplus.com/quiz/21418

Sample Questions

Q1) A character is a basic unit of data and can consist of a number, letter, or special symbol.

A)True

B)False

Answer: True

Q2) A field in the logical design of a database corresponds to a row in the physical table of a relational database.

A)True

B)False

Answer: False

Q3) Partial dependency means that at least one of the data values is dependent on only a portion of the primary key.

A)True

B)False

Answer: True

Q4) A(n) ____________________ is a storage structure that contains data.

Answer: database

Q5) A(n) ____________________ is referred to as a row in the physical database. Answer: record

To view all questions and flashcards with answers, click on the resource link above. Page 3

Chapter 2: Basic Sql Select Statements

Available Study Resources on Quizplus for this Chatper

122 Verified Questions

122 Flashcards

Source URL: https://quizplus.com/quiz/21419

Sample Questions

Q1) The ____________________ keyword can be included in a SELECT statement to suppress the display of duplicate data.

Answer: UNIQUE DISTINCT

Q2) When solving arithmetic expressions, Oracle11g always resolves addition and subtraction operations \(\underline {\text { first } }\) from left to right in the expression.

A)True

B)False

Answer: False

Q3) If a column alias contains a blank space, it must be enclosed in ____.

A) single quotation marks (' ')

B) double quotation marks (" ")

C) asterisks (* *)

D) percent signs (% %)

Answer: B

Q4) If a column heading is longer than the assigned width of a(n) ____________________ field, the column heading will be truncated.

Answer: character

To view all questions and flashcards with answers, click on the resource link above. Page 4

Chapter 3: Table Creation and Management

Available Study Resources on Quizplus for this Chatper

132 Verified Questions

132 Flashcards

Source URL: https://quizplus.com/quiz/21420

Sample Questions

Q1) A CHAR column cannot be resized to a width that is smaller than the data it already contains.

A)True

B)False

Answer: True

Q2) The maximum width of a(n) \(\underline { \mathrm{CHAR} }\) column is 4000 characters. _________________________

A)True

B)False

Answer: False

Q3) Which of the following keywords uses a subquery to create a new table using existing database tables?

A) ALTER TABLE

B) GENERATE TABLE

C) CREATE TABLE...AS

D) CREATE TABLE...FROM

Answer: C

Q4) A database ____________________ is a defined, self-contained structure in Oracle11g.

Answer: object

To view all questions and flashcards with answers, click on the resource link above. Page 5

Chapter 4: Constraints

Available Study Resources on Quizplus for this Chatper

132 Verified Questions

132 Flashcards

Source URL: https://quizplus.com/quiz/21421

Sample Questions

Q1) Which view will display the names of all the constraints that you own?

A) DISPLAY_CONSTRAINTS

B) ALL_CONSTRAINTS

C) USER_CONSTRAINTS

D) TABLE_CONSTRAINTS

Q2) Any type of constraint can be created at the ____________________ level, unless the constraint is being defined for more than one column.

Q3) A referential integrity constraint is usually placed on the ____________________ side of a one-to-many relationship.

Q4) A constraint for a composite primary key must be created at the table level. A)True

B)False

Q5) A constraint name can consist of up to \(\underline { 25 }\) characters and numbers. _________________________

A)True

B)False

Q6) A foreign key constraint can only be created at the column level. A)True

B)False

6

To view all questions and flashcards with answers, click on the resource link above.

Chapter 5: Data Manipulation and Transaction Control

Available Study Resources on Quizplus for this Chatper

132 Verified Questions

132 Flashcards

Source URL: https://quizplus.com/quiz/21422

Sample Questions

Q1) Which of the following commands allows a user to "undo" uncommitted changes to data?

A) UNDO

B) ROLLBACK

C) UNCOMMIT

D) UNLOCK

Q2) The SYSDATE keyword cannot be included in the INSERT command, only the UPDATE command.

A)True

B)False

Q3) The ____________________ command is used to add new rows to a table.

Q4) If a table already exists, what command would you issue to add copies of existing rows from one table to the other?

A) INSERT command with an UPDATE clause

B) INSERT command with a SET clause

C) INSERT command with a subquery

D) none of the above

Q5) The ____________________ command is used to remove rows from a table.

Q6) Rows can be deleted from a table using the ____________________ command.

7

Q7) Explain the difference between an implicit and an explicit COMMIT.

To view all questions and flashcards with answers, click on the resource link above.

Chapter 6: Additional Database Objects

Available Study Resources on Quizplus for this Chatper

132 Verified Questions

132 Flashcards

Source URL: https://quizplus.com/quiz/21423

Sample Questions

Q1) A synonym is an alternate name assigned to database \(\underline { \text { instances } }\).

A)True

B)False

Q2) To remove a PUBLIC synonym, you must include the ____ keyword in the DROP command.

A) DEFAULT

B) DBA

C) PUBLIC

D) none of the above

Q3) To change the starting value for a sequence, the sequence must be dropped and then re-created.

A)True

B)False

Q4) Pre-generated sequence numbers that have not been used when the database is shut down will no longer be available when the database is restarted.

A)True

B)False

Q5) An index can be created with the ____________________ INDEX command.

To view all questions and flashcards with answers, click on the resource link above. Page 8

Chapter 7: User Creation and Management

Available Study Resources on Quizplus for this Chatper

132 Verified Questions

132 Flashcards

Source URL: https://quizplus.com/quiz/21424

Sample Questions

Q1) If a user is granted system and object privileges, then subsequently grants those privileges to other users, what happens to the recipients if all of the original user's privileges are revoked?

Q2) The PASSWORD EXPIRE option can be used to force a user to change his or her password at the time of the next login.

A)True

B)False

Q3) Object privileges allow users to perform DML operations on the data contained within database objects.

A)True

B)False

Q4) Which of the following SQL statements will create a new role named PRCLERK?

A) CREATE prclerk;

B) CREATE ROLE prclerk;

C) CREATE ROLE prclerk ON payroll;

D) CREATE ROLE prclerk WITH SELECT ANY TABLE PRIVILEGE;

Q5) Any privilege with the ANY keyword in it is automatically an object privilege.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 9

Chapter 8: Restricting Rows and Sorting Data

Available Study Resources on Quizplus for this Chatper

132 Verified Questions

132 Flashcards

Source URL: https://quizplus.com/quiz/21425

Sample Questions

Q1) The ____________________ logical operator is used to reverse the meaning of a search condition.

Q2) When performing a search on a(n) ____________________ column, the search condition does not need to be enclosed in single quotation marks.

Q3) Based upon the contents of the BOOKS table in the accompanying figure, which of the following queries will return the category and title of all books stored in the BOOKS table presented in order of their category and, for the books in the same category, sort the title of the books in descending order?

A) SELECT category, title FROM books

ORDERED BY 1, 2 DESC;

B) SELECT category, title FROM books

ORDER BY 1 ASC, 2 DESC;

C) SELECT category, title FROM books

SORTED BY 1 ASC, 2 DESC;

D) SELECT category, title FROM books

SORT BY 1, 2 DESC;

Q4) What special consideration needs to be given to search conditions when they are being compared to character or date columns?

To view all questions and flashcards with answers, click on the resource link above.

Page 10

Chapter 9: Joining Data From Multiple Tables

Available Study Resources on Quizplus for this Chatper

131 Verified Questions

131 Flashcards

Source URL: https://quizplus.com/quiz/21426

Sample Questions

Q1) To display the name of each customer and the title of each book purchased by the customers would require how many join conditions?

A) 4

B) 3

C) 2

D) 1

Q2) Which of the following SQL statements will display the gift that should be sent to any customer who orders the book titled SHORTEST POEMS?

A) SELECT gift FROM promotion WHERE gift = minretail;

B) SELECT gift FROM promotion, books WHERE retail >= minretail AND title = 'SHORTEST POEMS';

C) SELECT gift FROM promotion, books WHERE retail BETWEEN minretail AND maxretail AND title = 'SHORTEST POEMS';

D) none of the above

Q3) To display rows from one table that do not have a corresponding row in the other table, you must create a(n) ____________________ join.

To view all questions and flashcards with answers, click on the resource link above.

11

Chapter 10: Selected Single Row Functions

Available Study Resources on Quizplus for this Chatper

133 Verified Questions

133 Flashcards

Source URL: https://quizplus.com/quiz/21427

Sample Questions

Q1) \(\underline { \text { INITCAP } }\) can be used to convert character strings to mixed-case characters. _________________________

A)True

B)False

Q2) Based upon the contents of the ORDERS table, which of the following SQL statements will display the number of days between the date an order was placed and the date it was shipped?

A) SELECT order#, TO_CHAR(shipdate-orderdate, '99') FROM orders WHERE shipdate IS NOT NULL;

B) SELECT order#, MONTHS_BETWEEN(shipdate-orderdate, '99') FROM orders WHERE shipdate IS NOT NULL;

C) SELECT order#, ADD_MONTHS(shipdate-orderdate, '99') FROM orders WHERE shipdate IS NOT NULL;

D) SELECT order#, DAYS_BETWEEN(shipdate-orderdate, '99') FROM orders WHERE shipdate IS NOT NULL;

Q3) The ____________________ function allows a user to enter a date in a variety of formats, and then changes the value to the default Oracle11g internal storage format.

Q4) The ____________________ function is used to return a portion of a string.

Q5) Describe the order in which Oracle11g resolves nested functions.

To view all questions and flashcards with answers, click on the resource link above. Page 12

Chapter 11: Group Functions

Available Study Resources on Quizplus for this Chatper

134 Verified Questions

134 Flashcards

Source URL: https://quizplus.com/quiz/21428

Sample Questions

Q1) The AVG function can be used with ____ values.

A) numeric

B) character

C) date

D) all of the above

Q2) SUM, AVG, and COUNT are all considered \(\underline {\text { group } }\) functions.

A)True

B)False

Q3) Group functions return a group of results per row processed.

A)True

B)False

Q4) The HAVING clause is used to restrict the groups returned by a query.

A)True

B)False

Q5) The ____________________ clause is used to restrict the groups returned by a query.

Q6) AVG, COUNT, and STDDEV are all considered group functions.

A)True

B)False

Page 13

To view all questions and flashcards with answers, click on the resource link above.

Chapter 12: Subqueries and Merge Statements

Available Study Resources on Quizplus for this Chatper

132 Verified Questions

132 Flashcards

Source URL: https://quizplus.com/quiz/21429

Sample Questions

Q1) The > operator is referred to as a(n) ____ operator.

A) multiple-row

B) multiple-column

C) single-row

D) none of the above

Q2) Based upon the contents of the BOOKS table, which line of the following SQL statement contains an error? 1 SELECT title, pubid, cost, retail

2 FROM books

3 WHERE (pubid, cost)

4 (SELECT pubid, cost)

5 FROM books

6 WHERE pubid = 3);

A) Line 1

B) Line 4

C) Line 5

D) Line 6

Q3) In Oracle11g, subqueries can be nested to a depth of 255 in a WHERE clause.

A)True

B)False

Q4) What is the difference between the IN operator and the =ANY operator?

Page 14

To view all questions and flashcards with answers, click on the resource link above.

Chapter 13: Views

Available Study Resources on Quizplus for this Chatper

133 Verified Questions

133 Flashcards

Source URL: https://quizplus.com/quiz/21430

Sample Questions

Q1) A(n) ____________________ table is a table that does not contain the primary key being used by a complex view to uniquely identify each row displayed by the view.

Q2) Rows in an underlying table cannot be deleted through a complex view that contains an arithmetic operation.

A)True

B)False

Q3) What is the procedure for assigning new names for the columns that are displayed by a view?

A) The new column names can be listed after the VIEW keyword, enclosed in parentheses.

B) Column aliases can be used in the subquery, and Oracle11g will use the aliases as column names in the view that is created.

C) all of the above

D) none of the above

Q4) Views are not database objects.

A)True

B)False

Q5) How is a "TOP-N" analysis performed?

To view all questions and flashcards with answers, click on the resource link above. Page 15

Turn static files into dynamic content formats.

Create a flipbook