Professional Documents
Culture Documents
a. data independence
c. redundancy
b. data integrity
d. security
ANS:
PTS: 1
REF: 2
2. A(n) ____ is a person, place, object, event, or idea for which you want to store and process
data.
a. attribute
c. entity
b. DBMS
d. DBA
ANS:
PTS: 1
REF: 4
PTS: 1
REF: 4
4. A(n) ____ is the computer counterpart to an ordinary paper file you might keep in a file
cabinet or an accounting ledger.
a. spreadsheet
c. data file
b. database
d. attribute
ANS:
PTS: 1
REF:
PTS: 1
REF: 5
PTS: 1
REF: 5
PTS: 1
REF: 9
8. Popular ____ include Access, Oracle, DB2, MySQL, and SQL Server.
a. E-R diagrams
c. DBMSs
b. DBAs
d. data files
ANS:
PTS: 1
REF: 10
9. During the ____ process, a database expert determines the structure of the required database.
a. data security
c. database design
b. database integrity
d. database selection
ANS:
PTS: 1
REF: 10
10. ____ are screen objects used to maintain, view, and print data from a database.
a. Forms
c. Data files
b. Fields
d. Entities
ANS:
PTS: 1
REF: 10
PTS: 1
REF: 12-13
PTS: 1
REF: 13
13. A database has ____ if the data in it satisfies all established integrity constraints.
a. redundancy
c. data independence
b. integrity
ANS:
d. database design
PTS: 1
REF: 13
PTS: 1
REF: 13
15. A(n) ____ frees programmers who write database access programs from having to engage in
mundane data manipulation activities, such as adding new data and deleting existing data.
a. DBA
c. entity
b. E-R diagram
d. DBMS
ANS:
PTS: 1
REF: 13
16. A person who is in charge of a database within an organization is often called the database
____.
a. writer
c. designer
b. administrator
d. controller
ANS:
PTS: 1
REF: 13
17. A good ____ should provide an opportunity for users to incorporate integrity constraints when
they design the database.
a. database administrator
c. E-R diagram
b. DBA
d. DBMS
ANS:
PTS: 1
PTS: 1
REF: 13
c. attributes
d. clusters
REF: 13
19. ____ is a property that lets you change the structure of the database without requiring you to
change the programs that access the database.
a. Data independence
c. Database design
b. Integrity constraint
d. Data dependence
ANS:
PTS: 1
REF: 14
PTS: 1
REF: 14
1. When you use a name containing a space in Access SQL, you must ____.
a. enclose it in square brackets
c. precede it by an asterisk
b. enclose it in quotation marks
d. precede it by a question mark
ANS:
PTS: 1
REF: 73
PTS: 1
REF: 75
PTS: 1
REF: 75
4. When used after the word SELECT, the ____ symbol indicates that you want to include all
fields in the query results in the order in which you described them to the DBMS when you
created the table.
a. &
c. $
b. *
d. #
ANS:
PTS: 1
REF: 77
PTS: 1
REF: 88
PTS: 1
REF: 88
7. In Access SQL, the ____ is used as a wildcard to represent any individual character.
a. asterisk (*)
c. percent sign (%)
b. underscore (_)
d. question mark (?)
ANS:
PTS: 1
REF: 89
PTS: 1
REF: 92
PTS: 1
REF: 95
PTS: 1
REF: 96
c. no output is produced
d. one line of output is produced for each group
ANS:
PTS: 1
REF: 97
12. In order to make changes to existing data in a table, you would use the ____ command.
a. DELETE
c. SELECT
b. CHANGE
d. UPDATE
ANS:
PTS: 1
REF: 104
PTS: 1
REF: 104
14. You can save the results of a query as a table by including the ____ clause in the query.
a. INTO
c. UPDATE
b. INSERT
d. DELETE
ANS:
PTS: 1
REF: 105
PTS: 1
REF: 81
16. Based on the code above, list the number, name, and balance of all customers with balances
greater than or equal to $1,000 and less than or equal to $5,000.
a. SELECT CustomerNum, CustomerName, Balance FROM Customer WHERE Balance
BETWEEN 1000 AND 5000 ;
b. SELECT CustomerNum, CustomerName, Balance FROM Customer WHERE Balance >
1000 ;
c. SELECT CustomerName, Balance FROM Customer WHERE Balance BETWEEN 1000
AND 5000 ;
d. SELECT CustomerNum, CustomerName FROM Customer WHERE Balance BETWEEN
1000 AND 5000 ;
ANS:
PTS: 1
REF: 85
17. Based on the code above, list the number, name, and available credit for all customers with
credit limits that exceed their balances.
a. SELECT CustomerNum, CustomerName AS AvailableCredit FROM Customer WHERE
CreditLimit>Balance ;
b. SELECT CustomerNum, CustomerName, CreditLimit AS AvailableCredit FROM
Customer WHERE CreditLimit>Balance ;
c. SELECT CustomerNum, CustomerName, Balance AS AvailableCredit FROM Customer
WHERE CreditLimit>Balance ;
d. SELECT CustomerNum, CustomerName, CreditLimit-Balance AS AvailableCredit
FROM Customer WHERE CreditLimit>Balance ;
ANS:
PTS: 1
REF: 86-87
18. Based on the code above, list the number, name, and complete address of every customer
located on a street that contains the letters Oxford.
a. SELECT CustomerNum, CustomerName, Street, City, State, Zip FROM Customer
WHERE Street LIKE ?Oxford ;
b. SELECT CustomerNum, CustomerName, Street, City, State, Zip FROM Customer
WHERE Street LIKE %Oxford% ;
c. SELECT CustomerNum, CustomerName, Street, City, State, Zip FROM Customer
WHERE Street LIKE @Oxford@ ;
d. SELECT CustomerNum, CustomerName, Street, City, State, Zip FROM Customer
WHERE Street LIKE Oxford ;
ANS:
PTS: 1
REF: 88
19. Based on the code above, list the number, name, street, and credit limit of all customers.
Order the customers by name within descending credit limit.
a. SELECT CustomerNum, CustomerName, Street, CreditLimit FROM Customer SORT
BY CreditLimit DESC, CustomerName ;
b. SELECT CustomerNum, CustomerName, Street, CreditLimit FROM Customer SORT
BY CreditLimit ASC, CustomerName ;
c. SELECT CustomerNum, CustomerName, Street, CreditLimit FROM Customer ORDER
BY CreditLimit DESC, CustomerName ;
d. SELECT CustomerNum, CustomerName, Street, CreditLimit FROM Customer ORDER
BY CreditLimit ASC, CustomerName ;
ANS:
PTS: 1
REF: 90-91
20. Based on the code above, for each sales rep, list the rep number, the number of customers
assigned to the rep, and the average balance of the reps customers. Group the records by rep
number and order the records by rep number.
a. SELECT RepNum, AVG(Balance) FROM Customer GROUP BY RepNum ORDER BY
RepNum ;
b. SELECT RepNum, COUNT(*), AVG(Balance) FROM Part GROUP BY RepNum
ORDER BY RepNum ;
c. SELECT RepNum, COUNT(*), AVG(Balance) FROM Customer GROUP BY RepNum
ORDER BY RepNum ;
d. SELECT RepNum, COUNT(*) FROM Customer GROUP BY RepNum ORDER BY
RepNum ;
ANS:
PTS: 1
REF: 96
21. Based on the code above, list the descriptions of all parts that are located in Warehouse 3 and
for which there are more than 20 units on hand.
a. SELECT Description FROM Part WHERE Warehouse=3 AND OnHand>20 ;
b. SELECT Description FROM Part WHERE Warehouse=3 OR OnHand>20 ;
c. SELECT Description FROM Part WHERE Warehouse=3 ;
d. SELECT Description FROM Customer WHERE Warehouse=3 AND OnHand>20 ;
ANS:
PTS: 1
REF: 82
22. Based on the code above, list the descriptions of all parts that are located in Warehouse 3 or
for which there are more than 20 units on hand, or both.
a. SELECT Description FROM Customer WHERE Warehouse=3 AND OnHand>20 ;
b. SELECT Description FROM Part WHERE Warehouse=3 OR OnHand>20 ;
c. SELECT Description FROM Part WHERE Warehouse=3 ;
d. SELECT Description FROM Part WHERE OnHand>20 ;
ANS:
PTS: 1
REF: 83
23. Based on the code above, list the descriptions of all parts that are not in Warehouse 3.
a. SELECT Description FROM Customer WHERE NOT Warehouse=3 ;
b. SELECT Description FROM Part WHERE Warehouse=4 ;
c. SELECT Description FROM Part WHERE Warehouse>3 ;
d. SELECT Description FROM Part WHERE NOT Warehouse=3 ;
ANS:
PTS: 1
REF: 84
24. Based on the code above, find how many parts are in item class HW.
a. SELECT SUM(*) FROM Part WHERE Class=HW ;
b. SELECT COUNT(*) FROM Part WHERE Class=HW ;
c. SELECT COUNT FROM Part WHERE Class=HW ;
d. SELECT COUNT* FROM Part WHERE Class=HW ;
ANS:
PTS: 1
REF: 92-93
PTS: 1
REF: 77
26. Based on the code above, list the name of every student whose Zip code is 10113.
a. SELECT FirstName, LastName WHERE Zip=10113 ;
b. SELECT FirstName, LastName FROM Student WHERE Zip=10113 ;
c. SELECT FirstName, LastName FROM Student WHERE Zip=10113
d. SELECT * FROM Student WHERE Zip=10113 ;
ANS:
PTS: 1
REF: 78
27. Based on the code above, find the name of the student whose ID is 1167.
a. SELECT FirstName, LastName FROM Course WHERE StudentID=1167 ;
b. SELECT FirstName, LastName FROM Part WHERE StudentID=1167 ;
PTS: 1
REF: 79-80
28. Based on the code above, change the Zip code of the student with ID 11433 to 14455.
a. UPDATE Student SET Zip=14455 ;
b. UPDATE Student SET Zip WHERE StudentID=11433 ;
c. UPDATE Student IN Zip=14455 WHERE StudentID=11433 ;
d. UPDATE Student SET Zip=14455 WHERE StudentID=11433 ;
ANS:
PTS: 1
REF: 104
PTS: 1
REF: 105
PTS: 1
REF: 155
2. The fact that column B is functionally dependent on column A can be written as ____.
a. A B
c. A B
b. B A
d. B A
ANS:
PTS: 1
REF: 157
PTS: 1
REF: 157
4. The ____ is a column (or collection of columns) A such that all other columns are
functionally dependent on A and no subcollection of the columns in A has this property.
a. functional key
c. primary key
b. composite key
d. declared key
ANS:
PTS: 1
REF: 159
ANS:
PTS: 1
REF: 161
6. A(n) ____ is a column or collection of columns on which all columns in the table are
functionally dependent.
a. index key
c. major key
b. candidate key
d. special key
ANS:
PTS: 1
REF: 161
PTS: 1
REF: 161
PTS: 1
REF: 161
PTS: 1
REF: 161
10. If there is more than one possible choice for the primary key, and one of the possibilities is
chosen to be the primary key, the other choices are referred to as ____.
a. surrogate keys
c. intelligent keys
b. alternate keys
d. contributory keys
ANS:
PTS: 1
REF: 161
11. From all the ____ keys, one is chosen to be the primary key.
a. alternate
c. natural
b. candidate
d. normal
ANS:
PTS: 1
REF: 161
PTS: 1
PTS: 1
REF: 161-162
c. a part of the primary key
d. not a part of the primary key
REF: 163
PTS: 1
REF: 163
15. Second normal form can be defined as a table that is in first normal form but that contains no
____.
a. partial dependencies
c. nonkey columns
b. alternate keys
d. interrelation constraints
ANS:
PTS: 1
REF: 164
PTS: 1
REF: 164
17. ____ normal form has an additional condition that the only determinants the table contains are
candidate keys.
a. First
c. Third
b. Second
d. Fourth
ANS:
PTS: 1
REF: 167
18. A table is in fourth normal form when it is in third normal form and there are no ____.
a. alternate dependencies
c. multivalued dependencies
b. partial dependencies
d. primary dependencies
ANS:
PTS: 1
REF: 175
19. To convert a table to fourth normal form, split the third normal form table into separate tables,
each containing the column that ____ the others.
a. determines
c. defines
b. multidetermines
d. identifies
ANS:
PTS: 1
REF: 175
20. The conversion of an unnormalized table to first normal form requires the removal of ____.
a. determinants
c. nonkey columns
b. interrelation constraints
d. repeating groups
ANS:
PTS: 1
REF: 177