B.tech Cse II-II-dbms (MR 22) Mid1-Objective Question Bank 04-04-2024
The document is a question bank for the II Mid Examination in Database Management Systems at Malla Reddy Engineering College. It contains a series of objective questions covering various concepts related to databases, including definitions, properties, and operations. The questions are designed for students in Computer Science and Information Technology disciplines.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
17 views10 pages
B.tech Cse II-II-dbms (MR 22) Mid1-Objective Question Bank 04-04-2024
The document is a question bank for the II Mid Examination in Database Management Systems at Malla Reddy Engineering College. It contains a series of objective questions covering various concepts related to databases, including definitions, properties, and operations. The questions are designed for students in Computer Science and Information Technology disciplines.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10
MALLA REDDY ENGINEERING COLLEGE (AUTONOMOUS)
II B.Tech– II Sem (MR 22)
I Mid Examination Objective Question Bank (Common for CSE,CSE(CS,AIML,DS),CSIT & IT)
Subject: Database Management Systems
Objective Questions:
1 DBMS is a collection of ______that enables user to create and maintain a database. [ ]
a) Keys b) Translators c) Program d) Language activity 2 In a relational schema, each tuple is divided into fields called [ ] a) Relations b) Domains c) Queries d) All the above 3 In an ER model, _______ is described in the database by storing its data [ ] a) Entity b) Attribute c) Relation ship d) Notation 4 Which of the following are the properties of entities? [ ] a) Groups b) Table c) Attributes d) schema 5 ______defines the structure of a relation which consists of a fixed set of attribute-domain pairs [ ] a) Instance b) Schema c) Program d) Super key 6 _______ is a full form of SQL [ ] a) Standard query language b) Sequential query language c) Structured query language d) Server query language 7 A relational database developer refers to a record as a) A criteria b) A relation c) A tuple d) An attribute 8 The collection of information stored in a database at a particular moment is called as______ [ ] a) Schema b) Instance of data base c) Data domain d) Independent 9 A ______ is used to define overall design of database [ ] a) Schema b) Application program c) Data definition language d) Code 10 DBMS helps achieve [ ] a) Data independence b) Centralized control of data c) Neither A or B d) Both A and B 11 A database Management System is [ ] a) Collection of interrelated data b) Collection of programs to access data c) Collection of data describes one particular enterprise d) All the above 12 Which of the following is not a level of data abstraction? [ ] a) Physical level b) Critical level c) Logical level d) View level 13 Disadvantages of file system to store data is [ ] a) Data redundancy and inconsistency b) Difficulty in accessing data c) Data Isolation d) All the above 14 In an entity-relationship diagram rectangles represents [ ] a) Entity sets b) Attributes c) Data base d) Tables 15 Data manipulation language enables users to [ ] a) Retrieval of information stored in data base b) Insertion of new information into the database c) Deletion of information form data base d) All the above 16 Which of the following is not a schema? [ ] a) Data base schema b) Physical schema c) Critical schema d) Logical schema 17 Which of the following is data base language [ ] a) Data definition language b) Data manipulation language c) Query language d) All the above 18 Which of the following is a data model [ ] a) Entity-relationship model b) Relational data model c) Object-based data model d) All the above 19 The attribute that can be divided into other attributes is called [ ] a) Simple attribute b) Composite attribute c) Multi-valued attribute d) Derived attribute 20 In an Entity-relationship diagram “Ellipses” represents [ ] a) Attributes b) Weak entity set c) Relationship sets d) Multi-valued attributes 21 In an Entity-relationship diagram “diamonds” represents [ ] a) Attributes b) Multi-valued attributes c) Weak entity set d) Relationship sets 22 One of the following is a valid record-based data model [ ] a) Object-oriented model b) Relational model c) Entity-relationship model d) None of the above 23 The level of data abstraction which describes how the data is actually stored is [ ] a) Conceptual level b) Physical level c) Logical level d) External Level 24 A data model is : [ ] a) Used to describe structure of a database b) Set of basic operations on database c) Both A and B d) None of these 25 DBA stands for [ ] a) Data Basic Access b) Data Base Access c) Data Bank Administration d) Data Base Administrator 26 Which database level is closest to the users? [ ] a) External b) Internal c) Physical d) Conceptual 27 A schema describes [ ] a) Record relationship b) Data elements c) Record and files d) All the above 28 An abstraction concept for building composite object from their component object is called: [ ] a) Specialization b) Normalization c) Generalization d) Aggregation 29 Manager’s salary details are hidden from the employee. This is [ ] a) Conceptual level data hiding b) Physical level data hiding c) External level data hiding d) None of these 30 Which one is lowest level data model? [ ] a) Physical data model b) Logical data model c) External data model d) None of these 31 Data items grouped together for storage purposes are called a [ ] a) Record b) Title c) List d) String 32 The conceptual model is [ ] a) dependent on hardware. b) dependent on software. c) dependent on both hardware and software . d) independent of both hardware and software. 33 An association between students and courses is: [ ] a) 1:1 relationship b) 1:M relationship c) M:M relationship d) None of these 34 A view of a database that appears to an application program is known as: [ ] a) Schema b) Subschema c) Virtual table d) None of these 35 The set of all possible values of data items is called: [ ] a) Domain b) Attribute c) Tuples d) None of these 36 ______ is a property that describes various characteristics of an entity [ ] a) ER diagram b) Column c) Relationship d) Attribute 37 ______ level describes what data is stored in the database and the relationships among the data [ ] a) Physical level b) Logical level c) Conceptual level d) None of the above 38 ______ denote derived attributes [ ] a) Double ellipse b) Dashed ellipse c) Square ellipse d) Ellipse with attribute name underlined 39 A ______is an association between entities [ ] a) Relation b) One to one c) Generalization d) Specialization 40 In which of the following is a single-entity instance of one type related to many entity instance of another type [ ] a) One to one relationship b) One to many relationship c) Many to many relationship d) Composite relationship 41 An advantage of the data base management approach is [ ] a) Data is dependent on programs b) Data redundancy increases c) Data is integrated and can be accessed by multiple programs d) None of the above 42 A relational database developer refers to a record as [ ] a) A criteria b) A relation c) A tuple d) An attribute 43 Data independence means [ ] a) Data is defined separately and not included in programs b) Programs are not dependent on the physical attributes of data c) Programs are not dependent on the logical attributes of data d) Both B and C 44 ER –model uses this symbol to represent weak entity set [ ] a) Dotted rectangle b) Diamond c) Doubly outlined rectangle d) None of these 45 DBMS helps in achieving [ ] a) Data independence b) Centralized control of data c) Neither A nor B d) Both A or B 46 What is a relationship called when it is maintained between two entities [ ] a) Unary b) Binary c) Ternary d) Quaternary 47 A set of possible data values is called [ ] a) Attribute b) Degree c) Tuple d) Domain 48 Which are the two ways in which entities can participate in a relationship? [ ] a) Passive and active b) Total and partial c) Simple and complex d) All the above 49 In ER-diagram generalization is represented by [ ] a) Ellipse b) Dashed ellipse c) Rectangle d) Triangle 50 In the relational model, the number of attributes and number of types in a relation are termed as______ and _______respectively [ ] a) Cardinality , domain b) Degree , cardinality c) Domain , degree d) Cardinality , degree 51 In________ the unmatched rows of second table are listed along with the common rows of both the tables. [ ] a) Left outer join b) Right outer join c) Full outer join d) Half outer join 52The keywords RESTRICT/CASCADE must always be used with____ [ ] a) Create b) Drop c) Alter d) Delete 53Cost of query processing is directly proportional to ____________ [ ] a) Number of disk access b) Number of cpu access c) Memory space d) Total number of records 54Query inside a query is known as ___________ [ ] a) Correlated query b) Nested query c) Interrelated query d) Query optimizer 55______operators merge the result set of two different queries into a single result set [ ] a) Set b) Aggregate c) Comparison d) Collation 56_____ Operator returns a result set that doesn’t contain any duplicate rows [ ] a) EXCEPT b) INTERSECT c) UNION ALL d) UNION 57______ Operator returns a value if an element is in given set, otherwise returns a value false [ ] a) EXISTS b) ALL c) IN d) ANY 58______operator followed by a column name returns the average value of all the values in the specified column [ ] a) COUNT b) SUM c) MAX d) AVG 59__________ operator removes duplicate rows from the final result set [ ] a) EXCEPT b) EXCEPT ALL c) INTERSECT d) INTERSECT[DISTINC] 60____uses equity operator to join the two relations [ ] a) Equi-join b) Outer join c) Natural join d) Full join 61It is possible to define a schema completely using [ ] a) VDL and DDL b) DDL and DML c) SDL and DDL d) VDL and DML 62Cartesian product in relational algebra is [ ] a) a Unary operator b) a Binary operator c) a Ternary operator d) not defined 63DML is provided for [ ] a) Description of logical structure of database. b) Addition of new structures in the database system. c) Manipulation & processing of database. system d) Definition of physical structure of database 64‘AS’ clause is used in SQL for [ ] a) Selection operation. b) Rename operation c) Join operation. d) Projection operation. 65Architecture of the database can be viewed as [ ] a) two levels b) four levels c) three levels d) One level 66In a relational model, relations are termed as [ ] a) Tuples b) Attributes c) Tables d) rows 67The database schema is written in [ ] a) DCL b) DDL c) HLL d) DML 68A primary key is combined with a foreign key creates [ ] a) Parent-Child relationship between the tables that connect them b) Many to many relationship between the tables that connect them c) Network model between the tables that connect them d) None of the above 69Count function in SQL returns the number of [ ] a) Values b) Distinct values c) Groups d) Columns 70The statement in SQL which allows to change the definition of a table is [ ] a) Alter b) Update c) Create d) select 71 ______ is a change to the database that activates the trigger [ ] a) Event b) Condition c) Action d) Assertion 72 ___ is a query or test that is run when the trigger is activated [ ] a) Event b) Condition c) Action d) Assertion 73Which of the following is not a part of a trigger description [ ] a) Event b) Condition c) Action d) Assertion 74 A trigger description contains ______ parts [ ] a) 2 b) 3 c) 4 d) 5 75 A database that has a set of associated triggers is called an ________ [ ] a) Active database b) Passive database c) Data warehouse d) Associated database 76 _____ clause is used for row-level triggers. [ ] a) FOR EACH ROW b) FOR ROW c) EACH ROW d) ROW 77 ___ is a procedure that is executed when the trigger is activated and it's condition is TRUE. [ ] a) Event b) Condition c) Action d) Assertion 78SQL is used for [ ] a) Data processing in batch mode b) Query for relational databases c) Dtp work d) Command line arguments 79 ____ , ______ keywords are used to refer to the values before and after modification [ ] a) Before, After b) Old, New c) Older, Newer d) Before, After 80 Which command is not used in DDL [ ] a) DROP b) REVOKE c) ROLLBACK d) COMMENT 81 Which command is not used in DCL. [ ] a) COMMIT b) GRANT c) ROLLBACK d) SET TRANSACTION 82 ____ keyword is used to associate a default value with a domain [ ] a) DEFAULT b) ANY c) UNKNOWN d) ALL 83 CHECK clause is used for constraints over ______ [ ] a) Two tables only b) single table only c) Three tables only d) Four tables only 84I n SQL __________ command we can use to sort the table. [ ] a) Group by clause b) having clause c) order by clause d) where clause 85Constraints not associated with any one table are called as _____ [ ] a) Associations b) Assertions c) Assistants d) Associated conditions 86 SQL is relationally [ ] a) Complete language b) Incomplete language c) Cant handle certain relations d) Sound language 87 SQL provides ___ special comparison operator to test whether a column value is null. [ ] a) ARE NULL b) NULL c) IS NULL d) NOTNULL 88When a column value is unknown or inapplicable, then it is treated as ___ in SQL [ ] a) Null b) Zero c) 1 d) Any value 89The number of unique values in the column A can be obtained by ___ [ ] a) COUNT ( [A] ) b) COUNT ( A ) c) COUNT ( [UNIQUE] A) d) COUNT( [DISTINCT] A) 90MAX ( A ) aggregate operator gives ________ [ ] a) Maximum value in column A b) Maximum value in row A c) Maximum value in row A and column A d) Maximum of table A 91We can disallow null values by specifying ___ as part of the field definition. [ ] a) NO NULL b) NOT NULL c) ! NULL d) != NULL 92 With SQL, how do you select all the records from a table named ''Persons'' where the value of the column ''FirstName'' is ''Peter''? [ ] a) SELECT [all] FROM Persons WHERE FirstName='Peter'. b) SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'. c) SELECT * FROM Persons WHERE FirstName='Peter'. d) SELECT * FROM Persons WHERE FirstName LIKE 'Peter'. 93The ___________ statement is used to add or drop columns in an existing table. [ ] a) DROP TABLE b) DELETE TABLE c) INSERT TABLE d) ALTER TABLE 94Which SQL statements used to update the data from databases? [ ] a) Save b) Update c) Modify d) Save as 95 I n SQL _________ command we can use to sort the table. [ ] a) Group by clause b) Having clause c) Order by clause d) Where clause 96A ____________ is a query that has another query embedded within it. [ ] a) Nested query b) Relational query c) Multi dimensional query d) Algebraic query 97 Employee (fname, minit, lname, ssn, bdate, address, sex, salary, superssn, dno) SQL query to retrieve the names of all employees who do not have supervisors? [ ] a) SELECT fname,lname FROM Employee WHERE superssn=0. b) SELECT fname,lname FROM Employee WHERE superssn=NULL. c) SELECT fname,lname FROM Employee WHERE ssn IS NULL. d) SELECT fname,lname FROM Employee WHERE superssn IS NULL. 98Correlated sub query is a [ ] a) Query evaluated once for the entire parent statement. b) Evaluated once for every row processed by the parent statement. c) Query evaluated once only. d) The query will never be evaluated. 99_________ keyword is used to eliminate duplicates in the result of a query. [ ] a) SELECT b) FROM c) WHERE d) DISTINCT 100Which operator stands for zero or more arbitrary characters in SQL query [ ] a) LIKE b) % c) _ d) ^ 101Functional dependency is represented by which of the following symbol [ ] a) → b) ^ c) + d) => 102_________are a set of rules, that when applied repeatedly, generates a closure of functional dependencies [ ] a) Armstrong's Axioms b) Relational Expressions c) quantifiers d) Relationships 103_________ is a systematic approach of decomposing tables to eliminate data redundancy and undesirable characteristics like Insertion, Update and Deletion anomalies [ ] a) Normalization b) Transaction c) Atomicity d) Durability 104 ________is a constraint between two sets of attributes from the database [ ] a) Redundancy b) Functional dependency c) Decomposition d) Recoverability 105The left hand side of the functional dependency is called [ ] a) determinant b) dependent c) closure d) None of the above 106The right hand side of the functional dependency is called [ ] a) determinant b) dependent c) closure d) None of the above 107A functional dependency X→Y is a ____ relationship between two sets of attributes X and Y of a given table T [] a) one-to-one b) many-to-many c) many-to-one d) None of the above 108If a functional dependency (FD) X → Y holds, where Y is a subset of X, then it is called [ ] a) Trivial Functional Dependency b) Non-Trivial Functional Dependency c) Completely non-trivial Functional Dependency d) None of the above 109If a functional dependency (FD) X → Y holds, where Y is not a subset of X, then it is called a [ ] a) Trivial Functional Dependency b) Non-Trivial Functional Dependency c) Completely non-trivial Functional Dependency d) None of the above 110If a functional dependency (FD) X → Y holds, where x intersect Y = Φ, it is said to be a [ ] a) Trivial Functional Dependency b) Non-Trivial Functional Dependency c) Completely non-trivial Functional Dependency d) None of the above 111_________ rule specifies if alpha is a set of attributes and beta is subset alpha, then alpha holds beta [ ] a) Reflexive rule b) Augmentation rule c) Transitivity rule d) Associative rule 112_________ rule specifies if a → b holds and b → c holds, then a → c also holds [ ] a) Reflexive rule b) Augmentation rule c) Transitivity rule d) Associative rule 113_________ rule specifies if a → b holds and y is attribute set, then ay → by also holds [ ] a) Reflexive rule b) Augmentation rule c) Transitivity rule d) Associative rule 114A Relation with redundancy can be refined by ________ using with smaller relations that contain the same information but without redundancy [ ] a) Decomposing it b) Updating it c) Inserting it d) Deleting it 115Which of the following one is not an example of integrity constraints [ ] a) Functional dependency b) Multivalued dependency c) Join dependency d) Multilevel dependency 116Which of the following one is not caused by redundancy problems [ ] a) Redundant storage b) Update anomalies c) Insertion anomalies d) Multivalued dependency 117 It may not be possible to store certain information unless some other, unrelated information is stored as well is called[ ] a) Redundant storage b) Insertion anomalies c) Deletion anomalies d) Update anomalies 118 If X→ Y holds, where y is a set of attributes, and there is some subset V of X such that V→ Y holds then X is a __[ ] a) Primary key b) Candidate key c) Super key d) Not a key 119X→ Y means [ ] a) X functionally determines Y b) Y functionally determines X c) X not functionally determines Y d) X functionally determines X 120 It may not be possible to delete certain information without losing some other, unrelated information as well is called [ ] a) Redundant storage b) Insertion anomalies c) Update anomalies d) Deletion anomalies 121The ________ of a set F of functional dependencies is the set of all functional dependencies logically implied by F[ ] a) Closure b) Associative c) Normalization d) None of the Above 122Which of the following one is an example of a integrity constraints [ ] a) Multilevel dependency b) Insertion dependency c) Multivalued dependency d) Deletion dependency 123Which one is a kind of integrity constraint that generalizes the concept of the key [ ] a) Multilevel dependency b) Multivalued dependency c) Lossless join d) Functional dependency 124If X→ YZ then X→ Y, and X→ Z are called _______ [ ] a) Decomposition b) Union c) Augmentation d) Transitivity 125Which of the following rule specifies, If X→ Y and X→ Z then X→ YZ [ ] a) Union b) Decomposition c) Composition d) None of the Above