You are on page 1of 21
DBMS Questions | Latest DBMS MCO Objective Questions ear aia) Cee Dare cect Start Complete Exam Preparation raed CaaS) pacar aa kad ay Preset D> Download App Question1: Vv. In an ER diagram, multivalued attributes are representedby- 1. Rectangle 2. Dashed ellipse 3, Double ellipse 4. Diamond Tee ee imeem he ria Under One Roof [eres Answer(( Option 3 : Double ellipse DBMS Question! DetailedSolution Concept: Entity symbol Description trong Entityhas its own attribute. They will Entity falso have a primary key, distinguishing each currence of the entity. roux enuty leak entities depend on some other entity Itype ssociative entities relate theinstances of everal entity types > >| leak Relationships are connec tionsbetween ja weak entityand its owner. Attributesare characteristics of an entity,a iany-tomany relationship, or a one-to-one lationship [Multivalued attributes are those that are can Jtake on more than one value. Darunet guilt Jean be calculated from related attribute Derived attributes are attributes whose value alues Ra eee nee “apy Start Complete Exam Preparation we cal} Pru Pens i) Pas Dien eres ras Download App Question2: View this Question Ohine > WATE the following is a benefit of using a database systemtomanage customer data? |, Reduced data redundancy 2. Enhanced data security 3. Improved data consistency 4 Allof the above Answer (Detailed Solution Belov) Option 4: All of the above DBMS Question2 DetailedSolution e The correctanswer is All of the Above. © Key Points i Database systems offerseveral benefits for managing customer data, including: + Reduced data redundancy: By storing customer data in a centralized location, database systems minimize the duplication of ensuring that only one version of each customer record exists. This reduces therisk of errors jnconsistencies. + Enhanced data security. Database-Systems provide powerfulsecurity mechanisms to protect sensitive customer information. Thesemechanisms include user authentication, access contro|, and data encryption. + Improved data consistency: Database systems enforce data integrity constraints to maintain the consistencvand accuracy of customer data Theseconstraints nreventinvalid or inconsistent. data from being enteredinto the system. + Streamlined data retrieval and analysis: Database systems enable efficient data retrieval and analysis, allowing businesses to gain valuable insights from their customer data. This can inform marketing campaigns, product development, and customer service initiatives. Thereforeusing a database system tomanage customer data of fersa range of benefits that support effectivecustomer relationship management and business growth. 5 Teese ac Start Complete Exam Preparation CBee eRe oss eur are eas DU Question Bank Download App aad ey Question3: View this Question Online > Whatis the use of intersectionoperator? 1, Togetall the tuples : 2. Toget the differenttuples. ss! 3. Tocet therepeating tuples AD veer x5: Answer (Detailed Solution Below) Option 4: To get the common tuples DBMS Questions DetailedSolution The correctanswer is To getthecommon tuples © Key Points Ne ee Sn ee aN eS eee ee Ce Se ee ee rae retrieve the common tuples or elements that existin both datasets Table 1: Name ‘Alex Bob . Carl oo Carl Dan, Max’ Table 2 Here, ‘Cart is common to both TableAand TableB Hence, the intersection operation results in a new table with just this common tuple This conceptof intersection operator stems from settheoryin mathematics, where intersection of two sets A and B is the set that contains all elements of A that also belong to B (or equivalently, all elements of B that also belong to A), but no other elements. Tee ea hari Start Complete Exam Preparation Ree eos eee Practice felted MasterClasses Cesta DB Download App Question4: View this Question Onine > Consider the following two relations student and enroll Student(Rolino, Name, Marks) Enroll( course_no, course_name) Ok ‘Studentrelation has with m tuple and enroll relation withn tuples. if we apply the natural join between ‘student and enroll then the resultant relation has. how many tuples? 1. min(m.n) 2 m+n ™ 4. max(m,n) 5. None of the above Answer (Detailed Solution Below) Option 3:mxn DBMS Question4 DetailedSolution The correctanswer is option3. Concept: The given deta, Student(Rolino, Name, Merks) Enroll course_no, course_name) ot Siudentrelation has with m tuple and enroll relation with oO Natural Join: RO ANATURALJOINis a JOIN operation that cre join clause for you based on the common columns in the two tables being joingd_ Comi Ins are columns that have the same name in both tables. Note: When there is no attribute in common then thenatural join retums the cartesian product of both relations Explanation: Student(Rolino, Name, Marks) Enrol course_no, course_name) Here both relations thereis no common attribute then the natural join returns the cartesian product of both relations. So it returns them xn tuples Hence the correctansweris m xn. i India’s #1 Learning Platform CCercUar roc Start Complete Exam Preparation cal} Daily Live Proctic i) Dearie) Dien eres ras aor Download App Question5: View this Question Onine > got Comprehension: . Data Warehouses (OLAP) and Transactional Systems (OLTP)have distinct roles in the world of business data management f OLTP(Online Transaction Processing) Is a class of systems that manages transaction-based applications that can be used for data entry, retrieval, and straightforward real-time processing Transactional systems are typically optimized for operational speed and efficacy, Theyare founded on the premise of the entity‘elationship model and largely employ a normalized schema to ensure data invariants and reduce data redundancy. The staple of an OLT Psystemis its ability to maintain irrency control, which ensures that correctresults for concurrent operations are generated while oo data integrity. Typical examples of OLTPsystems involve ERP (Enterprise Resource Pp }) systems, ATM (Automatic TellerMachine) transactions, and online booking systems. On the other hand, OLAP (Online Analytical Processing) functions on a differentparadign -being primarily responsible for the storage and management of business data for complex analysis. OLAP systems employ denormalized data schema to enhance the speedof complex queries and contain both historical and consolidated data. Theaim of OLAP is to answer multidimensional queries swiftly, thereby assisting the business in making strategic decisions Its capabilities allow the creation of complex reports that show patterns and trends over specific time periods, enabling forecasting, data mning, and complex analytical calculations Which systemprimarily ensures concurrency control and quick transactional operations? 1, OLAP 2 OLTP 3. ERP 4. Both OLTPand OLAP 5. None of the above se Answer (Detailed Solution Below) : Option 2: OLTP. DBMS Question5 DetailedSolution ~ The correctanswer is OLTP © Key Points + OLTP (Online TransactionProcessingyystems primarily ensure concurrency control and quick transactional operations. OLTPsystemsare designed tohandle a large number of short, simple transactions in real-time. Theyare optimized for data modifications (insert, update, delete) and are characterized by high transaction volumes, low-latency response times, and concurrent access by multiple users. + On the otherhand, OLAP (Online Analytical Processing) systemsare designed forcomplex queties and cata analysis. They are optimized for read-ntensive operations and are used for business intelligence and decision support. OLAP systems are not typically focused on quick transactional operations or concurrency control. Top DBMS MCO Objective Questions eee ar Start Complete Exam Preparation Pars fm (e] ace as ecole ores ec para Cea ceca Download App Questions @k View this Question Online > Fifth-Generation languages are the____. 1. Assembly lanquages 2. Machine languages 3 oT based languages A tach ised ence: 5. None of the above Answer (Detailed Solution Below) Option 3: constraint based languages ( DBMS Question6 DetailedSolution The correctanswer is constraintbasedlanguages. © Key Points Programming languages are classified in variety of ways and generationis one of them. * Generation are fst es as. First-generation, second-generation, third-generation, fourth- generetion, fifth-genera + Fifth generation language is applied to logic and constrairt-basedlanguageslike Prolog & + Assembly languages — Second-generation + Machine languages — First-generation + High Level language — Third-generation ene eer eros Start Complete Exam Preparation Pod Practice irre eee Question? View this Question Online > Find minimum number of tablesrequired for converting the following entityrelationship diagram into relational database? pn ae «eo? Answer (Detailed Solution Below) Option 3:3 DBMS Question7 DetailedSolution Rules for finding @ minimum number of tablesrequired for an ER diagram: «oy 1) A strong entity with single or composite attributesrequires one table. 2) A strong entity with multivalued attributes requires two tables. "'S 3) In thecase of many to many relations betweentwo entities, 3 t lired. Explanation: Thereis one to many relationships betwee vio tables are required for two entities. But, entity R; contans multivalued attrigute 8, x! fh one table for this is also needed Herewehave 1 to Many relation quirestwotables. AttnibuteB being multi-valued, we need to remove the multi-valued attribute B toconvert the gven entityrelationship diagram into @ relational database As relational database do not allow multi-valued attrbutes. We have to introduce a new table. So, thenumber of tablesis as below RI RI2R2 A table for B (Multi-valued attribute) So, a total of 3 tables are required for the given entityrelational diagram, So, option 3 is the correctanswer. India’s #1 Learning Platform - Start Complete Exam Preparation ee Reet Paes ered DS tieenrey Cres ear Download App Questions View this Question Online Consider the relation X(P, Q, R, S, T,U) with the following setof functional dependencies Eaf {PR} {8,7}, {PSU} — (Q, R} } ‘Which of the following is the trivial functional dependency in F*, where Ft is closure of F? 1 (8) (1) za {PR Z en 3. {PS} - {8} 4. {PSU} — (Q) Answer (Detailed Solution Below) Option 3: {PS} — {S} DBMS Question8 DetailedSolution Concept: The closure of F, denotedas F*, is the set of all regular FD, that can be derived from. For trivial functional dependency, LetA and be two setsconsists of attributes of a relation A.B 2B Explanation: Option 1 {PR} — {8,7} ren Nota trivial functional dependency Option 2 {PR} {RT} @RZIRT) Nota trivial functional dependency Option: {PS} — {8} {P.S)> 18) Itis a trivial functional dependency Option 4 {FS,U) ~ 19 Psu) 2 (Q Nota trivial functional dependency NOTE: > .. superset 2 — not superset India’s #1 Learning Platform Start Complete Exam Preparation rues ered nes Cres ear Download App Question? Which symbol denote derived attributes in ER Model? a“ 2 Dashed ellipse 3. Squared ellipse 4 Ellipse with attributename underlined Answer (Detailed Solution Below) Option 2: Dashed ellipse DBMS Question9 DetailedSolution Concept: View this Question Online An attribute that can be derived from other attributes of the entity typeis known as a derived atte derived attrinuteis representedby a dashed eclipse. Explanation: ER ER eR nN Option 1: Double ellipse. O | Multivalued attribute ~ Option 2: Dashed ellipse Derived attribute Option 4: Ellipse with attnbutename underlined Key attribute & Tee Ee Start Complete Exam Preparation ene fae eerie haa ores eric Ete Download App Question1O ) ‘View this Question Online > An ER model of @ database consists of entity types A and B, Theseare connectedby a relationship R which does not haveits own attribute. Under which one of the following conditions, can the relational table for R be merged with that of A? 1. Relationship Ris one-tomany and the participation of Ain Ris total 2. Relationship is one-tomany and the participation of A in Ris partial 3. Reletionship Ris many-to-one and theparticipation of A in Ris total 4. Relationship Ris many-to-one and theparticipation of A in Ris partial Answer (Detailed Solution Below) Option 3 : Relationship Ris many-toone and the participation of Ain Ris total. DBMS Question10 DetailedSolution Concept: Totalparticipation: It specifies that each entityin the entitysetmust compulsorily participate in at least one relationship instance in that relationship set. Partial participation: It specifies that each entityin, the entityset may or may not participate in the relationship instance in that relationship set. = > Explanation: <7 A Pit B | Inone tomany or many to one relation, the relation between two entitiesis merged on themany side with total participation. As, itis given that relationship R doesn't have its own attributes, So, it must be combined with entity A. So, the relation must be many toone and there should be totalparticipation of Ain R India's #1 Learning Platform Elam eel (ce Cee) Reo Dan urea Pear fo ea a i Serer ny Cres ears Download App a ery Questiont1 View this Question Online > Consider the relation scheme R = (E,F,G, H |, J, K, L, M, N) aid thesetof functional dependencies ((E, Fh = (G}, (F} = (1, J} {E Hb — {KL}, {K} — (M}{L} ~ {NH} on R What is the key for R? 1. 46, FY = 2 {6 RH) a 4 {E Answer (Detailed Solution Below) Option 2: {E. FH} DBMS Question11 DetailedSolution Function Dependencies: {(E Fh = {6}, {Fb = 41, J}, {EH} = (KL), 1) — (M), {L} — (NE Option 1 (E, F} {E F}'=(E FG, 1, J} Since K, L, Mand Nis missing in RHS -.itis not a key ‘Ako, {E} cannot bea key because {F} is Subset of{E, F} Option 2. {E, F, H} {EB H)={E BH,G, vel sitisa key Key for Ris {E, F H). ImportantPoints: Inrelation algebra, key is primary key or candidate key. {E, FH, K, L}is super key. Teeter Start Complete Exam Preparation Py eaT ous Cine DCS tierce fenestra Exons cs > Download App Ree a ers Questioni2 View this Question Online > Consider the following statements$1 and S2 about oaks data model St: Arelation scheme can have at most o! S2: A foreign key in a relation schem: e used toreferto tuples of R Which one of the followin Na) correct? 1 sie mda 2 S} and S2 are true, 3. BothS1 and S2 are false. 4 S1is falseand S2is true Answer (Detailed Solution Below) Option 3: BothS1 and S2are false DBMS Question12 DetailedSolution cy Answer Option 3 "S G Concept O Foreignkey is thesetof attnibutesin a particular rel ies are belongs toprimary key of same relation or other relation Explanation Statement! A relation schem ave o> foreign key. Thereis no such restrictionon Phy number of Foreign keys a particular relation can have A relation can have as many number of Foreignkeys as Required So this statementis false Statement2; foreign key in a relation scheme R cannot be used to refer to tuples of R. Thereis no such constraint. Foreign key can be used to refer toprimary key of the same relation Self- referencincel: ‘neare ovamnlec of ach foroinn kav So thie ctatamontic alen falca So option 3is the correctanswer, India’s #1 Learning Platform Start Complete Exam Preparation riod os i Et Cres ear B Download App Questiont3 Consider the following Entity Relationship Diagram (ERD), mode 1. Person (NID, Nama) 2. Qualification (NID, ExamID, QualifiedDate) 3. Exam (ExamiD, NID, ExamName) 4. Exam (ExamiD, ExamName) Answer (Detailed Solution Below) Option 3: Exam (ExamID, NID, ExamName) View this Question Online wine following possible relations will not hold if the above ERD is mapped into a relation DBMS Question13 DetailedSolution The correctanswer is ‘option3". ° EXPLANATION: On converting the given ER diagram into the relational: table, we will get three tables- Entity A... Primarykey Person Person( Name, NID) NID Exam |Exam( ExamiD, ExamName ) ExamID Includes primary key of Qualification( NID. ExamiD. | person glexam te NID, QualifiedDate ) ExamID Qualification Hence, Exam (ExamiD, NID, ExamName)is nota possiblerelation. & Teen Cra cu ere cers Slam ety) Ce Le) ered aa Cree arg & Quizzes Download App Question4 6 View this Question Online > For a multi-processor architecture, In which protocol a write transactionis forwarded to only thoseprocessors that are known to possessa copy of newly altered cache line? 1. Snoopy bus protocol — 2 oA... protocol 3. Directorybased protocol 4. None of the above Answer (Detailed Solution Below) Option 3 : Directorybased protocol f DBMS Question14 DetailedSolution + Directorybased cache coherenceis 2 typeof cache coherence mechanism, where directories are used to manage cai in place. of snoopy methods due to their scalability. + For a multi-processol tecture, in the directorybased protocol, a write transaction is forwarded to only tho: cessors that are known to possess a copy of newly altered cache line + Itcan be used to targetboth the performance and scalability of directory systems. + Bus snooping methods scale poorly due to the use of broadcasting. & Tee Ee Start Complete Exam Preparation ene cee Rees Do tsce ree eos QuestiontS View this Question Online > Which one of the following is used to representthe supporting many-one relationships of a weak entity setin an entityrelationship diagram? 1. Diamonds with double/bold border, 2. Rectangles with double/bold border 3 _" double/bold border 4, Qyals that contain underlined identifiers Answer (Detailed Solution Below) Option 1: Diamonds with double/bold border DBMS Question15 DetailedSolution Concept. An entityset which has determined an attnbute or set of attributes to be a primary strong entityset fan entityset does not have enough attributes to form a prmary ke\ weak entityset Explanation: O In E-R diagram, themany-to-one relationship with x setis representedby diamond with double borders. XS a) Relationship Weak entity set set ImportantPoint The relationship with weak entity set would be representedby diamonds with double/bold borders The weak entity setitselfwould be representedby rectangle with double/bold border.

You might also like