You are on page 1of 8

FU-HCM Database Advanced You are hereFU-HCM/ AD/ Quizzes/ K thi: Final Exam - Ngy hi: 19.10.

.10.2013/ Attempt 1 K thi: Final Exam - Ngy thi: 19.10.2013 Page: 1 2 (Next) Question 1 Marks: 1 Which of the following is a strategy for developing an Object-Oriented DBMS ? Choose one answer. a. All of the others b. Embed OODB language constructs in a conventional host language. c. Extend existing object-oriented programming language. d. Extend existing database language with object-oriented capabilities. Question 2 Marks: 1 Which one is not a task in conceptual database design phase? Choose one answer. a. identify entity types b. identify integrity constraints c. identify attributes and attribute domains d. identify relations Question 3 Marks: 1 Which of the task below is not included in conceptual database design p hase ? Choose one answer. a. Identify entity and relationship types. b. Identify how to implement the business process rules. c. Validate the conceptual data model against user transactions, and review th e conceptual data model with user. d. Identify and associate attributes with entity or relationship types. Question 4 Marks: 1 With a large database system, we should distribute data across disks to decrease disk I/O time. Which of the following is not a the basic principle of distributing the data across disks ? Choose one answer. a. The operating system files should be separated from the database files b. The main database files should be separated from the index files c. The recovery log file should be separated from the rest of the database d. None of the others Question 5 Marks: 1 Select incorrect statement Choose one answer. a. Static query optimization method does not need the datab ase statistics. b. The static query optimization method is better than the dynamic query optim ization method. c. Two methods for executing the query optimization are dynamic query optimiza tion and static query optimization. d. The dynamic query optimization method is better than the static query optim ization method. Question 6 Marks: 1 A nested relation can be represented in Object-Relational DBMS by using ________ Choose one answer. a. UDR (User-Defined Routine) b. UDT (User-Defined Type) c. Recusion d. All of the others Question 7 Marks: 1 Select incorrect statement Choose one answer. a. With synchronous replication, when the source data is up dated, the other replica can be updated later periodically. b. With synchronous replication, even if one or more sites that hold replicas are unavailable, the update transaction may complete successfully. c. With asynchronous replication, even if one or more sites that hold replicas are unavailable, the update transaction may complete successfully. d. With asynchronous replication, when the source data is updated, the replica

ted data is updated immediately. Question 8 Marks: 1 The technique for query optimization that orders the operations in a qu ery called _________ approach. The other technique that compares different strat egies based on their relative costs and selects the one that minimizes resource usage, it is called ________ approach Choose one answer. a. index-based ... value-based b. heuristic-based ... cost-based c. sequence-based ... resource-based d. sequence-based ... cost-based Question 9 Marks: 1 Which of the following is not a object-oriented feature that being adde d in ORDBMS ? Choose one answer. a. polymorphism b. interface c. inheritance d. encapsulation Question 10 Marks: 1 In a distributed environment, the algorithms based on 2-phase locking c an be classified as ________, primary copy, or distributed. Choose one answer. a. fragmentized b. centralized c. none of the others. d. secondary copy Question 11 Marks: 1 In the IBM's Distributed Relational Database Architecture, there are fo ur types of transaction. Those are: remote request, remote unit of work, distrib uted unit of work and _______ Choose one answer. a. distributed transaction b. distributed request c. local request d. local transaction Question 12 Marks: 1 Select correct statements A) CREATE TYPE PersonType (fName VARCHAR(15), lName VARCHAR(15)) INSTANTIABLE FINAL; SET p = NEW PersonType(); B) CREATE TYPE PersonType AS (fName VARCHAR(15), lName VARCHAR(15)) NOT INSTANTIABLE NOT FINAL; SET p = NEW PersonType(); C) CREATE TYPE PersonType AS (fName VARCHAR(15), lName VARCHAR(15)) NOT INSTANTIABLE FINAL; SET p = NEW PersonType(); D) CREATE TYPE PersonType AS (fName VARCHAR(15), lName VARCHAR(15)) INSTANTIABLE NOT FINAL;

SET p = NEW PersonType(); Choose one answer. a. A) b. B) c. C) d. D) Question 13 Marks: 1 The dead lock can be prevented by using _________ Choose one answer. a. rigorous-2PL protocol b. conservative-2PL protocol c. strict-2PL protocol d. none of the others Question 14 Marks: 1 To create a subtype, the user must have ________ privilege on any userdefined type that referenced within the new subtype. Choose one answer. a. UNDER b. REFERENCE c. All of the privileges d. USAGE Question 15 Marks: 1 Select incorrect statement Choose one answer. a. In heterogeneous distributed DBMS, sites may run differe nt DBMS products. b. None of the others. c. A distributed DBMS may be classified as homogeneous or heterogeneous. d. Designing and managing heterogeneous distributed database is easier than ho mogeneous distributed database. Question 16 Marks: 1 _________ is a language that provides the programmer with the ability t ransparently to preserve data across successive executions of a program, and eve n allows such data to be used by different programs. Choose one answer. a. Functional Programming Language b. Object-Oriented Programming Language c. Persistent Stored Module (SQL/PSM). d. Persistent Programming Language Question 17 Marks: 1 To maintain the integrity of data caused by denormalization, the ______ _ can be used Choose one answer. a. all of the others b. trigger c. batch reconciliation d. application transaction Question 18 Marks: 1 At a time, each Department is managed by only one Manager, and we want to keep track of historical data (about the manager of department). The relation ship between Department entity and Manager entity should be presented as _______ in ER diagram Choose one answer. a. 1:1 (one-to-one) b. 1:n (one-to-many) c. n:1 (many-to-one) d. n:n (many-to-many) Question 19 Marks: 1 When a _______ attribute is stored in database, it is immediately avail able for accessing. So that, beside storage overhead for storing it, we be incur red a additional overhead to keep it _______ with other attributes from which it is derived. Choose one answer. a. multivalued ... consistent b. derived ... consistent c. derived ... correspond

d. multivalued ... correspond Question 20 Marks: 1 How do you represent a 1:* (one-to-many) unary relationship in a relati onal data model ? Choose one answer. a. This relationship is represented by two relations, in wh ich the foreign key of a relation references to the primary key of another relat ion. b. This relationship is represented by a new associative relation whose primar y key consists of the primary key attributes of the participating entity types. c. This relationship is represented by a relation, in which the primary key al ways has at least two attributes. d. This relationship is represented by a recursive foreign key whose values re ference the primary key values of the same relation. Question 21 Marks: 1 Which of following statement is correct? Choose one answer. a. The disjoint superclass/subclass relationship be represe nted by 'Or' b. The nondisjoint superclass/subclass relationship be represented by 'And' c. The disjoint constraint only applies when a superclass has more than one su bclass. d. The disjoint constraint only applies when a superclass has only one subclas s. Question 22 Marks: 1 After translating ER data model into relational data model, we should v alidate the groupings of attributes in each relation by using the rules of _____ _. The purpose of ______ is to ensure that the set of relations has a minimal an d yet sufficient number of attributes necessary to support the data requirements of the enterprise. Choose one answer. a. business logic ... normalization b. integrity constraint ... business logic c. normalization ... normalization d. business logic ... integrity constraint Question 23 Marks: 1 Which of following statement is not correct ? Choose one answer. a. Each relation in high normal-form is poorly representati on of 'real world' entity b. The process of normalization generally produces a database schema with smal l relations (each realtion has a few attributes). c. Insert, update and delete operations on database in high normal-form is eas y. But to get a sufficient information, a join operation must be taken on many r elations. d. None of the others Question 24 Marks: 1 Which schedule below is conflict serializable schedule? Choose one answer. a. None of the others b. {read(T1, x), write(T2, x), write(T2, y), write(T1, y)} c. {write(T1, x), write(T2, x), read(T2, y), write(T1, y)} d. {write(T2, x), write(T1, x), write(T2, y), write(T1, y)} Question 25 Marks: 1 In general, data replication enhances the performance of ______ operati ons and increases the availability of data to read-only transactions. However, _ _____ transactions incur greater overhead. Controlling concurrent updates by sev eral transactions to replicated data is more complex than in centralized systems . Choose one answer. a. write ... update b. update ... read c. read ... read d. read ... update Question 26

Marks: 1 In distributed query optimization, the Data Localization Layer gets inf ormation about distribution of data. By using its reconstruction algorithms, it replaces the global relations at the leaves of the relational algebra tree with ___________ Choose one answer. a. other optimized global relations b. other global relations. c. suitable relational algebra operations. d. suitable data fragments Question 27 Marks: 1 FDM - Functional Data Model is one of the simplest in the family of sem antic data models. In this model, the main modeling primitives are entities and __________ Choose one answer. a. functional dependencies b. functional relationships c. None of the others d. entity relationships Question 28 Marks: 1 Select correct statement Choose one answer. a. Paralle DBMS is a DBMS running across multiple processor s and disks that is designed to execute operations in parallel, whenever possibl e, in order to improve performance. b. Distributed DBMS is that the system consists of data that is physically dis tributed across a number of sites in the network. c. Distributed processing means that A centralized database that can be access ed over a computer network. d. All of the others. Question 29 Marks: 1 ________ is a language for defining the specifications of object types for ODMG-compliant systems, equivalent to the Data Definition Language (DDL) of traditional DBMSs. Thus, a Object-Oriented Database scheme can be defined by usi ng __________ Choose one answer. a. Object Query Language (OQL) b. Interface Definition Language (IDL) c. Object Definition Language (ODL) d. Object Model (OM) Question 30 Marks: 1 Which of the following statement is not correct to avoid of creating in dex ? Choose one answer. a. Avoid indexing an attribute or relation that is frequent ly updated. b. Avoid indexing attributes that consist of long character strings. c. Avoid indexing on small relation. d. Avoid indexing an attribute if the query will retrieve a significant propor tion (for example 25%) of the tuples in the relation. Question 31 Marks: 1 The built-in collections in ODMG Object Model are: set, bag, list, arra y, and _________ Choose one answer. a. double-list b. collection c. dictionary d. multi-set Question 32 Marks: 1 In 2-phase commit protocol, which of the following is NOT a state of a particippant ? Choose one answer. a. COMMITED b. COMPLETED c. INITIAL d. ABORTED Question 33 Marks: 1 _________ is the number of transactions that the system can be processe

d in a given time interval. It is a factor can be used to measure the efficiency of the system. Choose one answer. a. Transaction count b. Transaction history c. Transaction throughput d. Transaction cost Question 34 Marks: 1 Which of concurrent control method can be used to avoid deadlock? Choose one answer. a. Timestamping b. 2-phase locking protocol c. None of the others d. 2-phase commit protocol Question 35 Marks: 1 What problems might not arise from vertically partitioning a relation? Choose one answer. a. The violations of third normal form will lead to anomali es. b. None of the others c. Partitioning is usually not transparent to programmers, who will have to wr ite more complex programs due to the violations of third normal form. d. Duplication of data across the partitions will use more storage space than data stored in normalized relations. Question 36 Marks: 1 ________ can cause _______ problem. This problem occurs when two (or mo re) transactions are each waiting for locks to be released that are held by the other. Choose one answer. a. None of the others b. concurrent protocol ... overlock c. 2PL protocol ... deadlock d. 2PL protocol ... livelock Question 37 Marks: 1 Which of the statement below is not correct ? Choose one answer. a. None of the others. b. The ER model was developed for the purposes of understanding data requireme nts and business rules about the data, not structuring the data. c. The relational data model is a form of logical data model. d. An ER data model is not a relational data model. Question 38 Marks: 1 During logical database design, we should use _______ concepts as a qua lity check for the relations that are obtained from translating ER diagrams. Choose one answer. a. partition b. none of the others c. normalization d. denormalization Question 39 Marks: 1 Which of the following statement is not correct for creating secondary index ? Choose one answer. a. Add a secondary index on attributes involved in built-in aggregate functions b. Add a secondary index on attributes that are frequently involved in : selec tion or join criteria, ORDER BY, GROUP BY c. Create seconadry indexes for all small relations d. Add a secondary index to a foreign key if it is frequently accessed Question 40 Marks: 1 Generalization and specialization entities are used to represent for __ _________ relationship Choose one answer. a. existence-dependent b. composition c. none of the others d. recursive Question 41

Marks: 1 In database design, there is a bottom-up approach process, this process defines universal entity type from a set of particular entity types by identify ing their common characteristics. What is this process ? Choose one answer. a. normalization b. denormalization c. generalization d. specialization Question 42 Marks: 1 In 2-phase commit protocol, which of the following is NOT a state of th e coordinator ? Choose one answer. a. COMMITED b. COMPLETED c. DECIDED d. WAITING Question 43 Marks: 1 Select INCORRECT about Object Query Language (OQL) Choose one answer. a. None of the others. b. OQL aggregate functions can be applied within SELECT clause or to result of SELECT operation. c. OQL provides declarative access to the object database using SQL-like synta x. d. OQL does not provide explicit update operators, but leaves this to operatio ns defined on object types. Question 44 Marks: 1 The first step of physical database design is to identify all base ____ ____. In this step, the designer must to define the relations and all characteri stics of the attributes such as: domain and _______ on the domain, default value , ... Choose one answer. a. relations ... constraints b. tables ... tables c. constraints ... triggers d. relations ... triggers Question 45 Marks: 1 Select incorrect statement Choose one answer. a. An execution of the relational algebra tree consists of executing an internal node operation whenever its operands are available and the n replacing that internal node by the relation that results from executing the o peration. b. The relational algebra tree represents the input relations of the query as leaf nodes of the tree, and represents the relational algebra operations as inte rnal nodes. c. The order of execution of operations starts at the root node to the leaf no des. d. A relational algebra tree is a tree data structure that corresponds to a re lational algebra expression. Question 46 Marks: 1 The attribute is chosen as primary key of an entity should not have the characteristic below : Choose one answer. a. Preferably multi-valued. b. No change over time. c. Preferably numeric-valued. d. Uniquely identify each entity instance. Question 47 Marks: 1 Select INCORRECT statement about OMG - Object Management Group Choose one answer. a. The primary aims of OMG are promotion of object-oriented approach and Development of standards in which location, environment, language, and other characteristics of objects are completely transparent to other object s. b. The OMG is a international nonprofit-making industry consortium founded in 1989 to address the issues of object standards.

c. The OMG is not a recognized standard group unlike the ISO - International O rganization for Standardization. d. None of the others Question 48 Marks: 1 Which of the implementation methods for replication ensures atomicity f eature of an transaction ? Choose one answer. a. All of the others b. Snapshot update c. Transactional update d. Database trigger Question 49 Marks: 1 Consider ER diagram containing superclass/subclass relationship with an optional participation constraint and a disjoint constraint. How to translate i t to relational model? Choose one answer. a. Create only one relation represented for all. b. Create one relation represented for superclass and many relations, one repr esented for each subclass. c. None of the others. d. Create two relations, a relation represents for the superclass and another relation represents for all subclasses. Question 50 Marks: 1 In distributed database environment, four types of data fragmentation a re : horizontal fragment, vertical fragment, mixed fragment and ________ Choose one answer. a. partial derived fragment b. vertical derived fragment c. full derived fragment d. horizontal derived fragment Page: (Previous) 1 2

You might also like