Download Database management system 360 ques and more Essays (university) Advanced Calculus in PDF only on Docsity!
Database Management System (DBMS)
Questions 1 to 10
- A collection of data designed to be used by different people is called a/an (a) Organization (b) Database (c) Relationship (d) Schema (e) None of the above.
- Which of the following is the oldest database model? (a) Relational (b) Deductive (c) Physical (d) Network (e) Hierarchical.
- Which of the following schemas does define a view or views of the database for particular users? (a) Internal schema (b) Conceptual schema (c) Physical schema (d) External schema (e) Outer schema.
- Which of the following is an attribute that can uniquely identify a row in a table?
(a) Secondary key (b) Candidate key (c) Foreign key (d) Alternate key (e) None of the above.
- Which of the following is the process of selecting the data storage and data access characteristic of the database? (a) Logical database design (b) Physical database design (c) Testing and performance tuning (d) Evaluation and selecting (e) External database design.
- Which of the following terms does refer to the correctness and completeness of the data in a database? (a) Data security (b) Data constraint (c) Data independence (d) Data model (e) Data integrity.
- The relationship between DEPARTMENT and EMPLOYEE is a
(a) One-to-one relationship (b) One-to-many relationship (c) Many-to-many relationship (d) Many-to-one relationship (e) None of the above.
- A table can be logically connected to another table by defining a (a) Super key (b) Candidate key (c) Primary key (d) Unique key (e) Common attribute.
- If the state of the database no longer reflects a real state of the world that the database is supposed to capture, then such a state is called (a) Consistent state (b) Parallel state (c) Durable state (d) Atomic state (e) Inconsistent state.
- Ensuring isolation property is the responsibility of the
(a) Recovery-management component of the DBMS (b) Concurrency-control component of the DBMS (c) Transaction-management component of the DBMS (d) Buffer management component in DBMS (e) Query processor in DBMS.
Answers
- Answer : (b) Reason: A collection of data designed to be used by different people is called a data base.
(d) Transaction management (e) None of the above.
- A schedule where the operations of each transaction are executed consecutively without any othe interference from other transactions is called (a) Non-serial schedule (b) Serial schedule (c) Recoverable schedule (d) Non-recoverable schedule (e) Concurrent schedule.
- Which of the following is not a deadlock handling strategy? (a) Deadlock prevention (b) Timeout (c) Deadlock detection and recovery (d) Deadlock annihilation (e) None of the above.
- Which of the following does refer to the size of the data item chosen as the unit of protection by a concurrency control program? (a) Granularity (b) Lock (c) Starvation (d) Timestamp (e) Time based.
- Which of the following hashing techniques does allow a hash file to expand and shrink its number of buckets dynamically without needing a directory? (a) Linear hashing (b) Extensible hashing (c) Internal hashing (d) External hashing (e) Non-linear hashing.
- Which of the following indexes is based on the values being uniformly distributed using a mathematical function? (a) Ordered index (b) Hashed index (c) Dense index (d) Sparse index (e) Secondary index.
- A join in which the joining condition is based on equality between values in the common columns is called (a) Equi-join (b) Uni-lateral join (c) Natural join (d) Both (a) and (c) above (e) Both (b) and (c) above.
- A type of query that is placed within a WHERE or HAVING clause of another query is called (a) Master query (b) Query (c) Superquery (d) Multi-query (e) Subquery.
- The entity integrity rule states that (a) No primary key attribute can be null (b) Referential integrity must be maintained across all entities (c) Each entity must have a primary key (d) A primary key must have only one attribute (e) Foreign key attribute can be Null.
Answers
- Answer : (a) Reason: A transaction the completes its execution is said to be Committed.
- Answer : (c) Reason: The process of managing simultaneous operations on the database without having them interfere with one anothe Concurrency control.
- Answer : (b) Reason: A schedule where the operations of each transaction are executed consecutively without any other interference fr other transactions is called Serial schedule.
- Answer : (d) Reason: Deadlock annihilation is NOT a deadlock handling strategy.
- Answer : (a) Reason: Granularity refer to the size of the data item chosen as the unit of protection by a concurrency control program.
- Answer : (b) Reason: Extensible hashing techniques does allow a hash file to expand and shrink its number of buckets dynamically with needing a directory.
- Answer : (b) Reason: Extensible hashing techniques does allow a hash file to expand and shrink its number of buckets dynamically with needing a directory.
- Given following figure is an example of mapping which type of relationship?
(a) First (b) Second (c) Unary (d) Ternary (e) Binary.
- A candidate key must satisfy all of the following conditions EXCEPT (a) The key must uniquely identify the row (b) The key must indicate the row’s position in the table (c) The key must be nonredundant
(d) Each nonkey attribute is functionally dependent (e) One of the primary key.
- A relation that contains no multivalued attributes and has nonkey attributes solely dependent on the primary key, but contains transitive dependencies is in which normal form? (a) First (b) Second (c) Third (d) Fourth (e) Fifth.
- A functional dependency between two or more nonkey attributes is called a
(a) Partial functional dependency (b) Partial nonkey dependency (c) Transitive dependency (d) Partial transitive dependency (e) Non transitive dependency.
- Which of the following technique is an alternative to log based recovery?
(a) Check points (b) Locks (c) Page based (d) Recovery with current transactions (e) Shadow paging.
- DBMS periodically suspends all processing and synchronizes its files and journals through the us of
(a) Checkpoint facility (b) Backup facility (c) Recovery manager (d) Database change log (e) Shadow paging.
Answers
- Answer : (b) Reason: A named set of SQL statements that are considered when a data modification occurs are called triggers
- Answer : (c) Reason: Timestamp based protocol ensures conflict serializability.
- Answer : (b) Reason: Hashed file is easiest to update.
- Answer : (b) Reason: When a regular entity type contains a multivalued attribute, one must Create two new relations, one containing multivalued attribute.
- Answer : (d) Reason: The given mapping is an example of ternary relationship of Patient Treatment with three entities, viz., Pati Physician and Treatment.
- Answer : (b) Reason: A candidate key (i) must uniquely identify the row (ii) must indicate the row’s position in the table (iii) must be non-redundant and (iv) (iv) One of the primary key. A candidate key does not indicate the row’s positon in the table. Hence option (b) is the answer.
- Answer : (b) Reason: A relation that contains no multivalued attributes and has non-key attributes solely dependent on the primary key, contains transitive dependencies is in second normal form.
- Answer : (c) Reason: A functional dependency between two or more non-key attributes is called a transitive dependency.
- Answer : (e) Reason: Shadow paging technique is an alternative to log based recovery.
- Answer : (a) Reason: DBMS periodically suspends all processing and synchronizes its files and journals through the use of Checkp facility.
- Data management is a discipline that focuses on (a) The management of end users (b) The proper generation, storage, and retrieval of data (c) The help items to be used by end users (d) The proper generation, storage, and retrieval of information (e) The management of data bases.
Reason : DBMS mainly focuses on the proper generation, storage, and retrieval of data
- Answer : (a)
Reason : Query language is used to interact with the database
- Answer : (d)
Reason: Relational data base helps us to design the data base in a easier manner.
- Answer : (c)
Reason : Data reports is not a function of DBMS
- Answer : (e)
Reason : The main important advantage of hierarchical data base model is conceptual simplicity, security, independence, integ
- Answer : (a)
Reason: Most widely used conceptual model is the E-R model.
- Answer : (d)
Reason : Conceptual model represents the global view of the data
- Answer : (c)
Reason: Physical model operates at the lowest level of abstraction.
- Answer : (a)
Reason : Composite attribute can be further divided into additional attributes
- Answer : (e)
Reason: All primary key entries are unique.
- A super key is any key that uniquely identifies each (a) Entity uniquely (b) Object in a table (c) Table (d) Structure in a table (e) Column uniquely.
- A table can be logically connected to another table by defining a (a) Hyperlink (b) Common attribute (c) Primary key (d) Candidate key (e) Super Key.
- A primary key that consists of more than one field is called a (a) Composite key (b) Secondary key (c) Group key (d) All of the above (e) None of the above.
- Which of the following statements concerning the primary key is true? (a) All primary key entries are unique (b) The primary key may be null (c) The primary key is not required for all tables (d) The primary key data does not have to be unique (e) For every primary key there must be a foreign key.
- In the context of a database table, the statement "A determines B" indicates that (a) Knowing the value of attribute A you can not look up the value of attribute B (b) You do not need to know the value of attribute A in order to look up the value of attribute (c) Knowing the value of attribute B you can look up the value of attribute A (d) Knowing the value of attribute A you can look up the value of attribute B (e) None of the above.
- A super key that does not contain a subset of attributes that is itself a super key is called a (a) Candidate key (b) Primary key (c) Super key (d) Secondary key (e) Foreign key.
- A table that displays data redundancies yields ____________ anomalies. (a) Update (b) Insertion (c) Deletion (d) All of the above (e) None of the above.
- A table is in the Fourth Normal Form (4NF) if (a) All attributes must be dependent on the primary key, and must be dependent on each other (b) All attributes must be dependent on the primary key, but must be independent of each other (c) No row can contain two or more multivalued facts about an entity (d) A and C (e) B and C.
- A table where all attributes are dependent on the primary key and are independent of each other, and no row contains two or more multivalued facts about an entity, is said to be in (a) 1NF (b) 2NF (c) 3NF (d) 4NF (e) BCNF.
- The basic SQL aggregate function that gives the number of rows containing not null values for the given column is (a) MIN (b) COUNT (c) MAX (d) SUM (e) AVG.
Answers
- Answer : (a)
Reason : Super key is any key that uniquely identifies each entity uniquely
- A condition that occurs when two transactions wait for each other to unlock data is known as a(n) (a) Shared lock (b) Exclusive lock (c) Binary lock (d) Two-phase lock (e) Deadlock.
- _______ means that data used during the execution of a transaction cannot be used by a second transaction until the first one is completed. (a) Serializability (b) Atomicity (c) Isolation (d) Time stamping (e) Durability.
- A unit of storage that can store one or more records in a hash file organization is denoted as (a) Buckets (b) Disk pages (c) Blocks (d) Nodes (e) Baskets.
- The file organization which allows us to read records that would satisfy the join condition by using one block read is (a) Heap file organization (b) Sequential file organization (c) Clustering file organization (d) Hash files organization (e) Index File.
- Which of the following is not true about B+ trees? (a) B+ tree index takes the form of balanced tree (b) Performance of B+ tree degrades as the file grows (c) Look-up in B+ tree is straightforward and efficient (d) Insertion and deletion in B+ tree is complicated but efficient (e) None of the above.
- The extent of the database resource that is included with each lock is called the level of (a) Impact (b) Granularity (c) Management (d) DBMS control (e) Recovery.
- DBMS periodically suspends all processing and synchronizes its files and journals through the use of (a) Checkpoint facility (b) Backup facility (c) Recovery manager (d) Database change log (e) Shadow Paging.
Answers
- Answer : (a)
Reason : SQL-99 is the most recent version of standard SQL prescribed by the ANSI
- Answer : (b)
Reason: Exists is used to check whether an attribute value is null or not in conjunction with the where clause.
- Answer : (a)
Reason: Data base-level lock prevents the use of any tables in the data base from one transaction while other transaction is be
- Answer : (e)
Reason : Deadlock occurs when two transactions wait for each other to unlock data
- Answer : (c)
Reason: i solation means that data used during the execution of a transaction can’t be used by a second transaction until the fir
- Answer : (a)
Reason: Buckets are used to store one or more records in a hash file organization.
- Answer : (c)
Reason: Clustering file organization allows us to read records that would satisfy the join condition by using one block read.
- Answer : (b)
Reason : The answer is evident
- Answer : (b)
Reason: The extent of the data base resource that is included with each lock is called the level of Granularity.
- Answer : (a)
Reason: DBMS periodically suspends all processing and synchronizes its files and journals though the use of Check point fac
- When converting one (1) to many (N) binary relationship into tables, the recommended solution is usually
(a) (^) One big table with all attributes from both entities included (b) (^) Foreign key added on the Child (many side) referencing the parent (c) (^) Foreign key added on the Parent (one side) referencing the child (d) (^) Foreign key added on both sides (both tables) (e) (^) Primary Key is added on one side.
- Which of the following is not correct?
(a) (^) Each entity must include some descriptive information (b) (^) If an object only requires an identifier, it should be classified as an attribute (c) (^) Each multivalued attribute should be classified as an entity even if it does not have any descriptive information (d) (^) The procedure of identifying entities and attaching attributes always leads to a unique solution (e) (^) Every entity is a collection of attributes.
- The property of transaction which ensures that either all operations of the transaction are reflected properly in the database or none, is called
(a) (^) Atomicity (b) (^) Durability (c) (^) Isolation (d) (^) Consistency (e) (^) Deadlock.
- Which of the following is correct?
(a) (^) Function dependencies are not associated with relations; they are based on the semantics of information that we are dealing with (b) (^) If a relation has no redundant information its attributes must not have any function dependencies (c) (^) Functional dependencies may be determined if we are given several instances of a relation (d) (^) The FDs that hold for attributes of a relation need not be satisfied at all times (e) (^) BCNF is a fourth normal form.
- An entity type whose existence depends on another entity type is called a _____ entity.
(a) (^) Strong (b) (^) Weak (c) (^) Codependent (d) (^) Variant (e) (^) Independent.
(e) (^) Middleware.
- In the context of a database table, the statement "A determines B" indicates that
Knowing the value of attribute A you can not look up the value of attribute B(a) (b) You do not need to know the value of attribute A in order to look up the value of attribute B Knowing the value of attribute B you can look up the value of attribute A(c) Knowing the value of attribute A you can look up the value of attribute B(d) None of the above.(e)
- Which of the following Relational Algebra operations require that both tables (or virtual tables) involved have the exact same attributes/data types?
Join, Projection, Restriction(a) Multiplication and Division(b) Union, Intersection, Minus(c) Minus, Multiplication, Intersection(d) Projection, Selection, Rename.(e)
- Which type of file is easiest to update?
Sequential(a) Hashed(b) Indexed(c) Clustered(d) Random.(e)
- A method that speeds query processing by running a query at the same time against several partitions of a table using multi processors is called
Multiple partition query(a) Perpendicular query processing(b) Parallel query processing(c) Query optimization(d) Query Execution.(e)
- The protocol that ensures conflict serializability is
Time stamp ordering protocol(a) Two phase locking protocol(b) Concurrency protocol(c) Tree protocol(d) Layered Protocol.(e)
- Indexes are created in most RDBMS’s to Provide a quicker way to store data(a) Decrease the amount of disk space utilized(b) Provide rapid, random and sequential access to base-table data(c) Increase the cost of implementation(d) Decrease the cost of implementation.(e)
Answers
- Answer : (b) Reason: Data integrity is a component of the relational data model included to specify business rules to maintain the integrity of data when they are manipulated
- Answer : (e) Reason: A null value is created or represented by Pressing the Enter key without making a prior entry of any kind
- Answer : (c) Reason: A functional dependency between two or more non-key attributes is called transitive dependency
- Answer : (a) Reason: top-down approach is a classical approach to database design
- Answer : (d) Reason: Knowing the value of attribute A you can look up the value of attribute B.
- Answer : (c) Reason: n relational algebra Union, Intersection, Minus operations require that both tables (or virtual tables) involved have the exact same attributes/data types.
- Answer : (b) Reason: Hash file is easiest to update
- Answer : (c) Reason: A method that speeds query processing by running a query at the same time against several partitions of a table using multi processors is called parallel query processing.
- Answer : (a) Reason: The protocol that ensures conflict serializability is time stamp ordering protocol.
- Answer : (c) Reason: Indexes are created in most RDBMS’s to Provide rapid, random and sequential access to base-table data
- 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 "*" (e) Counts all records and displays the value.
Integrity(a) Retention(b) Security(c) Granting the Privileges(d) Recovery.(e)
- Horizontal Fragmentation is
Divide the data up by logical groups of records(a) Divide the data up by logical groups of attributes(b) Divide the data up by logical groups of entities(c) Divide the data up by logical groups of files(d) Divide the data up by logical frames.(e)
- An index record appears for every search key value in the file is Secondary index(a) Dense index(b) Sparse index(c) Multi level index(d) B+ tree.(e)
- Which of the following type of index is automatically created when we do not specify? Bitmap(a) Balanced Tree Index(b) Binary Tree Index(c) Hashed(d) Sparse Index.(e)
Answers
81.Answer : (a) Reason: Select 82.Answer : (e) Reason: In an SQL statement where clause states the conditions for row selection 83.Answer : (b) Reason: How many different product descriptions are in the Product Table? 84.Answer : (d) Reason: Security
85.Answer : (b) Reason: Sub-query that is placed within a WHERE or HAVING clause of another query 86.Answer : (d) Reason: Two-phase lock is a procedure for acquiring the necessary locks for a transaction where all necessary locks are acquired before any are released 87.Answer : (e) Reason: Recovery is the one that normally is performed by DBMS, without the interference of the DBA 88.Answer : (a) Reason: Divide the data up by logical groups of records. 89.Answer : (b) Reason: Dense Index record appears for every search key valued in the file. 90.Answer : (b) Reason: Balanced Tree Index is automatically created when we do not specify.
- A database management software (DBMS) includes (a) Automated tools (CASE) used to design databases and application programs (b) A software application that is used to define, create, maintain and provide controlled access to user databases (c) Application programs that are used to provide information to users (d) Database that contains occurrences of logically organised data or information (e) Repository of meta data, which is a central storehouse for all data definitions, data relationships, screen and report formats and other system components.
- Making a change to the conceptual schema of a database but not affecting the existing external schemas is an example of (a) Physical data independence (b) Concurrency Control (c) Logical data independence (d) Functional dependency (e) Integrity Control.
- If K is a foreign key in a relation R1, then (a) Every tuple of R1 has a distinct value for K (b) K cannot have a null value for tuples in R (c) K is a key for some other relation (d) K is a Primary key for R (e) K is a Composite key for R1.
- Which of the following concept is applicable with respect to 2NF? (a) Full functional dependency (b) Partial dependency (c) Transitive dependency (d) Non-transitive dependency (e) Data independence.