Chapter 5 Practice Questions, DB Chapter 2 MULTIPLE, Exam 1 - Chapter 4, Exam 1, Final Chapter #6

¡Supera tus tareas y exámenes ahora con Quizwiz!

34) Which of the following is true about identifiers of entities? A) Identifiers must be unique. B) Identifiers are not normally used in a naming role. C) The value of an identifier may identify a set of entity instances. D) Identifiers may not be more than two attributes. E) An identifier in the E-R model is equivalent to a key in the relational model.

Answer: C

46) Microsoft Access can be used to build a prototype database, which allows users: A) to draw a crow's foot E-R diagram themselves. B) to normalize the tables in the E-R diagram. C) to validate the data model by demonstrating the consequences of data modeling decisions. D) to determine the functional dependencies in the data model. E) to determine the appropriate primary and foreign keys in the data model.

Answer: C

32) Which of the following is not a basic element of the E-R Model? A) Identifiers B) Entities C) Cardinalities D) Use cases E) Relationships

Answer: D

45) In crow's foot style E-R diagrams, a single entity together with a related set of entities that each contain specific sets of attributes related to the single entity represent: A) a strong entity relationship. B) an ID-dependent weak entity relationship. C) a non-ID-dependent weak entity relationship. D) a supertype / subtype relationship. E) a recursive entity relationship.

Answer: D

42) In crow's foot style E-R diagrams, a hash mark across the relationship line near an entity indicates: A) a minimum cardinality of zero. B) a minimum cardinality of one. C) a maximum cardinality of one. D) a maximum cardinality of many. E) Both B and C

Answer: E

48) Microsoft Access can be used to prototype databases for which of the following DBMS products? A) Microsoft Access B) SQL Server C) MySQL D) Oracle Database E) All of the above

Answer: E

10) There is usually only one instance of an entity in an entity class.

Answer: FALSE Diff: 1 Page Ref: 247-248

61) ________ can be used to build prototype databases.

Answer: Microsoft Access 2013

11) The E-R Model assumes that all instances of a given entity class have the same attributes.

Answer: TRUE

12) An entity identifier can be either unique or nonunique.

Answer: TRUE

19) In crow's foot E-R notation, the hash mark indicates both a minimum cardinality of one and a maximum cardinality of one.

Answer: TRUE

2) When developing a database system, the database is constructed during the implementation phase.

Answer: TRUE

20) Subtype entities may be either exclusive or inclusive.

Answer: TRUE

21) Microsoft Access 2013 can be used to build a prototype database, which allows users to validate the data model by demonstrating the consequences of data modeling decisions.

Answer: TRUE

9) An entity class is described by the structure of the entities in that class.

Answer: TRUE

53) ________ are descriptions of the ways users will employ the features and functions of the new information system.

Answer: Use cases

55) Relationships with the degree 2 are often called ________ relationships.

Answer: binary

52) A(n) ________ is a working demonstration of selected portions of the future system.

Answer: prototype

57) An entity that must logically depend on another entity is called a(n) ________ entity.

Answer: weak

What relationship pattern is illustrated in the following schema? PRODUCT (ProductID, Description) SUPPLIER (SupplierID, ContactName, PhoneNumber) PRODUCT_SUPPLIER (ProductID, SupplierID, Cost) ProductID in PRODUCT_SUPPLIER must exist in ProductID in PRODUCT SupplierID in PRODUCT_SUPPLIER must exist in SupplierID in PRODUCT

Association relationship

A ________ is a temporary table used in the FROM clause of an SQL query. A) correlated subquery B) derived table C) view table D) none of the above

B

A ________ view is materialized when referenced. A) virtual B) dynamic C) materialized D) base

B

A type of query that is placed within a WHERE or HAVING clause of another query is called a: A) master query. B) subquery. C) superquery. D) multi-query

B

All of the following are guidelines for better query design EXCEPT: A) understand how indexes are used in query processing. B) use a lot of self-joins. C) write simple queries. D) retrieve on the data that you need.

B

Explicit commands to manage transactions are needed when: A) a transaction consists of just one SQL command. B) multiple SQL commands must be run as part of a transaction. C) autocommit is set to off. D) none of the above

B

One major advantage of the outer join is that: A) information is easily accessible. B) information is not lost. C) the query is easier to write. D) all of the above.

B

The SQL command ________ adds one or more new columns to a table. A) create table B) alter table C) create view D) create relationship

B

What result set is returned from the following query? Select Customer_Name, telephone from customers where city in ('Boston','New York','Denver'); A) The Customer_Name and telephone of all customers B) The Customer_Name and telephone of all customers living in either Boston, New York or Denver C) The Customer_Name and telephone of all customers living in Boston and New York and Denver D) The Customer_Name of all customers living in Boston, New York or Denver

B

What result will the following SQL statement produce? Select Avg(standard_price) as average from Product_V; A) The average of all products in Product_V B) The average Standard_Price of all products in Product_V C) The average price of all products D) None of the above

B

What results would the following SQL statement produce? select owner, table_name from dba_tables where table_name = 'CUSTOMER'; A) A listing of all customers in the customer table B) A listing of the owner of the customer table C) A listing of the owner of the customer table as well as customers D) An error message

B

What will be returned when the following SQL statement is executed? Select driver_no,count(*) as num_deliveries from deliveries group by driver_no; A) A listing of all drivers, sorted by driver number B) A listing of each driver as well as the number of deliveries that he or she has made C) A count of all of the deliveries made by all drivers D) None of the above

B

Which of the following can produce scalar and vector aggregates? A) ORDER BY B) GROUP BY C) HAVING D) SORT

B

Which of the following is a technique for optimizing the internal performance of the relational data model? A) Avoiding indexes on secondary keys B) Clustering data C) Not reporting statistics to save machine resources D) Using random index organizations

B

Which of the following is the wildcard operator in SQL statements? A) < > B) * C) = D) &

B

Which of the following questions is answered by the SQL statement? Select Count (Product_Description) from Product_T; A) How many products are in the table Product_T? B) How many products have product descriptions in the Product Table? C) How many characters are in the field name "Product_Description"? D) How many different columns named "Product_Description" are there in table Product_T?

B

Which of the following will produce the minimum of all standard prices? A) Select standard_price from Product_V where Standard_Price = min; B) Select min(standard_price) from Product_V; C) Select Standard_Price from min(Product_V); D) Select min(Standard_Price) from Product_V where Standard_Price = min(Standard_Price);

B

While triggers run automatically, ________ do not and have to be called. A) trapdoors B) routines C) selects D) updates

B

Which of the following is true about a relation? A) The order of the columns in a relation must go from largest to smallest. B) All entries in any column must be of the same kind. C) A relation may have duplicate column names. D) A relation may have duplicate rows. E) A relation may have multiple names.

B) All entries in any column must be of the same kind.

In the normalization process, it is not necessary to: A) identify all the candidate keys of a relation. B) identify all the foreign keys of a relation. C) identify all the functional dependencies of a relation. D) identify all the determinants of a relation. E) determine if every determinant is a candidate key.

B) identify all the foreign keys of a relation.

A join in which rows that do not have matching values in common columns are still included in the result table is called a(n): A) natural join. B) equi-join. C) outer join. D) union join.

C

EXISTS will take a value of ________ if the subquery returns an intermediate results table which contains one or more rows. A) FALSE B) 1 C) TRUE D) undefined

C

Establishing IF-THEN-ELSE logical processing within an SQL statement can be accomplished by: A) using the if-then-else construct. B) using the immediate if statement. C) using the CASE keyword in a statement. D) using a subquery.

C

SQL provides the ________ technique, which involves placing an inner query within the WHERE or HAVING clause of an outer query. A) grouping B) joining C) subquery D) union

C

SQL-invoked routines can be: A) procedures. B) functions. C) all of the above. D) none of the above.

C

The command for creating a database is: A) create table. B) create view. C) create schema. D) create authorization.

C

What does the following SQL statement do? Alter Table Customer_T Add (Type Varchar (2)); A) Alters the Customer_T table to accept Type 2 Varchars B) Alters the Customer_T table to be a Type 2 Varchar C) Alters the Customer_T table, and adds a field called "Type" D) Alters the Customer_T table by adding a 2-byte field called "Varchar"

C

What result set will the following query return? Select Item_No, description from item where weight > 100 and weight < 200; A) The Item_No and description for all items weighing less than 100 B) The Item_No for all items weighing between 101 and 199 C) The Item_No and description for all items weighing between 101 and 199 D) The Item_No for all items weighing more than 200

C

What will result from the following SQL Select statement? Select min(Product_Description) from Product_V; A) The minimum value of Product_Description will be displayed. B) An error message will be generated. C) The first product description alphabetically in Product_V will be shown. D) None of the above

C

Which of the following finds all groups meeting stated conditions? A) Select B) Where C) Having D) Find

C

Which of the following is true of the order in which SQL statements are evaluated? A) The SELECT clause is always processed first. B) The SELECT clause is always processed last. C) The SELECT clause is processed before the ORDER BY clause. D) The GROUP BY clause is processed before the WHERE clause

C

________ differs from array because it can contain duplicates. A) BIGINT B) XML C) MULTISET D) TABLE

C

________ is a set of commands used to control a database, which includes security. A) DML B) DDL C) DCL D) DPL

C

STUDENT (SID, StudentName, Major, AdvisorID) ADVISOR (AdvisorID, AdvisorName, Office, Phone) Given the relations above such that each student is assigned to one advisor, which of the following is true? A) SID is both a primary key and a foreign key. B) AdvisorName is a determinant. C) AdvisorID is a foreign key. D) Phone is a candidate key. E) Major is a candidate key.

C) AdvisorID is a foreign key.

During the normalization process, the remedy for a relation that is not well formed is to: A) create a surrogate key. B) create a functional dependency. C) break it into two or more relations that are well formed. D) combine it with another relation that is well formed. E) convert it into a list.

C) break it into two or more relations that are well formed.

When the primary key of one relation is placed into a second relation, it is called a: A) field key. B) referential integrity. C) foreign key. D) candidate key. E) relocated key.

C) foreign key.

In Microsoft Access, relationships between tables are created: A) by the Relationships button on the Create command tab. B) by the Relationships button on the Home command tab. C) in the Relationships window. D) in the Table window of the table containing the primary key. E) in the Table window of the table containing the foreign key.

C) in the Relationships window.

A join in which the joining condition is based on equality between values in the common columns is called a(n): A) equi-join. B) unilateral join. C) natural join. D) both A and C.

D

A new set of analytical functions added in SQL:2008 is referred to as: A) OLAF functions. B) MOLAP functions. C) average functions. D) OLAP functions.

D

A procedure is: A) stored within the database. B) given a unique name. C) called by name. D) all of the above.

D

A view may not be updated directly if it contains: A) the DISTINCT keyword. B) derived columns and expressions in the SELECT clause. C) uses the GROUP BY or HAVING clause. D) all of the above.

D

An operation to join a table to itself is called a: A) sufficient-join. B) inner join. C) outer join. D) self-join.

D

If the DBA wishes to describe all tables in the database, which data dictionary view should be accessed in Oracle? A) dba_tab_privs B) dba_tab_comments C) dba_table_label D) dba_tables

D

The ________ clause is used to combine the output from multiple queries into a single result table. A) INTERSECT B) DIVIDE C) COLLATE D) UNION

D

The benefits of a standardized relational language include: A) application longevity. B) reduced training costs. C) cross-system communication. D) all of the above.

D

The most commonly used form of join operation is the: A) outer join. B) union join. C) equi-join. D) natural join.

D

Which of the following is a purpose of the SQL standard? A) To specify syntax and semantics of SQL data definition and manipulation B) To specify minimal and complete standards, which permit different degrees of adoption in products C) To define the data structures and basic operations for SQL databases D) All of the above

D

Although Microsoft Access is a personal database, it is still subject to the following modification problem(s): A) problems adding data. B) problems changing data. C) problems deleting data. D) All of the above E) None of the above

D) All of the above

Which of the following terms is synonymous with "tuple"? A) Attribute B) Table C) Field D) Row E) Relation

D) Row

By default, when Microsoft Access creates a relationship between two tables, it creates a(n):

1:N relationship.

User-defined transactions can improve system performance because: A) transactions are processed as sets, reducing system overhead. B) transactions are mapped to SQL statements. C) speed is improved due to query optimization. D) all of the above.

A

What does the following SQL command do? insert into Customer_T values (001,'John Smith','231 West St','Boston','MA','02115'); A) Adds a new record to the Customer_T B) Creates the Customer_T table C) Deletes the Customer_T table D) Updates the Customer_T table

A

Which of the following counts ONLY rows that contain a value? A) Count B) Count(*) C) Tally(*) D) Checknum

A

31) A use case can be used to perform which of the following tasks? A) Transform the data model into the database design B) Validate the data model C) Fill the database with data D) Implement business rules E) Develop applications

Answer: B

60) ________ constrain data values and the processing of the database.

Answer: Business rules

The CREATE SCHEMA DDL command is used to create a table.

False

The natural join is very rarely used.

False

Which of the following would be a reason to denormalize a relation?

Improve performance

A natural join is the same as an equi-join, except that it is performed over matching columns that have been defined with the same name, and one of the duplicate columns is eliminated.

True

A transaction is the complete set of closely related update commands that must all be done, or none of them done, for the database to remain valid.

True

A trigger is a named set of SQL statements that are considered when a data modification occurs.

True

An insert command does not need to have the fields listed.

True

The ALTER TABLE command is used to change a table definition.

True

The FROM clause is the first statement processed in an SQL command.

True

The content of dynamic views is generated when they are referenced

True

After a 1:1 relationship has been created between two tables in Microsoft Access, the Relationship Type of One-To-One appears:

in the Edit Relationships dialog box.

Dynamic SQL: A) is used to generate appropriate SQL code on the fly as an application is processing. B) is quite volatile. C) is not used widely on the Internet. D) creates a less flexible application

A

Embedded SQL consists of: A) hard-coded SQL statements included in a program written in another language. B) SQL encapsulated inside of other SQL statements. C) SQL written into a front-end application. D) SQL translated to a lower-level language.

A

In SQL, a(n) ________ subquery is a type of subquery in which processing the inner query depends on data from the outer query. A) correlated B) paired C) natural D) inner

A

Multiple values returned from an SQL query that includes an aggregate function are called: A) vector aggregates. B) scalar aggregates. C) agates. D) summations

A

The MERGE command: A) allows one to combine the INSERT and UPDATE operations. B) allows one to combine the INSERT and DELETE operations. C) joins 2 tables together. D) none of the above.

A

The UNION clause is used to: A) combine the output from multiple queries into a single result table. B) join two tables together to form one table. C) find all rows that do not match in two tables. D) none of the above.

A

The ________ DBA view shows information about all users of the database in Oracle. A) DBA_USERS B) USERS C) DBA_VIEWS D) DBA_INDEXES

A

The outer join syntax does not apply easily to a join condition of more than ________ tables. A) two B) three C) four D) any number of

A

To get all the customers from Hawaii sorted together, which of the following would be used? A) ORDER BY B) GROUP BY C) HAVING D) SORT

A

What does the following SQL statement do? Delete from Customer_T where state = 'HI'; A) Deletes all records from customer_t where the state is equal to HI B) Removes the Customer_T table from the database C) Deletes all records from the Customer_T table D) None of the above

A

What does the following SQL statement do? Select * From Customer Where Cust_Type = "Best" A) Selects all the fields from the Customer table for each row with a customer labeled "Best" B) Selects the "*" field from the Customer table for each row with a customer labeled "Best" C) Selects fields with a "*" in them from the Customer table D) Selects all the fields from the Customer table for each row with a customer labeled "*"

A

What results will be produced by the following SQL query? Select sum(standard_price) as Total_Price from Product_V where Product_Type = 'WOOD'; A) The total price of all products that are of type wood B) The total price of all products C) The Standard_Price of the first wood product in the table D) The Standard_Price of any wood product in the table

A

What will be returned when the following SQL query is executed? Select driver_no, count(*) as num_deliveries from deliveries group by driver_no having count(*) > 2; A) A listing of all drivers who made more than 2 deliveries as well as a count of the number of deliveries B) A listing of all drivers C) A listing of the number of deliveries greater than 2 D) A listing of all drivers who made more than 2 deliveries

A

________ is a set of commands used to update and query a database. A) DML B) DDL C) DCL D) DPL

A

________ use the result of the outer query to determine the processing of the inner query. A) Correlated subqueries B) Outer subqueries C) Inner subqueries D) Subqueries

A

One important relational design principle is that: A) every determinant must be a candidate key. B) every candidate key must not be a determinant. C) every primary key must be a surrogate key. D) every determinant must be functionally dependent on the primary key. E) every primary key must be functionally dependent on every determinant.

A) every determinant must be a candidate key.

43) In crow's foot style E-R diagrams, a circle across the relationship line near an entity indicates: A) a minimum cardinality of zero. B) a minimum cardinality of one. C) a maximum cardinality of one. D) a maximum cardinality of many. E) Both B and C

Answer: A

49) The Microsoft Access 2013 form editor is a(n): A) banded form editor. B) wizard-based form editor. C) ASCII form editor. D) WYSIWYG form editor. E) Web-based form editor.

Answer: A

50) The Microsoft Access 2013 report editor is a(n): A) banded report editor. B) wizard-based report editor. C) ASCII report editor. D) WYSIWYG report editor. E) Web-based report editor.

Answer: A

47) Microsoft Access is a good tool for creating mock-ups of forms and reports because: A) the form and report generators do not exist within Access itself. B) Access forms and reports are very simplistic. C) Access wizards make it easy to create the forms and reports. D) Access has a version of Microsoft PowerPoint built into it to allow easy creation of PowerPoint slide shows. E) Access has a version of Microsoft Excel built into it to allow easy exporting of data to spreadsheets.

Answer: C

44) In crow's foot style E-R diagrams, a crow's foot mark on the relationship line near an entity indicates: A) a minimum cardinality of zero. B) a minimum cardinality of one. C) a maximum cardinality of one. D) a maximum cardinality of many. E) Both B and C

Answer: D

41) An ID-dependent entity is: A) a special type of weak entity. B) an entity in which the identifier of the entity includes the identifier of another entity. C) a strong entity. D) an entity with a maximum cardinality of one. E) Both A and B

Answer: E

65) Microsoft Access 2013 uses ________ form and report editors.

Answer: banded

54) Identifiers of an entity that are composed of two or more attributes are called ________ identifiers.

Answer: composite

63) Microsoft Access 2013 database files can be easily ________ to create multiple copies of a database.

Answer: copied

51) The ________ is a representation of the content, relationships, and constraints of the data needed to support the system requirements.

Answer: data model

59) Recursive relationships occur when an entity has a relationship with ________.

Answer: itself

64) Microsoft Access 2013 can be used to prototype databases for ________.

Answer: many DBMS products

58) In crow's foot style E-R diagrams, an entity class is represented by a(n) ________.

Answer: rectangle

56) When an entity class has a relationship with itself, it is called a(n) ________ relationship.

Answer: recursive

62) Microsoft Access 2013 ________ allow easy mock-ups of forms and reports for prototyping.

Answer: wizards

A join operation: A) brings together data from two different fields. B) causes two tables with a common domain to be combined into a single table or view. C) causes two disparate tables to be combined into a single table or view. D) is used to combine indexing operations.

B

A join that is based upon equality between values in two common columns with the same name and where one duplicate column has been removed is called a(n): A) equi-join. B) natural join. C) multivariate join. D) inner join

B

A single value returned from an SQL query that includes an aggregate function is called a(n): A) agate. B) scalar aggregate. C) vector aggregate. D) summation.

B

A type of join where a table is joined to itself is called a(n): A) unary join. B) self-join. C) unnatural join. D) pinned join.

B

All of the following are new data types added in SQL:200n EXCEPT: A) BIGINT. B) BIT. C) MULTISET. D) XML.

B

Any create command may be reversed by using a ________ command. A) truncate B) drop C) delete D) unpack

B

DDL is typically used during which phases of the development process? A) Implementation B) Physical design C) Analysis D) All of the above

B

Extensions defined in SQL-99 that include the capability to create and drop modules of code stored in the database schema across user sessions are called: A) stored procedures. B) Persistent Stored Modules. C) flow control modules. D) none of the above.

B

Given a table named store with 5 fields: store_id, address, city, state, zipcode, why would the following insert command not work? insert into store values ('234 Park Street') A) It would work just fine. B) You must specify the fields to insert if you are only inserting some of the fields. C) There is no table keyword. D) None of the above.

B

In order for two queries to be UNION-compatible, they must: A) both have the same number of lines in their SQL statements. B) both output compatible data types for each column and return the same number of rows. C) both return at least one row. D) all of the above.

B

In order to embed SQL inside of another language, the ________ statement must be placed before the SQL in the host language. A) GET SQL B) EXEC SQL C) RUN SQL D) SQL SQL

B

The ________ is the structure that contains descriptions of objects such as tables and views created by users. A) SQL B) schema C) catalog D) master view

B

The first in a series of steps to follow when creating a table is to: A) identify columns that must be unique. B) identify each attribute and its characteristics. C) create an index. D) identify columns that must be null

B

To eliminate duplicate rows in a query, the ________ qualifier is used in the SQL Select command. A) alter B) distinct C) check D) specific

B

What does the following SQL statement do? Update Product_T Set Unit_Price = 775 Where Product_ID = 7 A) Changes the price of a unit called Product_T to 7 B) Changes the unit price of Product 7 to 775 C) Changes the length of the Unit_Price field to 775 D) Updates the Product_T table to have a unit price of 775

B

What will be returned when the following SQL statement is executed? Select driver_no, count(*) as num_deliveries from deliveries where state = 'MA' group by driver_no; A) A listing of all drivers who made deliveries to state = 'MA', sorted by driver number B) A listing of each driver who made deliveries to state = 'MA' as well as the number of deliveries that each driver has made to that state C) A count of all of the deliveries made to state = 'MA' by all drivers D) None of the above

B

A table that meets the requirements of a relation is said to be in which normal form? A) Relational normal form (RNF) B) First normal form C) Second normal form D) Boyce-Codd normal form E) Domain/key normal form

B) First normal form

Which of the following is true about a key? A) It may be unique. B) It may be non-unique. C) In may identify more than one row. D) Both A and B E) All of the above

B) It may be non-unique.

Which of the following terms is synonymous with "relation"? A) Attribute B) Table C) Record D) Row E) Tuple

B) Table

) In which of the following situations would one have to use an outer join in order to obtain the desired results? A) A report is desired that lists all customers who placed an order. B) A report is desired that lists all customers and the total of their orders. C) A report is desired that lists all customers, the total of their orders during the most recent month, and includes customers who did not place an order during the month (their total will be zero). D) There is never a situation that requires only an outer join.

C

A named set of SQL statements that are considered when a data modification occurs are called: A) stored procedures. B) treatments. C) triggers. D) trapdoors.

C

All of the following are part of the coding structure for triggers EXCEPT: A) event. B) condition. C) selection. D) action.

C

An interactive command that can be used to dynamically control a user session for appropriate integrity measures is: A) rollback. B) rollforward. C) set autocommit. D) expunge.

C

In an SQL statement, which of the following parts states the conditions for row selection? A) Select B) From C) Where D) Group By

C

Indexes are created in most RDBMSs to: A) provide a quicker way to store data. B) decrease the amount of disk space utilized. C) provide rapid random and sequential access to base-table data. D) increase the cost of implementation

C

RANK and DENSE-RANK are examples of: A) ceilings. B) door functions. C) window functions. D) moving functions.

C

The SQL command ________ defines a logical table from one or more tables or views. A) create table B) alter table C) create view D) create relationship

C

________ takes a value of true if a subquery returns an intermediate results table which contains one or more rows. A) IN B) HAVING C) EXISTS D) EXTENTS

C

Which of the following is not true about a relation? A) A relation is a two-dimensional table. B) The cells of a relation must hold a single value. C) A relation may have duplicate column names. D) A relation may not have duplicate rows. E) The order of the rows of a relation is insignificant.

C) A relation may have duplicate column names.

All of the following are advantages of SQL-invoked routines EXCEPT: A) flexibility. B) efficiency. C) sharability. D) security.

D

User-defined data types: A) can be a subclass of a standard type. B) can behave as an object. C) can have defined functions and methods. D) can have all of the above.

D

What result set will the following query return? Select Item_No from Order_V where quantity > 10; A) The Item_No of all orders that had more than 10 items B) The Order_Id of all orders that had more than one item C) The Order_Id of all orders that had more than 10 items D) The Item_No of all orders that had 10 or more items

D

In Microsoft Access, the relationship between two tables is not actually created until: A) the OK button in the Create Relationships dialog box is clicked. B) the Create button in the Create Relationships dialog box is clicked. C) the OK button in the Edit Relationships dialog box is clicked. D) the Create button in the Edit Relationships dialog box is clicked. E) the Join button in the Edit Relationships dialog box is clicked.

D) the Create button in the Edit Relationships dialog box is clicked.

A primary key is: A) required to be unique. B) used to represent rows in relationships. C) a candidate key. D) used to identify unique rows. E) All of the above

E) All of the above

Which of the following is NOT true of recursive relationships?

Even when the relationship is 1:N, a new table must be defined to represent the relationship.

A catalog is the structure that contains object descriptions created by a user.

False

A database is maintained and queried using the data mapping language (DML).

False

A function has only input parameters but can return multiple values.

False

A referential integrity constraint specifies that the existence of an attribute in one table depends upon the existence of a foreign key in the same or another table.

False

A routine is a named set of SQL statements that are considered when a data modification occurs.

False

A single value returned from an SQL query that includes an aggregate function is called a vector aggregate.

False

A subquery in which processing the inner query depends on data from the outer query is called a codependent query.

False

An equi-join is a join in which one of the duplicate columns is eliminated in the result table.

False

Combining a table with itself results in a faster query.

False

Count(*) tallies only those rows that contain a value, while Count counts all rows.

False

DBA_USERS contains comments on all tables in an Oracle database.

False

DCL is used to update the database with new records.

False

EXISTS takes a value of false if the subquery returns an intermediate result set.

False

IF-THEN-ELSE logical processing cannot be accomplished within an SQL statement.

False

Implementation of a standard can never stifle creativity and innovation.

False

Indexes generally slow down access speed in most RDMS.

False

It is better not to have a result set identified before writing GROUP BY and HAVING clauses for a query.

False

MULTISET is similar to the table datatype.

False

Materialized views are stored on disk and are never refreshed.

False

One major disadvantage of the outer join is that information is easily lost.

False

Persistent Sorted Modules are extensions defined in SQL-99 that include the capability to create and drop modules of code stored in the database schema across user sessions.

False

SQL has been implemented only in the mainframe and midrange environments.

False

SQL originated from a project called System-S.

False

Specifying the attribute names in the SELECT statement will make it easier to find errors in queries and also correct for problems that may occur in the base system.

False

Subqueries can only be used in the WHERE clause.

False

The DELETE TABLE DDL command is used to remove a table from the database.

False

The DROP command deletes rows from a table individually or in groups.

False

The HAVING clause and the WHERE clause perform the same operation.

False

The ORDER BY clause is the first statement processed in an SQL command.

False

The comparison operators = and != are used to establish a range of values.

False

The following command would work fine: insert into budget values 121,222,111;

False

The following query totals sales in state= 'MA' for each salesperson. Select salesperson_id, sum(sales) from salesperson group by salesperson_id having state = 'MA';

False

The following query will execute without errors. select customer.customer_name, salesman.sales_quota from customer where customer.salesman_id = (select salesman_id where lname = 'SMITH');

False

The following two SQL statements will produce different results. Select last_name, first_name from customer where state = 'MA' or state = 'NY' or state = 'NJ' or state = 'NH' or state = 'CT'; Select last_name, first_name from customer where state in ('MA','NY','NJ','NH','CT');

False

There is a special operation in SQL to join a table to itself.

False

Transaction integrity commands are not used to identify whole units of database changes that must be completed in full for the database to retain integrity.

False

Triggers can be used to ensure referential integrity, enforce business rules, create audit trails, replicate tables, but cannot call other triggers.

False

User-defined functions can improve system performance because they will be processed as sets rather than individually, thus reducing system overhead.

False

Using an outer join produces this information: rows that do not have matching values in common columns are not included in the result table.

False

When a subquery is used in the FROM clause, it is called a denied table.

False

When creating a table, it is not important to consider foreign key—primary key mates.

False

When the SELECT clause in the create view statement contains the keyword DISTINCT, the view can be used to update data.

False

Which of the following is true about representing a weak entity with the relational model?

If the weak entity is ID-dependent, the key of the parent entity must be part of the key of the weak entity.

Microsoft Access does not create N:M relationships because:

Microsoft Access creates databases based on database designs instead of data models.

As far as Microsoft Access is concerned, there are no:

N:M relationships.

Given the tables PRODUCT (ProductID, Description, Cost) SUPPLIER (SupplierID, ContactName, PhoneNumber) as shown in the figure below, which of the following would represent the correct placement of foreign keys?

PRODUCT (ProductID, Description, Cost) SUPPLIER (SupplierID, ContactName, PhoneNumber) PRODUCT_SUPPLIER (ProductID, SupplierID) *ProductID in PRODUCT SupplierID in SUPPLIER Both in PRODUCT_SUPPLIER

Given the tables PRODUCT (ProductID, Description, Cost) SUPPLIER (SupplierID, ContactName, PhoneNumber) as shown in the figure below, which of the following would represent the correct placement of foreign keys?

PRODUCT (ProductID, Description, Cost, SupplierID) SUPPLIER (SupplierID, ContactName, PhoneNumber) *SupplierID in PRODUCT table

What relationship pattern is illustrated in the following schema? EMPLOYEE (EmployeeID, OfficePhone, Manager) Manager in EMPLOYEE must exist in EmployeeID in EMPLOYEE

Recursive relationship

What relationship pattern is illustrated in the following schema? VEHICLE (VehicleID, Cost) CAR (VehicleID, NumberOfSeats) TRUCK (VehicleID, CargoCapacity) VehicleID in CAR must exist in VehicleID in VEHICLE VehicleID in TRUCK must exist in VehicleID in VEHICLE

Supertype/subtype relationship

Given the tables TABLE_A (Attribute1, Attribute2, Attribute3) TABLE_B (Attribute4, Attribute5, Attribute6) as shown in the figure below, which of the following would display the correct placement of foreign keys in the relational model?

TABLE_A (Attribute1, Attribute2, Attribute3) TABLE _B (Attribute4, Attribute5, Attribute6, Attribute1) *Attribute1 in TABLE_A

Which of the following is true when representing a 1:1 binary relationship using the relational model?

The key of either entity is placed in the other as a foreign key.

Which of the following is the correct technique for representing a 1:N relationship in the relational model?

The key of the entity on the one side is placed into the relation for the entity on the many side.

Which of the following is not true about surrogate keys?

They are nonunique within a table.

) The following two SQL statements will produce the same results. Select last_name, first_name from customer where credit_limit > 99 and credit_limit < 10001; Select last_name, first_name from customer where credit_limit between 100 and 10000;

True

A correlated subquery is executed once for each iteration through the outer loop.

True

A database table is defined using the data definition language (DDL).

True

A join in which the joining condition is based on equality between values in the common column is called a(n) equi-join.

True

A major benefit of SQL as a standard is reduced training costs

True

A procedure is run by calling it by its name.

True

Adding the DISTINCT keyword to a query eliminates duplicates.

True

An SQL query that implements an outer join will return rows that do not have matching values in common columns

True

Applications can be moved from one machine to another when each machine uses SQL

True

Constraints are a special case of triggers.

True

Correlated subqueries are less efficient than queries that do not use nesting.

True

Establishing IF-THEN-ELSE logical processing within an SQL statement can now be accomplished by using the CASE keyword in a statement.

True

Expressions are mathematical manipulations of data in a table that may be included as part of the SELECT statement.

True

Figuring out what attributes you want in your query before you write the query will help with query writing.

True

If multiple Boolean operators are used in an SQL statement, NOT is evaluated first, then AND, then OR.

True

In order to find out what customers have not placed an order for a particular item, one might use the NOT qualifier along with the IN qualifier.

True

In order to update data in SQL, one must inform the DBMS which relation, columns, and rows are involved.

True

Joining tables or using a subquery may produce the same result.

True

One of the original purposes of the SQL standard was to provide a vehicle for portability of database definition and application modules between conforming DBMSs.

True

Persistent Stored Modules are extensions defined in SQL:1999 that include the capability to add and drop modules of code.

True

RDBMSs store database definition information in system-created tables which can be considered a data dictionary.

True

SQL is both an American and international standard for database access.

True

SQL statements can be included in another language, such as C or Java.

True

SQL:2008 allows one to calculate linear regressions, moving averages and correlations without moving the data outside of the database.

True

Some DBMS can handle graphic data types as well as text and numbers.

True

The ORDER BY clause sorts the final results rows in ascending or descending order.

True

The SQL command used to populate tables is the INSERT command.

True

The UNION clause is used to combine the output from multiple queries into a single result table.

True

The WHERE clause includes the conditions for row selection within a single table or view and the conditions between tables or views for joining.

True

The WHERE clause is always processed before the GROUP BY clause when both occur in a SELECT statement.

True

The advantages of SQL-invoked routines are flexibility, efficiency, shareability and applicability.

True

The asterisk (*) wildcard designator can be used to select all fields from a table as well as in WHERE clauses when an exact match is not possible.

True

The following SQL statement is an example of a correlated subquery. select first_name, last_name, total_sales from salesman s1 where total_sales > all (select total_sales from salesman s2 where s1.salesman_id != s2.salesman_id);

True

The following queries produce the same results. select customer_name, customer_city from customer, salesman where customer.salesman_id = salesman.salesman_id and salesman.lname = 'SMITH'; select customer_name, customer_city from customer where customer.salesman_id = (select salesman_id from salesman where lname = 'SMITH');

True

The following query totals sales for each salesperson. Select salesperson_id, sum(sales) from salesperson group by salesperson_id;

True

The joining condition of an equi-join is based upon an equality.

True

The views are created by executing a CREATE VIEW SQL command.

True

Triggers have three parts: the event, the condition, and the action.

True

When EXISTS or NOT EXISTS is used in a subquery, the select list of the subquery will usually just select all columns as a placeholder because it doesn't matter which columns are returned.

True

When a GROUP BY clause is included in an SQL statement, only those columns with a single value for each group can be included.

True

When creating tables, it's important to decide which columns will allow null values before the table is created.

True

Each attribute of an entity becomes a(n) ________ of a table.

column

The first step in transforming an extended E-R model into a relational database design is to ________.

create a table for each entity

In a relational database design, all relationships are expressed by ________.

creating a foreign key

The identifier of the entity becomes the ________ of the corresponding table.

primary key

The ideal primary key is ________.

short, numeric, and fixed

To create a 1:1 relationship between two tables in Microsoft Access:

the Indexed property of the foreign key column must be set to Yes (No Duplicates).

A surrogate key should be considered when ________.

the key contains a lengthy text field

When transforming an ID-dependent E-R data model relationship into a relational database design and the child entity is designed to use a surrogate key, then ________.

the relationship changes to a non-ID-dependent relationship

When transforming an E-R data model into a relational database design, the key of the parent entity should be placed as part of the primary key into the child entity ________.

when the child entity is ID-dependent

Which of the following is not true of surrogate keys? A) They are meaningful to the users. B) They are numeric. C) They are usually generated by the DBMS. D) They are unique. E) They are usually hidden on forms and reports.

A) They are meaningful to the users.

A key that contains more than one attribute is called a(n): A) composite key. B) complex key. C) multi-key. D) n-key. E) candidate key.

A) composite key.

The first step of the normalization process is to: A) identify all the candidate keys of a relation. B) identify all the foreign keys of a relation. C) identify all the functional dependencies of a relation. D) identify all the determinants of a relation. E) split the relation into two or more new relations.

A) identify all the candidate keys of a relation.

In the normalization process, if you find that every determinant in a relation is a candidate key then you have determined that: A) the relation is well formed. B) the relation needs to be broken into two or more new relations. C) surrogate keys in the relation may not be correctly linked to other relations. D) the relation needs to have foreign keys added in order to be correctly linked to other relations. E) referential integrity constraints concerning the relation need to be established.

A) the relation is well formed.

Which of the following is not true about representing subtypes in a relational database design?

All of the attributes of the supertype are added to the subtype relations.

Which of the following is the correct technique for representing a M:N relationship using the relational model?

An intersection relation is created, and the keys of both parent entities are placed as a composite key in the intersection relation.

26) Which of the following is not a stage in the development of a database system? A) Requirements analysis B) Validation C) Component design D) Implementation E) All of the above are stages in the development of a database system.

Answer: B

28) Which of the following activities is not performed during the implementation phase of developing a database system? A) Filling the database with data B) Transforming the data model into a database design C) Writing application programs D) Creating forms E) Creating reports

Answer: B

36) Given only the following excerpt of an E-R model: Which of the following is known to be true? A) There are more instances of ENTITY A than there are instances of ENTITY B in the user's environment. B) A single instance of ENTITY B may be related to many instances of ENTITY A. C) A single instance of ENTITY A must be related to many instances of ENTITY B. D) ENTITY A has a minimum cardinality of one. E) The degree of the relationship is "many."

Answer: B

37) Given only the following excerpt of an E-R model: Which of the following is known to be true? A) A single instance of ENTITY A must be related to one instance of ENTITY B. B) Many instances of ENTITY A may be related to one instance of ENTITY B. C) ENTITY B has a degree of many. D) ENTITY B is a weak entity. E) Both A and C are true.

Answer: B

27) The representation of the content, relationships, and constraints of the data needed to support the system requirements is the: A) relation design. B) implementation. C) data model. D) data view. E) application program.

Answer: C

30) Which of the following would not be contained in a use case? A) Inputs provided to the system to perform a task B) A description of a task the user wants to perform C) A prototype of the system performing a given task D) Outputs generated by the system in performing a given task E) All of the above would be contained in a use case.

Answer: C

33) In the Entity-Relationship data model, all instances of an entity of a given type are grouped into: A) entity objects. B) class objects. C) entity classes. D) identifiers. E) entity attributes.

Answer: C

39) Whether or not an instance of one entity class must participate in a relationship with another entity class is indicated by the: A) degree. B) recursive cardinality. C) minimum cardinality. D) maximum cardinality. E) ordinality.

Answer: C

35) The number of entity classes involved in a relationship is known as the relationship's: A) maximum cardinality. B) minimum cardinality. C) ordinality. D) degree. E) class.

Answer: D

29) Which of the following is not a source for user requirements during the requirements analysis stage of developing a database system? A) Business rules B) User interviews C) Forms D) Use cases E) All of the above are sources for user requirements.

Answer: E

40) A dashed line between entities indicates: A) a unique identifier. B) a minimum cardinality of zero. C) a minimum cardinality of one. D) an identifying relationship. E) a nonidentifying relationship.

Answer: E

1) During the implementation phase of developing a database system, the data model is transformed into a database design.

Answer: FALSE

13) The number of entity classes involved in a relationship is the cardinality of the relationship.

Answer: FALSE

15) Maximum cardinality indicates whether or not an instance of one entity class must be related to at least one instance of another entity class.

Answer: FALSE

16) One type of strong entity is the ID-dependent entity.

Answer: FALSE

17) In crow's foot E-R notation, the crow's foot indicates a maximum cardinality of one.

Answer: FALSE

23) Microsoft Access 2013 is only used to prototype databases where Microsoft Access itself will be the final DBMS.

Answer: FALSE

3) During the design phase of developing a database system, the users are asked about the need for changes to existing forms and reports.

Answer: FALSE

6) System requirements as documented by use cases, business rules, forms, reports, and queries are sufficient to design the database without using a formal data model.

Answer: FALSE

7) Unified Modeling Language (UML) has quickly replaced the E-R Model as the most popular technique for creating data models.

Answer: FALSE

8) The PRODUCT entity instance is the collection of all PRODUCT entity classes.

Answer: FALSE

14) It is possible for an entity to have a relationship to itself.

Answer: TRUE

18) In crow's foot E-R notation, a circle indicates a minimum cardinality of zero.

Answer: TRUE

22) Microsoft Access 2013 wizards allow easy mock-ups of forms and reports for prototyping.

Answer: TRUE

24) Microsoft Access 2013 database files can be easily copied to create multiple copies of a database.

Answer: TRUE

25) Microsoft Access 2013 uses banded form and report editors.

Answer: TRUE

4) A use case is a description of the way a user will employ the features and functions of the new system.

Answer: TRUE

5) Use cases can be used to validate the data model, design, and implementation.

Answer: TRUE

MedicineCode → (MedicineName, ShelfLife, Manufacturer, Dosage) Given the above functional dependency, which of the following statement is not known to be true? A) MedicineCode is a determinant. B) MedicineName is a determinant. C) Manufacturer is functionally dependent on MedicineCode. D) ShelfLife is functionally dependent on MedicineCode. E) MedicineCode is a candidate key of the relation MEDICINE (MedicineName, ShelfLife, Manufacturer, Dosage, MedicineCode).

B) MedicineName is a determinant.

A rule that requires that the values in a foreign key must have a matching value in the primary key to which the foreign key corresponds is called: A) normalization. B) a referential integrity constraint. C) a key matching constraint. D) a functional dependency. E) synchronization.

B) a referential integrity constraint.

In Microsoft Access, a relationship between two tables is created: A) by entering the name of the foreign key in the appropriate table in Design View. B) by entering the name of the primary key in the appropriate table in Design View. C) by dragging the primary key column of one table onto the foreign key column of the other table in the Relationships window. D) by dragging the foreign key column of one table onto the primary key column of the other table in the Relationships window. E) by dragging the primary key column of one table onto the primary key column of the other table in the Relationships window.

C) by dragging the primary key column of one table onto the foreign key column of the other table in the Relationships window.

In SQL Server, the starting value of a surrogate key is called the: A) Identity. B) Identity Increment. C) Identity Start. D) Identity Seed. E) Identity Property.

D) Identity Seed.

Which of the following functional dependency diagrams accurately represents the following situation: • A campus has many buildings. • Each building has a unique name. • Each building has many rooms. • All rooms in any given building are numbered sequentially starting at "101." • Each room has a certain capacity, although many rooms in the same building or different buildings may have the same capacity. • Each room is assigned to a single department. • A department may have many rooms in one or more buildings, each with the same or different capacities. A) BuildingName → (RoomNumber, Capacity, Department) B) RoomNumber → (BuildingName, Department, Capacity) C) (Department, Capacity) → (BuildingName, RoomNumber) D) (BuildingName, Capacity) → (Department, RoomNumber) E) (BuildingName, RoomNumber) → (Capacity, Department)

E) (BuildingName, RoomNumber) → (Capacity, Department)

A candidate key is: A) required to be unique. B) used to represent rows in relationships. C) a candidate to be the primary key. D) Both A and B E) Both A and C

E) Both A and C

A surrogate key may be appropriate under which of the following circumstances? A) The available candidate keys would produce a lot of data duplication when representing relationships. B) The primary key is numeric. C) The available candidate keys would be prone to typographical errors. D) The available candidate keys have little meaning to the users. E) Both A and C

E) Both A and C

In the normalization process, if you find a candidate key that is not a determinant then you should: A) place the columns of the functional dependency in a new relation. B) make the determinant of the functional dependency the primary key of the new relation. C) leave a copy of the determinant as a foreign key in the original relation. D) All of the above E) None of the above

E) None of the above

In the normalization process, if you find a candidate key that is not a primary key then you should: A) place the columns of the functional dependency in a new relation. B) make the determinant of the functional dependency the primary key of the new relation. C) leave a copy of the determinant as a foreign key in the original relation. D) All of the above E) None of the above

E) None of the above

Which of the following is not true about null values? A) A null value can mean that the value is unknown. B) A null value is ambiguous. C) A null value can mean that the value is known to be blank. D) A null value can mean that no value for the field is appropriate. E) Null values cannot be avoided.

E) Null values cannot be avoided.

In Microsoft Access, referential integrity constraints are created: A) by setting a property value on the primary key in the table which contains it. B) by setting a property value on the foreign key in the table which contains it. C) by setting a property value on the primary key in the Relationships window. D) by setting a property value on the foreign key in the Relationships window. E) by checking the Enforce Referential Integrity check box in the Edit Relationships dialog box.

E) by checking the Enforce Referential Integrity check box in the Edit Relationships dialog box.

In many-to-many relationships in a relational database design, ________.

a.) the intersection table is ID-dependent on one of the parents b.) the intersection table is ID-dependent on both of the parents c.) the minimum cardinality from the intersection table to the parents is always M d.) A and B *e.) B and C

In many-to-many relationships in a relational database design, ________.

a.) the key of the child is placed as a foreign key into the parent b.) the key of the parent is placed as a foreign key into the child c.) the keys of both tables are placed in a third table d.) the keys of both tables are joined into a composite key *e.) C and D

In relational database design, ID-dependent entities are used to ________.

represent N:M relationships

One of the important properties of a column is whether or not it is ________.

required


Conjuntos de estudio relacionados

Module 7 Review Quiz: Linux installation and configuration

View Set

PSYC 1001 Module 4: Uncanny Valley

View Set

HTM 411 Ch. 6 (Negligence and Hospitality Practices)

View Set

Foundations test 2 evolve questions that may be on the test

View Set

Physics Chapter 1-Conceptual Question Test 1

View Set

Business Driven Tech Ch.2: Identifying Competitive Advantages

View Set

Financial Accounting Vocabulary: Chapter 6 - Inventory and Cost of Goods Sold

View Set

MRI registry review questions (scan principles)

View Set