* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download Final Exam Database Processing
Survey
Document related concepts
Entity–attribute–value model wikipedia , lookup
Tandem Computers wikipedia , lookup
Microsoft SQL Server wikipedia , lookup
Serializability wikipedia , lookup
Navitaire Inc v Easyjet Airline Co. and BulletProof Technologies, Inc. wikipedia , lookup
Extensible Storage Engine wikipedia , lookup
Ingres (database) wikipedia , lookup
Open Database Connectivity wikipedia , lookup
Microsoft Jet Database Engine wikipedia , lookup
Versant Object Database wikipedia , lookup
Relational model wikipedia , lookup
Concurrency control wikipedia , lookup
ContactPoint wikipedia , lookup
Transcript
Final Exam Database Processing Name: ________________________________________ Date:____________________ True/False Indicate whether the sentence or statement is true or false. (1 point each) ____ 1. Normalization works through a series of stages called abnormal forms. ____ 2. It is possible for a table in Second Normal Form (2NF) to exhibit transitive dependency, where one or more attributes may be functionally dependent on nonkey attributes. ____ 3. A table is in Third Normal Form (3NF) if it is in 2NF and it includes no transitive dependencies. ____ 4. A determinant is any attribute whose value determines other values within a row. ____ 5. The American National Standards Institute prescribes a standard SQL - the most recent version is known as SQL-99. ____ 6. All SQL commands must be issued on a single line. ____ 7. String comparisons are made from right to left. ____ 8. Date procedures are often more software-specific than most other SQL procedures. ____ 9. In a query if no rows are printed it is because the queries may be case sensitive. ____ 10. You can create a logical (virtual) table by using the CREATE VIEW command. ____ 11. In the detailed systems design phase, the designer starts the design of the system's processes. ____ 12. During the implementation phase, the hardware, the DBMS software, and application programs are developed. ____ 13. During the initial stages of the implementation phase, the system enters into a cycle of coding, testing, and debugging. ____ 14. Database performance is one of the most important factors in certain database implementations. ____ 15. To ensure consistency of the database, every transaction must begin with the database in a known unstable state. ____ 16. The phenomenon of uncommitted data occurs when two transactions are executed concurrently and the first transaction is rolled back after the second transaction has already accessed the uncommitted data violating the isolation property of transactions. ____ 17. Locking can take place at any of the following levels: database, table, page, row, or field. Lock granularity indicates the level of lock use. ____ 18. Two-phase locking defines how transactions acquire and relinquish locks. ____ 19. During the read phase, the transaction reads the database, executes the needed computations, and makes the updates to a private copy of the database values. ____ 20. One of the advantages of DDBMS is that the data are located near the "least demand" site. ____ 21. One of the disadvantages of DDBMS is greater danger of a single-point failure. ____ 22. Distributed processing does not require a distributed database, and a distributed database does not requires distributing processing. ____ 23. Both distributed processing and distributed databases require a network to connect all components. Page 1 of 8 Final Exam Database Processing ____ 24. The data processor is the software component residing on each computer that stores and retrieves data located at the site. ____ 25. The DDBMS must be communications-media-independent and be able to support several types of communications. ____ 26. The protocols determine how the distributed database system will ensure common database functions in a distributed system, such as concurrency control, security, backup, and recovery. ____ 27. Replicated data allocation will copy one or more copies of the database fragments and store them at several sites. ____ 28. A client is any process that requests specific services from server processes. ____ 29. When client and server processes reside on two or more independent computers on a network, the server can provide services for several clients. ____ 30. The ODBC middleware provides the applications programmer with a generic format for data access. Multiple Choice (1 point each) Identify the letter of the choice that best completes the statement or answers the question. ____ 31. SQL numeric data format is/are a. number(L,D). b. Integer. c. Smallint. d. Decimal (L,D). e. all of the above. ____ 32. The SQL command that lets you insert data into a table, one row at a time, is a. insert. b. select. c. commit. d. update. e. rollback. ____ 33. To select partial table contents you must use the command a. SELECT <column(s)> FROM <Table name> WHERE <item>; b. LIST <column(s)> FROM <Table name> WHERE <Conditions>; c. SELECT <column(s)> FROM <Table name> WHERE <Conditions>; d. LIST<column(s)> FROM <Table name> WHERE <Item>; Page 2 of 8 Final Exam Database Processing ____ 34. To create a query using a mathematical symbol to find all codes but code (21344) from the product table you must write it as a. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE <> 21344; b. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE <= 21344; c. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344; d. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE => 21344; ____ 35. In a query command to list all the rows in which the inventory stock dates occur on or after January, 2003 using XDB, OS/2 EE Database Manager, or IBM's main frame DB2, the command will be as follows a. SELECT P_DESCRIP, P_HAND, P_MIN, P_PRICE, P_INDATE FROM PRODUCT WHERE P_INDICATE >= '01/20/2002' b. SELECT P_DESCRIP, P_HAND, P_MIN, P_PRICE, P_INDATE FROM PRODUCT WHERE P_INDICATE >= #01/20/2002# c. SELECT P_DESCRIP, P_HAND, P_MIN, P_PRICE, P_INDATE FROM PRODUCT WHERE P_INDICATE >= '20-JAN-2002' d. SELECT P_DESCRIP, P_HAND, P_MIN, P_PRICE, P_INDATE FROM PRODUCT WHERE P_INDICATE >= {01-20-2002} ____ 36. The SQL syntax requirements for a list of a table contents for either V_CODE = 21344 or V_CODE 24288 would be a. SELECT P_DESCRIP, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE <= 24288 b. SELECT P_DESCRIP, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE => 24288 c. SELECT P_DESCRIP, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344 AND V_CODE = 24288 d. SELECT P_DESCRIP, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344 OR V_CODE = 24288 Page 3 of 8 Final Exam Database Processing ____ 37. ANSI-standard SQL allows the use of special operator in conjunction with WHERE clause. Such special operator used to define a range limit is a. between. b. null. c. like. d. in. e. exists. ____ 38. You want the contents of the PRODUCT table listed by P_Price in ascending order listing P_CODE, P_DESCRIPT, P_INDATE, and P_PRICE. The command will be a. SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT SEQUENCE BY P_PRICE; b. SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT LIST BY P_PRICE; c. SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT ORDER BY P_PRICE; d. SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT ASCENDING BY P_PRICE; ____ 39. The basic SQL aggregate function that gives the number or rows containing not null values for the given column is a. COUNT b. MIN c. MAX d. SUM e. AVG ____ 40. The command to join the PRODUCT (P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE and VENDOR (V_CODE) tables would be: a. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE <> VENDOR.V_CODE ORDER BY P_PRICE; b. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE = VENDOR.V_CODE ORDER BY P_PRICE; c. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE <= VENDOR.V_CODE ORDER BY P_PRICE; d. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE => VENDOR.V_CODE ORDER BY P_PRICE; Page 4 of 8 Final Exam Database Processing ____ 41. You cannot include transaction control SQL statements such as COMMIT or ROLLBACK within the trigger's PL/SQL code. Trigger(s) for Oracle is/are for a. auditing purposes (creating audit logs). b. automatic generation of derived column values. c. enforcement of business or security constraints. d. creating replica tables for backup purposes. e. all of the above. ____ 42. The performance of an information system depends on a. database design and implementation. b. application design and implementation. c. administrative procedures. d. a & b e. a, b & c ____ 43. The user requirements, Existing system evaluation, and Logical system design are part of the a. planning phase. b. analysis phase. c. detail System Design phase. d. implementation phase. e. maintenance phase. ____ 44. The database contents are loaded using a variety of methods and devices such as a. a customized user programs. b. a database interface programs. c. conversion programs that import the data from a different file structure. d. using batch programs, and database utility. e. all of the above. ____ 45. Creating the conceptual design, DBMS software selection, creation of the logical design, and creating the physical design are part of the a. database initial study phase. b. database design phase. c. implementation and loading phase. d. testing and evaluation phase. e. operation phase. ____ 46. Installing the DBMS, creating the database, and loading or converting the data are part of the a. b. c. d. e. database initial study phase. database design phase. implementation and loading phase. testing and evaluation phase. operation phase. ____ 47. Testing, fine-tuning, and evaluating the database and its applications are part of the a. b. c. d. e. database initial study phase. database design phase. implementation and loading phase testing and evaluation phase. operation phase. Page 5 of 8 Final Exam Database Processing ____ 48. During the Entity-Relationship modeling process, the designer must a. making decisions about adding attributes to satisfy processing requirements. b. making decisions about the placement of foreign keys in 1:1 relationships. c. avoid unnecessary ternary relationships. d. all of the above e. none of the above ____ 49. A lock that locks the entire table preventing access to any row by a transaction while another transaction is using the table is referred to as a a. database-level lock. b. table-level lock. c. page-level lock. d. row-level lock. e. field-level lock. ____ 50. A lock that specifically reserves access for the transaction that locked the object is known as a(n) a. shared lock. b. exclusive lo.ck c. binary lock. d. two-phase lock. e. deadlocks. ____ 51. A lock that defines how transactions acquire and relinquish locks is known as a(n) a. shared lock. b. exclusive lock. c. binary lock. d. two-phase lock. e. deadlocks. ____ 52. The techniques to control deadlocks are a. deadlock prevention. b. deadlock detection. c. deadlock avoidance. d. all of the above. e. none of the above. ____ 53. The decentralized database is especially desirable because centralized database management is subject to problem(s) such as: a. b. c. d. performance degradation, and high costs. reliability problem, and performance degradation. a only a and b ____ 54. What feature is a DDBMS disadvantage? a. b. c. d. data are located near the "greatest demand" site growth facilitation reduced operating cost lack of standards Page 6 of 8 Final Exam Database Processing ____ 55. What feature is a DDBMS disadvantage? a. processor independence b. user-friendly interface c. security d. faster data access ____ 56. What feature is a DDBMS advantage? a. reduced operating cost b. complexity of management and control c. increased storage requirements d. increased training cost ____ 57. The general forces that drive the move to client/server computing are a. the changing business environment and the need for enterprise data. b. the demand for end-user productivity gains based on the efficient use of data resources. c. a only d. b only e. a and b ____ 58. The client/server architectural principles for process distribution are translated into the following server process benefits: a. location independence and resource optimization. b. scalability, interoperability, and integration. c. a only d. b only e. a and b ____ 59. The OSI network reference model that establishes and controls communication between applications, ensures security, delivery, and communications recovery is referred to as the _______ layer. a. application b. presentation c. session d. transport e. network ____ 60. The OSI network reference model that provides error recognition and recovery, insuring that all data are properly delivered, and adds transport-layer-specific ID is referred to as the _______ layer. a. b. c. d. e. presentation session transport network data-link Page 7 of 8 Final Exam Database Processing Essay ( numbers 61,62,63,64 are worth 5 points each, number 65 worth 20 points) 61. Explain the Boyce-Codd Normal Form (BCNF). 62. Explain the term "first normal form" & “third normal form”. 63. What is a consistent database? 64. What is transaction Durability? 65. Explain the process of creating a Relational Database solution given a specific business problem? Please use examples from the two projects that you used. Describe the process that you went through and how you can use these processes to solve other database design problems. (the steps and supporting documentation that would be used to present your solution) Page 8 of 8