
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































.
Q1. What is the primary purpose of a DBMS? A) To store data in spreadsheets only B) To replace all application software C) To manage data efficiently and provide controlled access D) To create hardware Q2. Which of the following is a disadvantage of file systems compared to databases? A) Data redundancy and inconsistency B) Simpler security C) Faster backup D) Lower cost always Q3. Data independence means: A) Data is stored only once B) Users cannot access data C) Programs are unaffected by changes in data storage structure D) Databases never change Q4. Which type of database stores data as documents, key-value pairs, or graphs? A) Hierarchical only B) NoSQL C) Relational only D) Flat file
Q5. A database system includes: A) Only tables B) Only SQL C) Data, hardware, software, users, and procedures D) Only hardware
Q6. In the relational model, data is organized as: A) Trees B) Tables with rows and columns C) Files D) Graphs only Q7. An entity in an ER model represents: A) A single value B) A foreign key only C) A real-world object or concept about which data is stored D) A query Q8. A primary key must be: A) Text only B) Nullable and duplicate C) Unique and not null D) Composite always Q9. A foreign key: A) Uniquely identifies a row in its own table B) Is always auto-increment C) References the primary key of another (or same) table D) Cannot be null ever Q10. Cardinality in ER modeling describes:
B) Enforce 1NF C) Always reduce storage D) Increase redundancy for performance in some read-heavy designs
Q16. A weak entity: A) Has its own strong primary key B) Cannot have attributes C) Cannot participate in relationships D) Depends on a strong entity for existence and identification Q17. A composite attribute: A) Is always multivalued B) Has no components C) Can be divided into sub-attributes D) Is always a key Q18. A multivalued attribute: A) Is always a primary key B) Can have multiple values for one entity instance C) Has one value per entity D) Cannot be stored Q19. In a ternary relationship: A) Only attributes participate B) No entities participate C) Two entities participate D) Three entities participate Q20. Generalization in EER is: A) Top-down splitting only B) Removing entities
C) Bottom-up grouping of subclasses into a superclass D) Creating foreign keys
Q21. Specialization is: A) Deleting subclasses B) Top-down process of defining subclasses from a superclass C) Bottom-up grouping D) Merging tables Q22. Disjoint constraint means: A) Subclasses have no attributes B) An entity can belong to at most one subclass C) Superclass has no key D) An entity can belong to multiple subclasses Q23. A category (union type) in EER: A) Represents a subclass that draws instances from multiple superclasses B) Has no key C) Is a relationship D) Is always disjoint
Q24. A functional dependency X -> Y means: A) Y determines X B) X determines Y C) X and Y are unrelated D) X is a foreign key Q25. A transitive dependency occurs when:
Q31. DML includes: A) DROP B) SELECT, INSERT, UPDATE, DELETE C) ALTER D) CREATE
Q32. A JOIN that returns only matching rows in both tables is: A) INNER JOIN B) LEFT JOIN C) CROSS JOIN D) FULL OUTER JOIN Q33. A LEFT JOIN returns: A) Only right table rows B) Cartesian product C) All rows from left table plus matches from right D) Only matching rows Q34. A subquery in WHERE that returns a single value is: A) Correlated always B) View C) Scalar subquery D) DDL Q35. UNION requires: A) No ORDER BY B) Same number of columns with compatible types C) Same table names D) Different column counts
Q36. Which function returns the number of rows? A) SUM() B) MAX() C) COUNT() D) AVG()
Q37. The first step in database design is typically: A) Requirements analysis / conceptual design B) Physical design C) Creating indexes D) Coding queries Q38. Logical design translates: A) Users into tables B) Conceptual model into a DBMS-specific model C) Queries into code D) Physical storage into conceptual Q39. Physical design concerns: A) Business rules only B) User requirements only C) ER diagrams only D) Storage structures, indexes, partitioning
Q40. ACID stands for: A) Accuracy, Consistency, Integrity, Data B) Atomicity, Consistency, Isolation, Durability C) Atomicity, Concurrency, Isolation, Data D) Access, Control, Integrity, Durability
Q46. A B-tree index is useful because: A) It stores images B) It removes keys C) It prevents joins D) It keeps data sorted for efficient search, insert, delete Q47. A clustered index: A) Determines physical order of data B) Is always secondary C) Stores data in random order D) Cannot be unique
Q48. A distributed database: A) Stores data on one machine only B) Has no replication C) Stores data across multiple sites connected by a network D) Cannot be queried Q49. Data replication improves: A) Only security B) Availability and read performance, at cost of consistency complexity C) Nothing D) Only storage cost Q50. CAP theorem states a distributed system can provide at most two of: A) Concurrency, Atomicity, Performance B) Availability, Speed, Cost C) Consistency, Accuracy, Privacy D) Consistency, Availability, Partition tolerance
Q51. A data warehouse is: A) Temporary cache B) Transactional OLTP system C) Subject-oriented, integrated, time-variant, nonvolatile collection for decision support D) File system Q52. OLAP is optimized for: A) High-volume single-row transactions B) Backup C) Analytical queries and multidimensional analysis D) File storage Q53. A star schema has: A) A central fact table connected to dimension tables B) Only dimension tables C) No fact table D) Only normalized tables
Q54. Which SQL query correctly returns all employees in department 11 ordered by name? A) DELETE FROM EMPLOYEE WHERE DeptID = 11; B) SELECT DeptID FROM EMPLOYEE; C) SELECT * FROM EMPLOYEE ORDER BY DeptID; D) SELECT * FROM EMPLOYEE WHERE DeptID = 11 ORDER BY Name;
Q59. What does the SQL statement 'SELECT COUNT() FROM PRODUCT WHERE Price > 100' return?* A) Number of products with Price greater than 100 B) Maximum price C) Average price D) All products
Q60. Which of the following best describes referential integrity? A) All attributes must be numeric B) Tables cannot have more than 10 rows C) Foreign key values must match existing primary key values or be null D) Primary keys must be auto-incremented
Q61. Consider table EMPLOYEE(EmpID, Name, DeptID). EmpID is the primary key. DeptID references DEPARTMENT(DeptID). What is DeptID in EMPLOYEE? A) Primary key B) Composite attribute C) Foreign key D) Candidate key only
Q62. Which SQL query correctly returns all employees in department 14 ordered by name? A) SELECT * FROM EMPLOYEE ORDER BY DeptID; B) SELECT * FROM EMPLOYEE WHERE DeptID = 14 ORDER BY Name; C) DELETE FROM EMPLOYEE WHERE DeptID = 14; D) SELECT DeptID FROM EMPLOYEE;
Q63. If relation R(A,B,C) has functional dependency A -> B, and A is a candidate key, what normal form violation (if any) does B have regarding 2NF? A) Partial dependency B) No 2NF violation, B is fully functionally dependent on the key C) Multivalued dependency D) Transitive dependency
Q64. In an ER diagram, a CUSTOMER places many ORDERS, and each ORDER belongs to one CUSTOMER. What is the cardinality from CUSTOMER to ORDER? A) M: B) M:N C) 1:M D) 1:
Q65. Which transaction property ensures that once committed, changes survive a system crash? A) Isolation
Q69. Consider table EMPLOYEE(EmpID, Name, DeptID). EmpID is the primary key. DeptID references DEPARTMENT(DeptID). What is DeptID in EMPLOYEE? A) Foreign key B) Composite attribute C) Primary key D) Candidate key only
Q70. Which SQL query correctly returns all employees in department 12 ordered by name? A) SELECT DeptID FROM EMPLOYEE; B) SELECT * FROM EMPLOYEE WHERE DeptID = 12 ORDER BY Name; C) SELECT * FROM EMPLOYEE ORDER BY DeptID; D) DELETE FROM EMPLOYEE WHERE DeptID = 12;
Q71. If relation R(A,B,C) has functional dependency A -> B, and A is a candidate key, what normal form violation (if any) does B have regarding 2NF? A) Multivalued dependency B) No 2NF violation, B is fully functionally dependent on the key C) Transitive dependency D) Partial dependency
Q72. In an ER diagram, a CUSTOMER places many ORDERS, and each ORDER belongs to one CUSTOMER. What is the cardinality from CUSTOMER to ORDER?
Q73. Which transaction property ensures that once committed, changes survive a system crash? A) Durability B) Atomicity C) Consistency D) Isolation
Q74. Which SQL clause is used to group rows that have the same values in specified columns for aggregation? A) HAVING B) ORDER BY C) GROUP BY D) WHERE
Q75. What does the SQL statement 'SELECT COUNT() FROM PRODUCT WHERE Price > 100' return?* A) All products B) Number of products with Price greater than 100 C) Maximum price D) Average price
B) No 2NF violation, B is fully functionally dependent on the key C) Partial dependency D) Multivalued dependency
Q80. In an ER diagram, a CUSTOMER places many ORDERS, and each ORDER belongs to one CUSTOMER. What is the cardinality from CUSTOMER to ORDER? A) M:N B) 1:M C) M: D) 1:
Q81. Which transaction property ensures that once committed, changes survive a system crash? A) Atomicity B) Consistency C) Isolation D) Durability
Q82. Which SQL clause is used to group rows that have the same values in specified columns for aggregation? A) GROUP BY B) HAVING C) ORDER BY D) WHERE
Q83. What does the SQL statement 'SELECT COUNT() FROM PRODUCT WHERE Price > 100' return?* A) Average price B) Maximum price C) All products D) Number of products with Price greater than 100
Q84. Which of the following best describes referential integrity? A) Foreign key values must match existing primary key values or be null B) Tables cannot have more than 10 rows C) All attributes must be numeric D) Primary keys must be auto-incremented
Q85. Consider table EMPLOYEE(EmpID, Name, DeptID). EmpID is the primary key. DeptID references DEPARTMENT(DeptID). What is DeptID in EMPLOYEE? A) Foreign key B) Primary key C) Candidate key only D) Composite attribute
Q86. Which SQL query correctly returns all employees in department 13 ordered by name? A) SELECT DeptID FROM EMPLOYEE; B) SELECT * FROM EMPLOYEE ORDER BY DeptID;