Final Exam - CGS2540

Final Exam - CGS2540

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

The default size of a VARCHAR2 column is one character.

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (80)

Section 1

(50 cards)

The default size of a VARCHAR2 column is one character.

Front

False

Back

A DBMS includes which of the following capabilities?

Front

security data dictionary multi-user access Correct ---> all of the above

Back

Which of the following terms represents a collection of fields?

Front

record

Back

​If multiple column names are listed in the SELECT clause of a SELECT statement, the columns must be separated by a comma (,).

Front

True

Back

The default format of a DATE column in Oracle 12c is DD-MON-YY.

Front

True

Back

Based upon the contents of the PUBLISHER table, which of the following SQL statements will display only two columns in the results?

Front

SELECT contact person, name FROM publisher;

Back

By default, data within a character or data column is right-aligned when it is displayed. _________________________

Front

False

Back

Which of the following terms best describes where a group of characters that represents a customer's address would be stored in the logical design?

Front

field

Back

Two tables can be linked or joined together through a common field.

Front

True

Back

The maximum width of a VARCHAR2 column is 2000 characters.

Front

False

Back

The precision of a NUMBER does not include the decimal point itself in the total number of digits that can be stored in a column.

Front

True

Back

What type of relationship is depicted in Figure 2?

Front

one-to-many

Back

A field is a basic unit of data also referred to as a record.

Front

False

Back

A column represents a field in the physical database table.

Front

True

Back

​The columns displayed in the results of a SELECT statement will be in the same order as they are stored in the database table.

Front

False

Back

​The SELECT clause of the SELECT statement is used to identify which rows are to be retrieved from a specified table.

Front

False

Back

Structured Query Language (SQL) is generally used to interact with a database.

Front

True

Back

​In a(n) SELECT statement, keywords, table names, and column names are not case sensitive. _________________________

Front

True

Back

A table name can be up to 30 characters in length.

Front

True

Back

Based upon the contents of the BOOKS table, which of the following is a valid SQL statement?

Front

select pubid, isbn, from books; select * FROM pubid; select pubid, "Publisher ID" from books; Correct! - none of the above

Back

Every table name within a specific schema must be unique.

Front

True

Back

A one-to-many relationship cannot be included in a relational database.

Front

False

Back

A table name can consist of numbers, letters, and blank spaces.

Front

False

Back

In an E-R Model a person, place, or thing with characteristics to be stored in the database are referred to as?

Front

entity

Back

Which of the following is used to create and maintain the physical database?

Front

​Database Management System (DBMS)

Back

Based upon the contents of the PUBLISHER table, which of the following SELECT statements will display the publisher's name first in the results?

Front

SELECT name, publisherID FROM publishers;

Back

The DISTINCT keyword can be used to indicate that duplicate data should be suppressed in the results of a query. _________________________

Front

True

Back

The syntax for a SQL statement gives the basic structure required to execute the statement.

Front

True

Back

The optional keyword AS can be used to indicate that the subsequent string of characters is a column alias.

Front

True

Back

​The DESCRIBE command is used to view data in a table.

Front

False

Back

A many-to-many relationship cannot exist in a relational database.

Front

True

Back

What is the correct answer for the arithmetic expression 9+2*3-2 using the order of operations employed by Oracle 12c when solving equations?

Front

13

Back

When solving arithmetic expressions, Oracle 12c always resolves addition and subtraction operations first from left to right in the expression. _________________________

Front

False

Back

​If a column alias contains a blank space, it must be enclosed in double quotation marks. _________________________

Front

True

Back

A bridging table can be used to eliminate a many-to-many relationship in a relational database.

Front

True

Back

A foreign key uniquely identifies each row in a table.

Front

False

Back

When a user asks the database a question, the user is issuing a query.

Front

True

Back

The scale of a NUMBER column indicates the number of digits that can be displayed to the right of the decimal point.

Front

True

Back

A string literal must be enclosed in double quotation marks. _________________________

Front

True

Back

The following arithmetic operations can be performed in the SELECT clause of a SELECT statement: addition (+), subtraction (-), multiplication (*), division (/), and exponential (^).

Front

False

Back

DML commands are used to create or modify database tables.

Front

False

Back

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

Front

True

Back

Suppose that a patient in a hospital can only be assigned to one room. However, the room may be assigned to more than one patient at a time. This is an example of what type of relationship?

Front

​one-to-many

Back

If a recipe contains several ingredients, and those ingredients can also be used in other recipes, this would be an example of what type of relationship?

Front

many-to-many

Back

A foreign key appears on the many side of a one-to-many relationship.

Front

True

Back

A datatype identifies the type of data to be stored in a column.

Front

True

Back

What type of relationship is depicted in Figure 1?

Front

one-to-one

Back

By default, data within a numeric column is right-aligned when it is displayed. _________________________

Front

True

Back

Concatenation refers to combining the results of several SELECT statements into one result.

Front

False

Back

A ____ is a storage structure designed to hold a collection of data.

Front

Database

Back

Section 2

(30 cards)

Which of the following rules does not apply to column names in Oracle 12c?

Front

Column names can contain an ampersand (&).

Back

Only one PRIMARY KEY constraint can exist for each table.

Front

True

Back

If a FOREIGN KEY constraint exists, then a record cannot be deleted from the parent table if that row is referenced by an entry in the child table.

Front

True

Back

Any constraint can be created at the table or the column level.

Front

False

Back

When a FOREIGN KEY constraint is being created, the REFERENTIAL keyword is used to indicate the table being referenced.

Front

False

Back

A primary key is usually given the abbreviation _pk in the constraint name if the name is assigned by the user.

Front

True

Back

The FOREIGN KEY constraint is usually placed on the "one" side of a one-to-many relationship. _________________________

Front

False

Back

If a data value violates a(n) constraint, the entire row is prevented from being added to the table. _________________________

Front

True

Back

The CONSTRAINT keyword is required if the user is going to assign a name to a constraint.

Front

True

Back

A constraint can only be created as part of the CREATE TABLE command.

Front

False

Back

The DROP TABLE command can be used to remove a table and all its data from a database.

Front

True

Back

If a(n) FOREIGN KEY constraint has been created for a table, it means the data values in that column must be unique and cannot contain NULL values. _________________________

Front

False

Back

Using the DESC on a table will display hidden columns.

Front

False

Back

SELECT9 is a valid table name. _________________________

Front

True

Back

The ADD clause of the ALTER TABLE command is used to add a PRIMARY KEY constraint to an existing table. _________________________

Front

True

Back

To retain the structure of a table, while deleting all its data and releasing their storage space, execute the TRUNC command.

Front

False

Back

A FOREIGN KEY constraint will not allow a row containing a NULL value in the foreign key column to be added to the table.

Front

False

Back

If the CREATE TABLE is being used to create a table from existing data, the SUBQUERY keyword must be used.

Front

False

Back

Once a column as been set as UNUSED, it cannot be recovered. _________________________

Front

True

Back

The syntax of the CREATE TABLE command requires that the column list be enclosed in parentheses. _________________________

Front

True

Back

A table that has been dropped without the PURGE option can be retrieved using the FLASHBACK TABLE command.

Front

True

Back

If the ON DELETE CASCADE keywords are included when a(n) PRIMARY KEY constraint is created, then if a row is deleted from the parent table, any corresponding records in the child table are also deleted. _________________________

Front

False

Back

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

Front

True

Back

A(n) FOREIGN KEY constraint can only reference a column in the parent table that has been designated as the primary key for that table. _________________________

Front

True

Back

A constraint name can consist of up to 25 characters and numbers. _________________________

Front

False

Back

When a column is deleted, the deletion is permanent.

Front

True

Back

A FOREIGN KEY constraint can be added to the column of a table to ensure that the referenced data value actually exists in the other table.

Front

True

Back

Constraints are used to ensure the accuracy and integrity of the data contained in the database.

Front

True

Back

A PRIMARY KEY constraint will make certain the column designated as the primary key does not contain a NULL value.

Front

True

Back

A(n) FOREIGN KEY constraint is used to ensure that referential integrity exists between tables. _________________________

Front

True

Back