Preparing your form...
|Database Management Systems PYQs

UGC NET Computer Science Database Management Systems Previous Year Questions (PYQs)

Practise 137 Database Management Systems questions asked in UGC NET Computer Science from 2018–2026. Questions cover Data models, Relational algebra, Integrity constraints, Functional dependencies and normalisation, Transaction processing and Locking protocols. Every question is shown with its options and the correct answer, free to read.

137 PYQs2018–2026Answers includedFree

Practise Database Management Systems as timed sets

Focused 10-question sets with instant scoring, explanations, and weak-area analysis.

Start practice

All 137 Database Management Systems PYQs

Ordered newest exam first. Each question links back to the full paper it came from.

  1. Match List-I with List-II.

    List-IList-II
    A. Wait-for graph
    B. Precedence graph
    C. Rigorous 2PL
    D. Strict 2PL
    I. Holds all locks until it commits
    II. Holds write-locks until it commits
    III. Used to check deadlocks
    IV. Used to check serializability
    1. AA-III, B-IV, C-I, D-II
    2. BA-III, B-IV, C-II, D-I
    3. CA-IV, B-I, C-II, D-III
    4. DA-IV, B-III, C-II, D-I

    Answer: (B) A-III, B-IV, C-II, D-I

    Explanation

    Sign in to read the full explanation
  2. What is the correct sequence of the database-design process?

    A. Create conceptual schema
    B. Data model mapping
    C. Requirements collection and analysis
    D. Physical design

    1. AC, A, B, D
    2. BC, B, A, D
    3. CA, B, C, D
    4. DA, C, B, D

    Answer: (A) C, A, B, D

    Explanation

    Sign in to read the full explanation
  3. For relation schema r(M, Y, P, MP, C), the functional dependencies are M → MP, {M, Y} → P, and MP → C. Which is a key?

    1. AM
    2. B{M, Y}
    3. C{M, C}
    4. DMP

    Answer: (B) {M, Y}

    Explanation

    Sign in to read the full explanation
  4. Which relational-algebra expression is equivalent to the SQL query SELECT X FROM B WHERE Y?

    1. Aσᵧ(πₓ(B))
    2. Bπᵧ(σₓ(B))
    3. Cσₓ(πₓ(B))
    4. Dπₓ(σᵧ(B))

    Answer: (D) πₓ(σᵧ(B))

    Explanation

    Sign in to read the full explanation
  5. Which of the following are true?

    A. A database may have only one primary key.
    B. Every key is a candidate key.
    C. There can be multiple candidate keys.
    D. There can be more than one superkey.
    E. Every candidate key is a primary key.

    1. AA, C, D only
    2. BA, D, E only
    3. CB, C, D only
    4. DB, D, E only

    Answer: (A) A, C, D only

    Explanation

    Sign in to read the full explanation
  6. To define the relationship between two entity sets, which operation can be used?

    1. AConcatenation
    2. BAddition
    3. CCartesian product
    4. DUnion

    Answer: (C) Cartesian product

    Explanation

    Sign in to read the full explanation
  7. A safe expression in relational calculus is guaranteed to yield:

    1. AA finite number of tuples
    2. BA finite number of attributes
    3. CA finite number of null values
    4. DA finite number of indices

    Answer: (A) A finite number of tuples

    Explanation

    Sign in to read the full explanation
  8. Which of the following statements are correct?

    A. The HAVING CLAUSE is an optional clause which tells Oracle to group rows based on distinct values that exist for specified columns.
    B. Unions can be used in subqueries.
    C. The intersect clause outputs only rows produced by both the queries intersected.
    D. The statement containing a subquery is called a parent statement.
    E. If a select statement is defined as a subquery, the innermost select statement gets executed first.

    1. AA, B, C Only
    2. BC, D, E Only
    3. CB, C, E Only
    4. DA, B, D Only

    Answer: (B) C, D, E Only

    Explanation

    Sign in to read the full explanation
  9. Arrange the following steps of the MapReduce framework.

    A. Input Splitting
    B. Reducing
    C. Mapping
    D. Shuffling & Sorting

    1. AD, A, C, B
    2. BB, C, A, D
    3. CA, C, D, B
    4. DC, B, D, A

    Answer: (C) A, C, D, B

    Explanation

    Sign in to read the full explanation
  10. Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R

    Assertion (A): HDFS follows a master-slave architecture with Name Node and Data Nodes.
    Reason (R): Name Node stores metadata, while Data Nodes store actual data blocks.

    1. ABoth A and R are correct and R is the correct explanation of A
    2. BBoth A and R are correct but R is NOT the correct explanation of A
    3. CA is correct but R is not correct
    4. DA is not correct but R is correct

    Answer: (A) Both A and R are correct and R is the correct explanation of A

    Explanation

    Sign in to read the full explanation
  11. In transactions, a write-item(X) command includes the following steps. Arrange the following steps in the correct sequence.

    A. Copy item X from the program variable named X into its correct location in the buffer.
    B. Store the updated block from the buffer back to disk.
    C. Find the address of the disk block that contains item X.
    D. Copy that disk block into a buffer in main memory.

    1. AC, D, A, B
    2. BA, C, D, B
    3. CC, A, B, D
    4. DD, B, C, A

    Answer: (A) C, D, A, B

    Explanation

    Sign in to read the full explanation
  12. If a transaction tₐ holds a lock on some data item d in shared and intention-exclusive (SIX) mode, then which of the following is true for another transaction tᵦ?

    1. Atᵦ can lock d in shared (S) mode
    2. Btᵦ can lock d in exclusive (X) mode
    3. Ctᵦ can lock d in intention-exclusive (IX) mode
    4. Dtᵦ can lock d in intention-shared (IS) mode

    Answer: (D) tᵦ can lock d in intention-shared (IS) mode

    Explanation

    Sign in to read the full explanation
  13. Specialization process does not allow

    1. Adefining a set of subclasses of an entity type
    2. Bestablishing additional specific attributes with each subclass
    3. Cdefining a generalized entity type from the given entity types
    4. Destablishing additional specific relationship types between each subclass and other entity types or other subclasses

    Answer: (C) defining a generalized entity type from the given entity types

    Explanation

    Sign in to read the full explanation
  14. Assertion (A): OLAP systems are optimized for complex queries and analysis.
    Reason (R): OLTP systems are designed for transaction processing with large read-only queries.

    1. ABoth A and R are correct and R is the correct explanation of A
    2. BBoth A and R are correct but R is NOT the correct explanation of A
    3. CA is correct but R is not correct
    4. DA is not correct but R is correct

    Answer: (C) A is correct but R is not correct

    Explanation

    Sign in to read the full explanation
  15. In relation to Index structures for files which of the following are true?

    A. An index is an integral part of the data file.
    B. An index can be created in conjunction with virtually any primary record organization.
    C. An index cannot be created dynamically.
    D. An index can be used to enforce a key constraint on an attribute.
    E. An index can be created dynamically.

    1. AA, B, C Only
    2. BB, C, D Only
    3. CB, D, E Only
    4. DA, C, E Only

    Answer: (C) B, D, E Only

    Explanation

    Sign in to read the full explanation
  16. Consider a B⁺ tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any non-root node?

    1. A1
    2. B2
    3. C3
    4. D4

    Answer: (B) 2

    Explanation

    Sign in to read the full explanation
  17. Consider relation R with attributes A, B, C, D, and E, and dependencies C → F, E → A, EC → D, and A → B. Which option is a key for R?

    1. ACD
    2. BEC
    3. CAE
    4. DAC

    Answer: (B) EC

    Explanation

    Sign in to read the full explanation
  18. Let T1 have attributes A, B, C, D, and E with dependencies {EB → C, D → E, EA → B}; T2 has attributes A, B, C, and D with dependencies {C → A, A → B, A → D}. Which statement is true?

    1. AT1 is in 3NF
    2. BT2 is in 3NF
    3. CT1 is not in 3NF
    4. DT1 is in 2NF

    Answer: (C) T1 is not in 3NF

    Explanation

    Sign in to read the full explanation
  19. In a relational database, which statement is correct?

    1. AA relation with only two attributes is always in BCNF.
    2. BIf all attributes of a relation are prime attributes, then the relation is in BCNF.
    3. CEvery relation has at least one non-prime attribute.
    4. DBCNF decomposition preserves functional dependencies.

    Answer: (A) A relation with only two attributes is always in BCNF.

    Explanation

    Sign in to read the full explanation
  20. Consider Employee(eid, eName), Comp(cid, cName), and Own(eid, cid). Which relational-algebra expression returns eid values for people who own every brand?

    1. Aπ_eid(π_eid,cid(Own) ÷ π_cid(Comp))
    2. Bπ_eid(π_eid(Own) × π_cid(Comp))
    3. Cπ_eid(π_eid,cid(Own) × π_cid(Comp))
    4. Dπ_eid(π_eid(Own) × (π_cid,cName(Own) ÷ π_cid(Comp)))

    Answer: (A) π_eid(π_eid,cid(Own) ÷ π_cid(Comp))

    Explanation

    Sign in to read the full explanation
  21. Editorially repaired version of an ambiguous NTA item. In the broad Knowledge Discovery in Databases (KDD) process, consider these statements:

    A. Data transformation is involved.
    B. An online database can serve as a data source for a data warehouse.
    C. Classification is a measure of accuracy.
    D. K-means clustering minimizes within-cluster variance.
    E. Pattern evaluation identifies knowledge using interestingness measures.

    Which statements are true?

    1. AA, B, D, and E only
    2. BB, D, and E only
    3. CA, C, and E only
    4. DA, C, and D only

    Answer: (A) A, B, D, and E only

    Explanation

    Sign in to read the full explanation
  22. Which serializability statements are true: conflict serializability means conflict equivalence to a serial schedule; view serializability means view equivalence to a serial schedule; serial schedules interleave participating transactions; and every conflict-serializable schedule is view-serializable but not conversely?

    1. AA, B, C, and D
    2. BA, B, and C only
    3. CA, B, and D only
    4. DB, C, and D only

    Answer: (C) A, B, and D only

    Explanation

    Sign in to read the full explanation
  23. Which table contains the primary information in a data warehouse?

    1. ADimension table
    2. BFact table
    3. CLookup table
    4. DPrimary table

    Answer: (B) Fact table

    Explanation

    Sign in to read the full explanation
  24. Match List-I with List-II.

    List-IList-II
    A. Project-join normal form
    B. Lost-update problem
    C. Discretionary access control
    D. Data-manipulation language
    I. Concurrency
    II. Fifth normal form
    III. SQL
    IV. Security
    1. AA-II, B-I, C-IV, D-III
    2. BA-I, B-II, C-IV, D-III
    3. CA-I, B-II, C-III, D-IV
    4. DA-IV, B-II, C-III, D-I

    Answer: (A) A-II, B-I, C-IV, D-III

    Explanation

    Sign in to read the full explanation
  25. The degree of a relation in a database is

    1. Athe number of tuples in the relation
    2. Bthe number of attributes in the relation
    3. Cthe number of values in a domain
    4. Dthe number of keys in a relation

    Answer: (B) the number of attributes in the relation

    Explanation

    Sign in to read the full explanation
  26. Practise Database Management Systems in a timed set
  27. What is the correct sequence of phases of database design?

    A. Physical design
    B. Conceptual design
    C. Logical design
    D. Requirement collection and analysis

    1. AD, A, B, C
    2. BD, B, C, A
    3. CD, B, A, C
    4. DD, A, C, B

    Answer: (B) D, B, C, A

    Explanation

    Sign in to read the full explanation
  28. An alternate key in a database table is also called

    1. APrimary key
    2. BCandidate key
    3. CSuper key
    4. DForeign key

    Answer: (B) Candidate key

    Explanation

    Sign in to read the full explanation
  29. In concurrency control, a phantom problem may occur when

    1. Arecords are inserted
    2. Brecords are deleted
    3. Crecords are modified
    4. Drecords are indexed

    Answer: (A) records are inserted

    Explanation

    Sign in to read the full explanation
  30. INSERT command is used to:

    A. add a single tuple to a relation
    B. add multiple tuples to a relation
    C. add values to specific attributes
    D. insert a new table

    1. AA only
    2. BA and B only
    3. CA, B and C only
    4. DB, C and D only

    Answer: (C) A, B and C only

    Explanation

    Sign in to read the full explanation
  31. Which of the following statements is/are false?

    A. A relation having only key attributes is always in BCNF, since it has no functional dependencies.
    B. If a relation is not in 4NF because of a non-trivial multivalued dependency, it should be decomposed.
    C. Decomposition can remove redundancy caused by a multivalued dependency.
    D. Third normal form is stronger than BCNF.

    1. AA only
    2. BA and B only
    3. CD only
    4. DC only

    Answer: (C) D only

    Explanation

    Sign in to read the full explanation
  32. Which of the following commands can be used to modify data in an SQL table?

    A. INSERT
    B. DELETE
    C. UPDATE
    D. SELECT

    1. AA, B and D only
    2. BA, C and D only
    3. CB, C and D only
    4. DA, B and C only

    Answer: (D) A, B and C only

    Explanation

    Sign in to read the full explanation
  33. Match List-I with List-II.

    List-IList-II
    A. Hadoop Distributed File System
    B. Veracity
    C. Apache Pig
    D. Apache Hive
    I. Trust
    II. Facebook
    III. NameNode
    IV. Yahoo
    1. AA-IV, B-III, C-I, D-II
    2. BA-III, B-I, C-II, D-IV
    3. CA-III, B-I, C-IV, D-II
    4. DA-II, B-III, C-I, D-IV

    Answer: (C) A-III, B-I, C-IV, D-II

    Explanation

    Sign in to read the full explanation
  34. In a schema R(A, B, C, D, E, F, G, H), each field of R
    contains only atomic values.
    F= {CH→G, A →BC, B→CFH, E→A, F→EG} is a set
    of functional dependencies F+ is exactly the set
    of FDs that holds R. The relation R is :

    1. AIn 1NF, but not in 2 NF
    2. BIn 2 NF , but not in 3 NF
    3. CIn 3NF, but not in BCNF
    4. DIn BCNF

    Answer: (A) In 1NF, but not in 2 NF

    Explanation

    Sign in to read the full explanation
  35. Consider a relation schema R=(U, V, W, X, Y, Z), on
    which the following functional dependencies
    hold
    {U→V, VW→X, Y→W; X→U}
    The candidate keys of R are :

    1. AUY, VY
    2. BUY, VY, XY
    3. CUYZ, VYZ, VWZ
    4. DUYZ, VYZ, XYZ

    Answer: (D) UYZ, VYZ, XYZ

    Explanation

    Sign in to read the full explanation
  36. Match List-I with List-II.

    List-IList-II
    (A) Representation of bits(I) Transport layer
    (B) Physical Address(II) Physical layer
    (C) Logical Address(III) Network layer
    (D) Segmentation and reassembly(IV) Data link layer
    1. A(A)-(I), (B)-(II), (C)-(III), (D)-(IV)
    2. B(A)-(II), (B)-(IV), (C)-(III), (D)-(I)
    3. C(A)-(III), (B)-(II), (C)-(IV), (D)-(I)
    4. D(A)-(I), (B)-(IV), (C)-(III), (D)-(II)

    Answer: (B) (A)-(II), (B)-(IV), (C)-(III), (D)-(I)

    Explanation

    Sign in to read the full explanation
  37. Consider a schema R(P, Q, R, S) and the following
    functional dependencies P → Q, Q → R, R → S, S
    → Q. Then decomposition of R (P, Q), R (Q, R)
    and R 3(Q, S) is :

    1. ADependency Preserving and lossless join
    2. BLossless Join but not dependency preserving
    3. CDependency preserving but not lossless Join
    4. DNot dependency preserving and not lossless join

    Answer: (A) Dependency Preserving and lossless join

    Explanation

    Sign in to read the full explanation
  38. What is SQL primarily used for in the context of
    relational databases ?

    1. ATo design user interfaces
    2. BTo create and manipulate databases
    3. CTo display data on web pages
    4. DTo format printed reports

    Answer: (B) To create and manipulate databases

    Explanation

    Sign in to read the full explanation
  39. How does a relational database ensure data
    integrity ?

    1. ABy encrypting all data stored
    2. BBy enforcing rules defined in the schema
    3. CBy compressing data for efficient storage
    4. DBy allowing unrestricted access to all users

    Answer: (B) By enforcing rules defined in the schema

    Explanation

    Sign in to read the full explanation
  40. Fifth normal form is concerned with :

    1. AJoin Dependency
    2. BDomain-Key
    3. CMultivalued dependency
    4. DFunctional dependency

    Answer: (A) Join Dependency

    Explanation

    Sign in to read the full explanation
  41. Consider the transactions T₁, T₂, T₃, and the schedules S₁ and S₂ given below.

    T₁: r₁(X); r₁(Z); w₁(X); w₁(Z)
    T₂: r₂(Y); r₂(Z); w₂(Z)
    T₃: r₃(Y); r₃(X); w₃(Y)

    S₁: r₁(X); r₃(Y); r₃(X); r₂(Y); r₂(Z); w₃(Y); w₂(Z); r₁(Z); w₁(X); w₁(Z)
    S₂: r₁(X); r₃(Y); r₂(Y); r₃(X); r₁(Z); r₂(Z); w₃(Y); w₁(X); w₂(Z); w₁(Z)

    Which one of the following statements about the schedules is TRUE?

    1. AOnly S₁ is conflict-serializable
    2. BOnly S₂ is conflict-serializable
    3. CBoth S₁ and S₂ are conflict-serializable
    4. DNeither S₁ nor S₂ is conflict-serializable

    Answer: (A) Only S₁ is conflict-serializable

    Explanation

    Sign in to read the full explanation
  42. Which of the following relations can not be
    decomposed in to BCNF with a lossless join and
    dependency-preserving decomposition?

    1. AR (V,W,X,Y,Z) {VW→X, WX→V, VX→W, W→Y, Y→Z}
    2. BR (V,W,X,Y,Z) {VW→W, X→Y}
    3. CR (V,W,X,Y,Z) {VW→X,X→VY}
    4. DR (V,W,X,Y,Z) {VW→X, X→Y, Y→Z, Z→V}

    Answer: (A) R (V,W,X,Y,Z) {VW→X, WX→V, VX→W, W→Y, Y→Z}

    Explanation

    Sign in to read the full explanation
  43. Which of the following best describes the
    structure of a relational database ?

    1. AData organized into tables with rows and columns
    2. BData organized into files and folders
    3. CData organized into a hierarchical tree structure
    4. DData organized into a network of interconnected nodes

    Answer: (A) Data organized into tables with rows and columns

    Explanation

    Sign in to read the full explanation
  44. Match List-I with List-II.

    List-I (operating system concepts)List-II (characteristics)
    (A) Paging(I) Evicts least recently used process
    (B) LRU (Least Recently Used)(II) Extends physical memory
    (C) C-SCAN(III) Logical to physical mapping
    (D) Virtual Memory(IV) Circular disk access
    1. A(A)-(III), (B)-(IV), (C)-(I), (D)-(II)
    2. B(A)-(III), (B)-(I), (C)-(IV), (D)-(II)
    3. C(A)-(I), (B)-(III), (C)-(IV), (D)-(II)
    4. D(A)-(I), (B)-(IV), (C)-(III), (D)-(II)

    Answer: (B) (A)-(III), (B)-(I), (C)-(IV), (D)-(II)

    Explanation

    Sign in to read the full explanation
  45. Arrange the following phases of database design
    in the correct order :
    A. Physical Design
    B. Conceptual Design
    C. Logical Design
    D. Requirement Analysis

    1. A(B), (D), (A), (C)
    2. B(C), (A), (B), (D)
    3. C(D), (B), (C), (A)
    4. D(A), (D), (C), (B)

    Answer: (C) (D), (B), (C), (A)

    Explanation

    Sign in to read the full explanation
  46. The Hue of a colour is related to its :

    1. ALuminance
    2. BSaturation
    3. CIncandescence
    4. DWavelength

    Answer: (D) Wavelength

    Explanation

    Sign in to read the full explanation
  47. Which of the statement are CORRECT ?
    A. Constructors are invoked automatically when the objects are created.
    B. Constructors do not have return types, not even void and therefore they cannot return values.
    C. Constructors cannot be inherited though a derived class can call the base class constructors.
    D. Constructors can be declared as virtual. Choose the correct answer from the options given below :

    1. A(A), (B) and (D) Only
    2. B(A), (B) and (C) Only
    3. C(B), (C) and (D) Only
    4. D(A), (C) and (D) Only

    Answer: (B) (A), (B) and (C) Only

    Explanation

    Sign in to read the full explanation
  48. Which one of the following statements are CORRECT ?
    A. Granularity is the size of data item in a database.
    B. Two operations in a schedule are said to be conflict if they belong to same transaction.
    C. Two schedulers are said to be conflict equivalent if the order of any two conflicting operations is the same in both schedules.
    D. Write operations which are performed without performing the write operation are known as Blind Writes. Choose the correct answer from the options given below :

    1. A(A) and @) Only
    2. B(A), (B) and (C) Only
    3. C(A), (B) and (D) Only
    4. D(B) and (C) Only

    Answer: (B) (A), (B) and (C) Only

    Explanation

    Sign in to read the full explanation
  49. Which of the following is/are NOT CORRECT statement ?
    A. The first record in each block of the data file is known as actor record.
    B. Dense index has index entries for every search key value in the data file.
    C. Searching is harder in the B* tree than B— tree as the all external nodes linked to each other.
    D. In extendible hashing the size of directory is just an array of 24—, where d is global depth. Choose the correct answer from the options given below :

    1. A(A), (B) and (©) Only
    2. B(A), (©) and (D) Only
    3. C(A), (B) and (D) Only
    4. D(A), (B), ©) and (D) Only

    Answer: (B) (A), (©) and (D) Only

    Explanation

    Sign in to read the full explanation
  50. Arrange the following in ascending order :
    A. Remainder of 49!© when divided by 17
    B. Remainder of 24° when divided by 9
    C. Remainder of 155!" when divided by 17
    D. Last digits of the number 74° Choose the correct answer from the options given below : Q)
    A. @),.©,®) Q
    A. 8,0), ©

    1. AA, B, C, D
    2. BA, B, D, C
    3. CA, C, B, D
    4. DD, C, B, A

    Answer: (C) A, C, B, D

    Explanation

    Sign in to read the full explanation
  51. In most general case, the computer needs to process each instruction with the following sequence of steps :
    A. Calculate the effective address
    B. Execute the instruction
    C. Fetch the instruction from memory
    D. Fetch the operand from memory
    E. Decode the instruction Choose the correct answer from the options given below : @)
    A. , ®), ©, 0), ©

    1. AA, B, C, D, E
    2. BA, B, C, E, D
    3. CC, E, A, D, B
    4. DC, E, D, A, B

    Answer: (C) C, E, A, D, B

    Explanation

    Sign in to read the full explanation
  52. Practise Database Management Systems in a timed set
  53. Match List-I with List-II.

    Source matching promptSource values
    See question stemSee answer choices
    1. A(D) Depth first search (IV) O(b' m) Choose the correct answer from the options given below :
    2. B(A)-C, B)-), (CCV), (D)-(Im)
    3. C(A), )-€V), (©), (P)-(Im)
    4. D(A)-(), (B)-(H), (C)-(D, (D)-@)

    Answer: (A) (D) Depth first search (IV) O(b' m) Choose the correct answer from the options given below :

    Explanation

    Sign in to read the full explanation
  54. Which of the following concurrency control protocols ensures both conflict serializability and freedom from deadlock?

    Statement I: Two phase locking
    Statement II: Timestamp ordering

    1. ABoth Statement I and Statement II are correct
    2. BBoth Statement I and Statement II are incorrect
    3. CStatement I is correct but Statement II is incorrect
    4. DStatement I is incorrect but Statement II is correct

    Answer: (D) Statement I is incorrect but Statement II is correct

    Explanation

    Sign in to read the full explanation
  55. The total cost of retrieving records in sorted order using an unclustered B+ tree index is given by which of the following expressions?
    (P = average number of records per data page, N = number of data pages, F = ratio of the size of a data entry to the size of a data record)

    1. A(F × N) + P
    2. B(F + P) × N
    3. CF × N × P
    4. DF + P/N

    Answer: (B) (F + P) × N

    Explanation

    Sign in to read the full explanation
  56. Consider the following statements regarding normal forms:
    A. A database design is in BCNF if each member set of relation schemas constituting the design is in BCNF
    B. A BCNF schema can have a transitive dependency
    C. It is always possible to obtain a 3NF design without sacrificing a lossless join
    D. There can be multivalued dependencies in a 4NF relation

    Which of the following statements are correct?

    1. AA, B, C only
    2. BB, C, D only
    3. CA, B, D only
    4. DA, C, D only

    Answer: (D) A, C, D only

    Explanation

    Sign in to read the full explanation
  57. Let R(A, B, C, D, E, F) be a relation with functional dependencies C → F, E → A, EC → D, A → B. Which of the following is a key for R?

    1. ACD
    2. BEC
    3. CAE
    4. DAC

    Answer: (B) EC

    Explanation

    Sign in to read the full explanation
  58. Given the basic ER diagram and relational model, which of the following is incorrect?

    1. AAn attribute of an entity can have more than one value
    2. BAn attribute of an entity can be composite
    3. CIn a row of relational table, an attribute can have more than one value
    4. DIn a row of a relational table, an attribute can have exactly one value or a NULL value

    Answer: (C) In a row of relational table, an attribute can have more than one value

    Explanation

    Sign in to read the full explanation
  59. Which of the following scenario may lead to an irrecoverable error in a database system?

    1. AA transaction writes a data item after it is read by an uncommitted transaction
    2. BA transaction reads a data item after it is read by an uncommitted transaction
    3. CA transaction reads a data item after it is written by a committed transaction
    4. DA transaction reads a data item after it is written by an uncommitted transaction

    Answer: (D) A transaction reads a data item after it is written by an uncommitted transaction

    Explanation

    Sign in to read the full explanation
  60. Consider a relational schema R(A, B, C, D). It has functional dependencies A → B, B → C, C → D, and D → B. The decomposition of R into (A, B), (B, C), (B, D)

    1. Agives a lossless join, and is dependency preserving
    2. Bgives lossless join, but is not dependency preserving
    3. Cdoes not give a lossless join, but is dependency preserving
    4. Ddoes not give a lossless join and is not dependency preserving

    Answer: (A) gives a lossless join, and is dependency preserving

    Explanation

    Sign in to read the full explanation
  61. Which one of the following is NOT a part of ACID properties of a database transaction?

    1. AAtomicity
    2. BConsistency
    3. CIsolation
    4. DDeadlock-freedom

    Answer: (D) Deadlock-freedom

    Explanation

    Sign in to read the full explanation
  62. Identify the incorrect statement(s).

    1. AA candidate key is minimal set of one or more attributes that, taken collectively, allows us to uniquely identify any entity in the entity set.
    2. BA candidate key for which no proper subset is also a candidate key is called a super key.
    3. CA super key is a set of one or more attributes that, taken collectively, allows us to uniquely identify any entity in the entity set.
    4. DA super key for which no proper subset is also a super key is called a candidate key.

    Answer: (B) A candidate key for which no proper subset is also a candidate key is called a super key.

    Explanation

    Sign in to read the full explanation
  63. Consider the two relations below. The primary keys are underlined. Identify all possible foreign key(s) from the options based only on the two relations.

    EMP (eid, ename, did)
    DEPT (did, dname)

    1. Aeid
    2. Bdid
    3. Ceid, did
    4. Deid, did, ename

    Answer: (B) did

    Explanation

    Sign in to read the full explanation
  64. Which of the following statement is correct, according to the following instance of the relational schema R(X, Y, Z)?

    XYZ
    11a
    11a
    21b
    32b

    Instance of relation R(X, Y, Z)

    1. AX→Y, Z→X
    2. BY→Z, Z→X
    3. CX→Y, X→Z
    4. DY→X, X→Z

    Answer: (C) X→Y, X→Z

    Explanation

    Sign in to read the full explanation
  65. What are the drawbacks of using file systems to store data?

    A. Data inconsistency
    B. Difficulty in accessing data
    C. Data isolation
    D. Atomicity of updates

    Choose the correct answers from the options given below:

    1. AA, B, only
    2. BB, C, D only
    3. CA, B, C only
    4. DA, B, C, D

    Answer: (D) A, B, C, D

    Explanation

    Sign in to read the full explanation
  66. Which of the following database model, we have a parent-child relationship?

    A. hierarchical databases
    B. network databases
    C. relational databases

    Choose the correct answer from the options given below:

    1. AA, B
    2. BA, C
    3. CB, C
    4. DA, B, C

    Answer: (A) A, B

    Explanation

    Sign in to read the full explanation
  67. Identify the correct operation which produces the given output based on two relations R1 and R2.

    RelationNameClass
    R1a19
    R1b15
    R1c16
    R1d111
    R2b15
    R2f18
    Outputb15

    Relations R1, R2 and the resulting output

    1. AR1 ∩ R2
    2. BR1 − R2
    3. CR1 − (R1 − R2)
    4. DR1 ∪ R2

    Accepted answers: (A) R1 ∩ R2, (C) R1 − (R1 − R2)

    Explanation

    Sign in to read the full explanation
  68. Match List I with List II.

    List-IList-II
    A. Apache KafkaI. Platform for constructing data flows for extract, transform, and load (ETL) processing and analysis of large datasets
    B. PigII. General-purpose computing model and runtime system for distributed data analytics
    C. Apache MahoutIII. Open-source platform that was created by LinkedIn
    D. MapreduceIV. Open-source platform used for creating scalable machine learning algorithms

    List I and List II for the matching question

    1. AA-III, B-IV, C-I, D-III
    2. BA-II, B-I, C-IV, D-III
    3. CA-III, B-I, C-IV, D-II
    4. DA-I, B-II, C-IV, D-III

    Answer: (C) A-III, B-I, C-IV, D-II

    Explanation

    Sign in to read the full explanation
  69. A ______ operation combines the rows of the two relations and outputs a new relation that has both input relations' rows in it.

    1. Adifference
    2. Bunion
    3. Ccartesian product
    4. Dproject

    Answer: (B) union

    Explanation

    Sign in to read the full explanation
  70. Consider the relation R(P, Q, R, S, T, U, V, W, X, Y) and FDs:

    {P, Q, S} → T
    R → Y
    {P, Q} → V
    {R, X} → X
    Q → U
    V → {W, X}

    Which of the following is a candidate key?

    1. A{P, Q, R, S}
    2. B{R, Q, X}
    3. C{V, X}
    4. DNone of the above

    Answer: (A) {P, Q, R, S}

    Explanation

    Sign in to read the full explanation
  71. Let Ti be a transaction that transfer Rs. 50 from account A to account B. This transaction can be defined as follows:

    What will be the status of a database just after 3rd step but before 5th step of transaction execution?

    1. AAlways consistent
    2. BMay be temporarily inconsistent
    3. CMust be abort
    4. DAlways rollback

    Answer: (B) May be temporarily inconsistent

    Explanation

    Sign in to read the full explanation
  72. Consider the relation

    Student(stuid, dept, clsroll)

    The following functional dependencies are given:

    FD1: stuid → dept
    FD2: dept → stuid
    FD3: stuid → clsroll
    FD4: clsroll → stuid
    FD5: dept → clsroll

    Which functional dependencies should be removed to obtain the canonical cover of the set?

    A. FD2 and FD3
    B. FD1 and FD5
    C. FD5
    D. FD1

    Choose the correct answer from the options given below:

    1. AA, B only
    2. BA, C only
    3. CB, C only
    4. DA, B, C only

    Answer: (B) A, C only

    Explanation

    Sign in to read the full explanation
  73. Match List I with List II.

    List-IList-II
    A. Timestamp protocolI. As long as the transaction is already running, it will try to obtain the required lock in the first part
    B. Strict two-phase locking protocolII. Indicates final lock of the schedule
    C. Two-phase lockingIII. Ensures freedom from deadlock
    D. Lock point in two phase locking protocolIV. Ensures cascade-less rollback
    1. AA-III, B-IV, C-II, D-I
    2. BA-III, B-IV, C-I, D-II
    3. CA-IV, B-III, C-II, D-I
    4. DA-IV, B-II, C-I, D-III

    Answer: (B) A-III, B-IV, C-I, D-II

    Explanation

    Sign in to read the full explanation
  74. Consider schedule S.

    R(X) denotes read operation on data item X by transaction Ti.
    W(X) denotes write operation on data item X by transaction Ti.

    Choose the correct execution order for schedule S.

    T1T2T3T4Timestamp
    R(X)R(Y)t1
    W(X)W(Y)t2
    R(Y)R(X)t3
    W(Y)W(X)t4
    R(X)t5
    W(X)t6

    Read/write schedule S for transactions T1-T4

    1. AT3-T2-T1-T4
    2. BT2-T3-T1-T4
    3. CT2-T4-T3-T1
    4. DT4-T2-T3-T1

    Answer: (C) T2-T4-T3-T1

    Explanation

    Sign in to read the full explanation
  75. Given below are the two statements:

    Statement I: Any retrieval request that is specified in the basic relational algebra can also be specified in relational calculus.

    Statement II: Any retrieval request that is specified in the relational calculus can also be specified in basic relational algebra.

    In the light of the above statements, choose the correct answer from the options given below:

    1. ABoth Statement I and Statement II are true.
    2. BBoth Statement I and Statement II are false.
    3. CStatement I is true but Statement II is false.
    4. DStatement I is false but Statement II is true.

    Answer: (A) Both Statement I and Statement II are true.

    Explanation

    Sign in to read the full explanation
  76. Use the following schema of the academic institution relational database:

    student (rollno, name, degree, year, sex, deptno, advisor)
    department (deptid, name, hod, phone)
    professor (empid, name, sex, startyear, deptno, phone)
    course (courseid, cname, credits, deptno)
    enrollment (rollno, courseid, sem, year, grade)
    teaching (empid, courseid, sem, year, classroom)
    prerequisite (precourseid, courseid)

    deptno is a foreign key in the student, professor and course relations referring to deptid of department. advisor is a foreign key in student referring to empid of professor. hod is a foreign key in department referring to empid of professor. rollno is a foreign key in enrollment referring to rollno of student. courseid is a foreign key in enrollment and teaching referring to courseid of course. empid is a foreign key of teaching referring to empid of professor. precourseid and courseid are foreign keys in prerequisite referring to courseid of course.

    Which of the following queries would retrieve the roll number and names of students who have enrolled for all the prerequisite courses of the course number 324?

    1. ASelect s.rollno, s.name From student s, enrollment e Where e.rollno = s.rollno and e.courseid = ANY (select precourseid from prerequisite p where p.courseid = "324")
    2. BSelect s.rollno, s.name From student s, enrollment e Where e.rollno = s.rollno and e.courseid = ALL (select precourseid from prerequisite p where p.courseid = "324")
    3. CSelect s.rollno, s.name From student s Where NOT EXISTS (select * from prerequisite p where p.courseid = "324" and NOT EXISTS (select * from enrollment e where e.courseid = p.precourseid and e.rollno = s.rollno))
    4. DSelect s.rollno, s.name From student s Where EXISTS (select * from prerequisite p where p.courseid = "324") and EXISTS (select * from enrollment e where e.courseid = p.precourseid and e.rollno = s.rollno)

    Answer: (C) Select s.rollno, s.name From student s Where NOT EXISTS (select * from prerequisite p where p.courseid = "324" and NOT EXISTS (select * from enrollment e where e.courseid = p.precourseid and e.rollno = s.rollno))

    Explanation

    Sign in to read the full explanation
  77. Use the following schema of the academic institution relational database:

    student (rollno, name, degree, year, sex, deptno, advisor)
    department (deptid, name, hod, phone)
    professor (empid, name, sex, startyear, deptno, phone)
    course (courseid, cname, credits, deptno)
    enrollment (rollno, courseid, sem, year, grade)
    teaching (empid, courseid, sem, year, classroom)
    prerequisite (precourseid, courseid)

    advisor is a foreign key in student referring to empid of professor.

    Given query: select s.rollno from student s where s.sex = ALL (select f.sex from professor f where f.empid = s.advisor)

    Consider the following statements about the given query, which retrieves the set of all students whose gender is the same as the gender of their advisor:

    S1. It has a correlated subquery
    S2. It has an uncorrelated subquery
    S3. If we replace ALL by ANY in the above query, its result will be different
    S4. If we replace ALL by ANY in the above query, its result will be same.

    Identify all the statements that are TRUE:

    1. AS1 and S3 are true
    2. BS1 and S4 are true
    3. CS2 and S3 are true
    4. DS2 and S4 are true

    Answer: (B) S1 and S4 are true

    Explanation

    Sign in to read the full explanation
  78. Practise Database Management Systems in a timed set
  79. Use the following schema of the academic institution relational database:

    department (deptid, name, hod, phone)
    course (courseid, cname, credits, deptno)

    deptno is a foreign key in course referring to deptid of department.

    Which of the following queries would compute, for each department, the total credits of all the courses offered by the department?

    1. Aselect deptid, name, sum(credits) as totalcredits from department, course where deptid=deptno group by deptid, name;
    2. Bselect deptid, name, count(credits) as totalcredits from department, course where deptid=deptno group by deptid, name;
    3. Cselect deptid, name, sum(credits) as totalcredits from department, course where deptid=deptno
    4. Dselect deptid, name, sum(credits) as totalcredits from department, course group by deptid, name having deptid=deptno;

    Answer: (A) select deptid, name, sum(credits) as totalcredits from department, course where deptid=deptno group by deptid, name;

    Explanation

    Sign in to read the full explanation
  80. Use the following schema of the academic institution relational database:

    department (deptid, name, hod, phone)
    course (courseid, cname, credits, deptno)

    deptno is a foreign key in course referring to deptid of department.

    Which of the following queries would retrieve the dept id and name of all the departments that are such that the total of the credits of all the offered courses by the department is strictly greater than 40?

    1. Aselect deptid, name, sum(credits) as totalcredits from department, course where totalcredits > 40 group by deptid, name having deptid = deptno;
    2. Bselect deptid, name, sum(credits) as totalcredits from department, course where deptid = deptno and totalcredits > 40 group by deptid, name;
    3. Cselect deptid, name, sum(credits) as totalcredits from department, course group by deptid, name having deptid = deptno and totalcredits > 40;
    4. Dselect deptid, name, sum(credits) as totalcredits from department, course where deptid = deptno group by deptid, name having totalcredits > 40;

    Answer: (D) select deptid, name, sum(credits) as totalcredits from department, course where deptid = deptno group by deptid, name having totalcredits > 40;

    Explanation

    Sign in to read the full explanation
  81. Use the following schema of the academic institution relational database:

    student (rollno, name, degree, year, sex, deptno, advisor)
    course (courseid, cname, credits, deptno)
    enrollment (rollno, courseid, sem, year, grade)

    Given query:

    select s.rollno, s.name
    from student s
    where EXISTS (select c.courseid from course c where c.deptno=5 and
    EXISTS (select e.* from enrollment e
    where e.courseid = c.courseid and
    e.rollno = s.rollno));

    Which one of the following statements is correct with respect to the given query?

    1. AIt retrieves the roll number and names of students who have not enrolled for all courses offered by department number 5.
    2. BIt retrieves the roll number and names of students who have enrolled for all courses offered by department number 5.
    3. CIt retrieves the roll number and names of students who have enrolled for at least one course offered by department number 5.
    4. DIt retrieves the roll number and names of students who are such that there exists at least one course offered by department number 5 which is not enrolled by the student.

    Answer: (C) It retrieves the roll number and names of students who have enrolled for at least one course offered by department number 5.

    Explanation

    Sign in to read the full explanation
  82. Which mechanism in XML allows organizations to specify globally unique names as element tags in documents?

    1. Aroot
    2. Bheader
    3. Cschema
    4. Dnamespace

    Answer: (D) namespace

    Explanation

    Sign in to read the full explanation
  83. Let R (ABCDEFGH) be a relation schema and F be the set of dependencies F = {A → B, ABCD → E, EF → G, EF → H and ACDF → EG}. The minimal cover of a set of functional dependencies is

    1. AA → B, ACD → E, EF → G, and EF → H
    2. BA → B, ACD → E, EF → G, EF → H and ACDF → G
    3. CA → B, ACD → E, EF → G, EF → H and ACDF → E
    4. DA → B, ABCD → E, EF → H and EF → G

    Answer: (A) A → B, ACD → E, EF → G, and EF → H

    Explanation

    Sign in to read the full explanation
  84. A trigger is

    1. AA statement that enables to start DBMS.
    2. BA statement that is executed by the user when debugging an application program.
    3. CA condition the system tests for the validity of the database user.
    4. DA statement that is executed automatically by the system as a side effect of modification to the database.

    Answer: (D) A statement that is executed automatically by the system as a side effect of modification to the database.

    Explanation

    Sign in to read the full explanation
  85. In reference to Big data, consider the following database:
    A. Memcached
    B. Couch DB
    C. Infinite graph
    Choose the most appropriate answer from the options given below:

    1. A(A) and (B) only
    2. B(B) and (C) only
    3. C(C) and (A) only
    4. D(A), (B) and (C)

    Answer: (D) (A), (B) and (C)

    Explanation

    Sign in to read the full explanation
  86. Match List I with List II regarding normal forms.

    List-IList-II
    A. BCNFI. Removes multivalued dependency
    B. 3NFII. Not always dependency preserving
    C. 2NFIII. Removes transitive dependency
    D. 4NFIV. Removes partial functional dependency
    1. A(A)-(III), (B)-(II), (C)-(IV), (D)-(I)
    2. B(A)-(II), (B)-(IV), (C)-(I), (D)-(III)
    3. C(A)-(II), (B)-(III), (C)-(IV), (D)-(I)
    4. D(A)-(II), (B)-(I), (C)-(IV), (D)-(III)

    Answer: (C) (A)-(II), (B)-(III), (C)-(IV), (D)-(I)

    Explanation

    Sign in to read the full explanation
  87. Consider the following statements:
    Statement I: Conservative 2 PL is a deadlock-free protocol.
    Statement II: Thomas's write rule enforces conflict serializability.
    Statement III: Timestamp ordering protocol ensures serializability based on the order of transaction timestamps.
    Which of the following is correct?

    1. AStatement I, Statement II true and Statement III false
    2. BStatement I, Statement III true and Statement II false
    3. CStatement I, Statement II false and Statement III true
    4. DStatement I, Statement II and Statement III true

    Answer: (B) Statement I, Statement III true and Statement II false

    Explanation

    Sign in to read the full explanation
  88. Consider the following statements:
    Statement I: Composite attributes cannot be divided into smaller subparts.
    Statement II: Complex attribute is formed by nesting composite attributes and multi-valued attributes in an arbitrary way.
    Statement III: A derived attribute is an attribute whose values are computed from other attribute.
    Which of the following is correct?

    1. AStatement I, Statement II and Statement III are true
    2. BStatement I true and Statement II, Statement III false
    3. CStatement I, Statement II true and Statement III false
    4. DStatement I false and Statement II, Statement III true

    Answer: (D) Statement I false and Statement II, Statement III true

    Explanation

    Sign in to read the full explanation
  89. Which of the following relational algebra query computes the Sid's of sailors with age over 20 who have not reserved a red boat?

    Consider the relational schema of Sailors S, Reserves R, and Boats B given below.

    Table 1: Sailors S

    SidSnameRatingAge
    22Dustin745.0
    29Brutus133.0
    31Lubber855.5
    32Andy825.5
    58Rusty1035.0
    64Horatio735.0
    71Zorba1016.0
    74Horatio935.0
    85Art325.5
    95Bob363.5

    Table 2: Reserves R

    SidBidDay
    2210110/10/98
    2210210/10/98
    2210310/8/98
    2210410/7/98
    3110211/10/98
    3110311/6/98
    3110411/12/98
    641019/5/98
    641029/8/98
    741039/8/98

    Table 3: Boats B

    BidBnameColor
    101Interlakeblue
    102Interlakered
    103Clippergreen
    104Marinered
    1. Aπ sid (σ age > 20 Sailors) − π sid ((σ color = red Boats) ⋈ Reserves ⋈ Sailors)
    2. Bπ sid ((σ color ≠ red ∧ age > 20 (Boats ⋈ Sailors ⋈ Reserves)))
    3. Cπ sid (σ age > 20 Sailors) − π sid ((σ color = red Boats) ⋈ Reserves ⋈ Sailors)
    4. Dπ sid (σ age > 20 Sailors) ∧ π sid ((σ color ≠ red Boats) ⋈ Reserves ⋈ Sailors)

    Accepted answers: (A) π sid (σ age > 20 Sailors) − π sid ((σ color = red Boats) ⋈ Reserves ⋈ Sailors), (C) π sid (σ age > 20 Sailors) − π sid ((σ color = red Boats) ⋈ Reserves ⋈ Sailors)

    Explanation

    Sign in to read the full explanation
  90. Which of the following relational algebra query/queries computes/compute the names of sailors who have reserved a red boat?
    Q1: π sname ((σ color = red Boats) ⋈ Reserves ⋈ Sailors)
    Q2: π sname (π sid ((π bid σ color = red Boats) ⋈ Reserves) ⋈ Sailors)
    Q3: π sname ((σ color = red Reserves) ⋈ Boats ⋈ Sailors)

    Consider the relational schema of Sailors S, Reserves R, and Boats B given below.

    Table 1: Sailors S

    SidSnameRatingAge
    22Dustin745.0
    29Brutus133.0
    31Lubber855.5
    32Andy825.5
    58Rusty1035.0
    64Horatio735.0
    71Zorba1016.0
    74Horatio935.0
    85Art325.5
    95Bob363.5

    Table 2: Reserves R

    SidBidDay
    2210110/10/98
    2210210/10/98
    2210310/8/98
    2210410/7/98
    3110211/10/98
    3110311/6/98
    3110411/12/98
    641019/5/98
    641029/8/98
    741039/8/98

    Table 3: Boats B

    BidBnameColor
    101Interlakeblue
    102Interlakered
    103Clippergreen
    104Marinered
    1. ABoth Q1 and Q2
    2. BBoth Q2 and Q3
    3. COnly Q1
    4. DOnly Q2

    Answer: (A) Both Q1 and Q2

    Explanation

    Sign in to read the full explanation
  91. Which of the following relational algebra query/queries computes/compute the name of sailors who have reserved boat 103?
    Q1: π sname ((σ bid = 103 Boats) ⋈ Sailors)
    Q2: π sname (σ bid = 103 (Reserves ⋈ Sailors))
    Q3: π sname ((σ bid = 103 Reserves) ⋈ Sailors)

    Consider the relational schema of Sailors S, Reserves R, and Boats B given below.

    Table 1: Sailors S

    SidSnameRatingAge
    22Dustin745.0
    29Brutus133.0
    31Lubber855.5
    32Andy825.5
    58Rusty1035.0
    64Horatio735.0
    71Zorba1016.0
    74Horatio935.0
    85Art325.5
    95Bob363.5

    Table 2: Reserves R

    SidBidDay
    2210110/10/98
    2210210/10/98
    2210310/8/98
    2210410/7/98
    3110211/10/98
    3110311/6/98
    3110411/12/98
    641019/5/98
    641029/8/98
    741039/8/98

    Table 3: Boats B

    BidBnameColor
    101Interlakeblue
    102Interlakered
    103Clippergreen
    104Marinered
    1. ABoth Q1 and Q3
    2. BBoth Q2 and Q3
    3. COnly Q3
    4. DOnly Q2

    Answer: (B) Both Q2 and Q3

    Explanation

    Sign in to read the full explanation
  92. Which of the following relational algebra query computes the names of sailor who have reserved all boats?

    Consider the relational schema of Sailors S, Reserves R, and Boats B given below.

    Table 1: Sailors S

    SidSnameRatingAge
    22Dustin745.0
    29Brutus133.0
    31Lubber855.5
    32Andy825.5
    58Rusty1035.0
    64Horatio735.0
    71Zorba1016.0
    74Horatio935.0
    85Art325.5
    95Bob363.5

    Table 2: Reserves R

    SidBidDay
    2210110/10/98
    2210210/10/98
    2210310/8/98
    2210410/7/98
    3110211/10/98
    3110311/6/98
    3110411/12/98
    641019/5/98
    641029/8/98
    741039/8/98

    Table 3: Boats B

    BidBnameColor
    101Interlakeblue
    102Interlakered
    103Clippergreen
    104Marinered
    1. Aρ (Tempsids, (π bid Reserves) / π bid Boats) π sname ((Tempsids) ⋈ Sailors)
    2. Bρ (Tempsids, (π sid,bid Reserves) / π bid Boats) π sname ((Tempsids) ⋈ Sailors)
    3. Cρ (Tempsids, (π sid Sailors) / π bid Boats) π sname ((Tempsids) ⋈ Sailors)
    4. Dρ (Tempsids, (π sid Reserves) / π bid Boats) π sname ((Tempsids) ⋈ Boats)

    Answer: (B) ρ (Tempsids, (π sid,bid Reserves) / π bid Boats) π sname ((Tempsids) ⋈ Sailors)

    Explanation

    Sign in to read the full explanation
  93. Which of the following relational algebra query computes the names of sailors who have reserved a red and a green boat?

    Consider the relational schema of Sailors S, Reserves R, and Boats B given below.

    Table 1: Sailors S

    SidSnameRatingAge
    22Dustin745.0
    29Brutus133.0
    31Lubber855.5
    32Andy825.5
    58Rusty1035.0
    64Horatio735.0
    71Zorba1016.0
    74Horatio935.0
    85Art325.5
    95Bob363.5

    Table 2: Reserves R

    SidBidDay
    2210110/10/98
    2210210/10/98
    2210310/8/98
    2210410/7/98
    3110211/10/98
    3110311/6/98
    3110411/12/98
    641019/5/98
    641029/8/98
    741039/8/98

    Table 3: Boats B

    BidBnameColor
    101Interlakeblue
    102Interlakered
    103Clippergreen
    104Marinered
    1. Aρ (Tempred, π sid ((σ color = 'red' Boats) ⋈ Reserves)), ρ (Tempgreen, π sid ((σ color = 'green' Boats) ⋈ Reserves)), π sname (Tempred ∩ Tempgreen) ⋈ Sailors
    2. Bρ (Tempboats 2, (σ color = 'red' Boats) ∩ (σ color = 'green' Boats)) π sname (Tempboats 2 ⋈ Reserves)
    3. Cπ sname ((σ color = 'red' Boats) ∩ (σ color = 'green' Boats) (Tempboats 2 ⋈ Sailors ⋈ Reserves))
    4. Dρ (Tempboats 2, (σ color = 'red' ∧ color = 'green' Boats)) π sname (Tempboats 2 ⋈ Sailors)

    Answer: (A) ρ (Tempred, π sid ((σ color = 'red' Boats) ⋈ Reserves)), ρ (Tempgreen, π sid ((σ color = 'green' Boats) ⋈ Reserves)), π sname (Tempred ∩ Tempgreen) ⋈ Sailors

    Explanation

    Sign in to read the full explanation
  94. The order of a leaf node in a B+ tree is the maximum number of (value, data-record-pointer) pairs it can hold. Given block size 1 KB (1024 bytes), data-record pointer 7 bytes, value field 9 bytes, and block pointer 6 bytes, what is the order of the leaf node?

    1. A63
    2. B64
    3. C67
    4. D68

    Answer: (A) 63

    Explanation

    Sign in to read the full explanation
  95. Which DBMS component ensures that concurrent execution of multiple operations on the database results in a consistent database state?

    1. ALogs
    2. BBuffer manager
    3. CFile manager
    4. DTransaction processing system

    Answer: (D) Transaction processing system

    Explanation

    Sign in to read the full explanation
  96. Statement I: A relational database schema represents the logical design of the database.
    Statement II: The current snapshot of a relation only provides the degree of the relation.

    In light of the above statements, choose the correct answer from the options given below:

    1. AStatement I is TRUE but Statement II is FALSE
    2. BStatement I is FALSE but Statement II is TRUE
    3. CBoth Statement I and Statement II are FALSE
    4. DBoth Statement I and Statement II are TRUE

    Answer: (A) Statement I is TRUE but Statement II is FALSE

    Explanation

    Sign in to read the full explanation
  97. A fixed-length record file is ordered on the key field and occupies B disk blocks to store R records. What is the average number of block accesses to find a record using binary search?

    1. AB / 2
    2. BB + R
    3. CB
    4. Dlog2(B)

    Answer: (D) log2(B)

    Explanation

    Sign in to read the full explanation
  98. Given STUDENT(Rollno, Name, courseno) and COURSE(courseno, coursename, capacity), with coursename unique. Which of the queries below find the total number of students enrolled in each course together with its coursename?

    -- Query A
    SELECT coursename, count(*) 'total' FROM STUDENT NATURAL JOIN COURSE GROUP BY coursename;
    
    -- Query B
    SELECT C.coursename, count(*) 'total' FROM STUDENT S, COURSE C WHERE S.courseno = C.courseno GROUP BY coursename;
    
    -- Query C
    SELECT coursename, count(*) 'total' FROM COURSE C WHERE courseno IN (SELECT courseno FROM STUDENT);
    

    Choose the correct answer from the options given below:

    1. AA and B only
    2. BC only
    3. CA only
    4. DB only

    Answer: (A) A and B only

    Explanation

    Sign in to read the full explanation
  99. STUDENT and COURSE each have 3 attributes; COURSE has 3 records and STUDENT has 5 records. The relational-algebra query R = STUDENT x COURSE is executed. Match List-I with List-II for R.

    List-IList-II
    A. Degree of table RI. 15
    B. Cardinality of table RII. NIL
    C. Foreign key of relation STUDENTIII. 6
    D. Foreign key of relation COURSEIV. Courseno
    1. AA-III, B-I, C-IV, D-II
    2. BA-I, B-III, C-IV, D-II
    3. CA-I, B-IV, C-III, D-II
    4. DA-I, B-III, C-II, D-IV

    Answer: (A) A-III, B-I, C-IV, D-II

    Explanation

    Sign in to read the full explanation
  100. A B-tree indexes a database file. Search-key field = 10 bytes, block size = 1024 bytes, record pointer = 9 bytes, block pointer = 8 bytes. Let K be the order of an internal node and L the order of a leaf node. Then (K, L) = ______.

    1. A(57, 53)
    2. B(50, 52)
    3. C(60, 64)
    4. D(34, 31)

    Answer: (A) (57, 53)

    Explanation

    Sign in to read the full explanation
  101. Given R(x, y, z, w) with functional dependencies F = { x -> y, z -> w } and all attributes atomic.

    A. R is in First Normal Form.
    B. R is in Second Normal Form.
    C. The primary key of R is xz.

    Choose the correct answer from the options given below:

    1. AC only
    2. BB and C only
    3. CA and C only
    4. DB only

    Answer: (C) A and C only

    Explanation

    Sign in to read the full explanation
  102. A part is either manufactured in-house, purchased from an external supplier, or both. A batchnumber is kept for manufactured parts and a supplier name for purchased parts. Which constraints must be modelled for this class/subclass structure?

    1. ATotal specialization and overlapping constraints
    2. BDisjoint constraint only
    3. CPartial participation
    4. DPartial participation and disjoint constraints

    Answer: (A) Total specialization and overlapping constraints

    Explanation

    Sign in to read the full explanation
  103. A transaction in the ACTIVE state during concurrent execution transitions next to which state?

    A. FAILED
    B. TERMINATED
    C. PARTIALLY COMMITTED
    D. COMMITTED
    E. ACTIVE

    Choose the correct answer from the options given below:

    1. AA only
    2. BEither A or C only
    3. CC only
    4. DD only

    Answer: (B) Either A or C only

    Explanation

    Sign in to read the full explanation
  104. Practise Database Management Systems in a timed set
  105. Which language is used to create a database schema?

    1. ADML
    2. BDDL
    3. CHTML
    4. DXML

    Answer: (B) DDL

    Explanation

    Sign in to read the full explanation
  106. For S = (U, V, W, X, Y, Z), the functional dependencies are {U → V, VW → X, Y → W, X → U}. Which listed sets are candidate keys?

    1. AUY, VY
    2. BUY, VY, XY
    3. CUYZ, VYZ, VWZ
    4. DUYZ, VYZ, XYZ

    Answer: (D) UYZ, VYZ, XYZ

    Explanation

    Sign in to read the full explanation
  107. Two operations from a schedule conflict when
    A. at least one operation is a write,
    B. both access the same data item, and
    C. they belong to different transactions.

    1. A(A) and (B) only
    2. B(A), (B), and (C) only
    3. C(A), (C), and (D) only
    4. D(C) and (D) only

    Answer: (B) (A), (B), and (C) only

    Explanation

    Sign in to read the full explanation
  108. Match List I with List IT.

    List I (E-R symbols) List II (Description)
    A. () Key Attribute Type

    1. — 33 (I) Weak Entity Type

    << > (II) Total Participation of Entity in a
    C. relation

    ) <> E, (IV) Multivalue Attribute type

    List IList II
    Items are listed in the question stem.Match each item to its stated description or complexity.
    1. AOCR review required
    2. BA-IV, B-I, C-II, D-III
    3. CA-II, B-I, C-IV, D-III
    4. DA-III, B-IV, C-I, D-II

    Answer: (C) A-II, B-I, C-IV, D-III

    Explanation

    Sign in to read the full explanation
  109. Using the university table structures, which query returns distinct employee IDs of employees working on projects 20, 30, or 40?

    1. ASELECT EMPID FROM PROJECTWORK WHERE PROJNO = (20,30,40);
    2. BSELECT EMPID FROM PROJECTWORK WHERE PROJNO IN (20,30,40);
    3. CSELECT DISTINCT EMPID FROM PROJECTWORK WHERE PROJNO IN (20,30,40);
    4. DSELECT DISTINCT EMPID FROM PROJECTWORK WHERE PROJNO = 20,30,40;

    Answer: (C) SELECT DISTINCT EMPID FROM PROJECTWORK WHERE PROJNO IN (20,30,40);

    Explanation

    Sign in to read the full explanation
  110. Which statement correctly computes SUM, MAX, MIN, and AVG salaries for the English department?

    Statement I joins EMPLOYEE and DEPARTMENT on DEPTNO = DID and filters DNAME = 'ENGLISH'.
    Statement II filters DNAME = 'ENGLISH' without joining the two tables.

    1. ABoth statements are true.
    2. BBoth statements are false.
    3. CStatement I is true but Statement II is false.
    4. DStatement I is false but Statement II is true.

    Answer: (C) Statement I is true but Statement II is false.

    Explanation

    Sign in to read the full explanation
  111. Which query returns employee ID and name for employees whose salary is greater than the salary of every employee in department 20, ordered by employee ID?
    A. uses SALARY > (subquery) with ORDER BY.
    B. uses SALARY > (subquery) without ORDER BY.
    C. uses SALARY > ALL (subquery) with ORDER BY.

    1. A(A) and (B) only
    2. B(A) and (C) only
    3. C(B) only
    4. D(C) only

    Answer: (D) (C) only

    Explanation

    Sign in to read the full explanation
  112. Which SQL statement(s) can drop the SALARY column from EMPLOYEE?
    A. ALTER TABLE EMPLOYEE DROP SALARY CASCADE;
    B. ALTER TABLE EMPLOYEE DROP SALARY RESTRICT;
    C. ALTER EMPLOYEE DROP SALARY;

    1. A(A) and (B) only
    2. B(A) and (C) only
    3. C(B) and (C) only
    4. D(A) only

    Answer: (A) (A) and (B) only

    Explanation

    Sign in to read the full explanation
  113. Using the university table structures, the university wants to give every employee in the SCIENCE department a 20% salary rise. Which query is correct?
    A. UPDATE EMPLOYEE SET SALARY = SALARY * 1.20 WHERE DEPTNO IN (SELECT DID FROM DEPARTMENT WHERE DNAME = 'SCIENCE');
    B. UPDATE TABLE EMPLOYEE SET SALARY = SALARY * 1.20 WHERE DNAME = 'SCIENCE';
    C. ALTER TABLE EMPLOYEE SET SALARY = SALARY * 1.20 WHERE DEPTNO IN (SELECT DNAME FROM DEPARTMENT WHERE DNAME = 'SCIENCE');

    1. A(A) and (B) only
    2. B(A) only
    3. C(B) and (C) only
    4. D(C) only

    Answer: (B) (A) only

    Explanation

    Sign in to read the full explanation
  114. Given two tables EMPLOYEE (EID, ENAME, DEPTNO) and DEPARTMENT (DEPTNO, DEPTNAME), find the most appropriate statement of the query:

    Select count (*) Total
    from EMPLOYEE
    where DEPTNO IN (D1, D2)
    group by DEPTNO
    having count (*) > 5
    
    1. ATotal number of employees in each department D1 and D2
    2. BTotal number of employees of department D1 and D2 if their total is > 5
    3. CDisplay total number of employees in both departments D1 and D2
    4. DThe output of the query must have atleast two rows

    Answer: (A) Total number of employees in each department D1 and D2

    Explanation

    Sign in to read the full explanation
  115. Find the minimum number of tables required for converting the entity relationship diagram into a relational database.

    Entity-Relationship diagram with entities R1 and R2 connected by relationship R12

    Entity-Relationship diagram with entities R1 and R2 connected by relationship R12

    1. A2
    2. B4
    3. C3
    4. D5

    Answer: (C) 3

    Explanation

    Sign in to read the full explanation
  116. Given two tables R1(x, y) and R2(y, z) with 50 and 30 number of tuples respectively. Find maximum number of tuples in the output of natural join between tables R1 and R2 i.e. R1 * R2? (* - Natural Join)

    1. A30
    2. B20
    3. C50
    4. D1500

    Answer: (D) 1500

    Explanation

    Sign in to read the full explanation
  117. Which of the component module of DBMS does rearrangement and possible ordering of operations, eliminate redundancy in query and use efficient algorithms and indexes during the execution of a query?

    1. Aquery compiler
    2. Bquery optimizer
    3. CStored data manager
    4. DDatabase processor

    Answer: (B) query optimizer

    Explanation

    Sign in to read the full explanation
  118. Two concurrent executing transactions T₁ and T₂ are allowed to update same stock item say ‘A’ in an uncontrolled manner. In such scenario, following problems may occur:

    A. Dirty read problem
    B. Lost update problem
    C. Transaction failure
    D. Inconsistent database state

    Which of the following option is correct if database system has no concurrency module and allows concurrent execution of above two transactions?

    1. AA, B and C only
    2. BC and D only
    3. CA and B only
    4. DA, B and D only

    Answer: (D) A, B and D only

    Explanation

    Sign in to read the full explanation
  119. An organization needs to maintain database having five attributes A, B, C, D, E. These attributes are functionally dependent on each other for which functional dependency set F is given as:

    F = {A → BC, D → E, BC → D, A → D }

    Consider a universal relation R(A, B, C, D, E ) with functional dependency set F. Also all attributes are simple and take atomic values only.

    Minimal cover F' of functional dependency set F is:

    1. AF' = {A → B, A → C, BC → D, D → E}
    2. BF' = {A → BC, B → D, D → E}
    3. CF' = {A → B, A → C, A → D, D → E}
    4. DF' = {A → B, A → C, B → D, C → D, D → E}

    Answer: (A) F' = {A → B, A → C, BC → D, D → E}

    Explanation

    Sign in to read the full explanation
  120. An organization needs to maintain database having five attributes A, B, C, D, E with functional dependency set F = {A → BC, D → E, BC → D, A → D }.

    Assume that given table R is decomposed into two tables:
    R₁(A, B, C ) with functional dependency set F₁ = {A → B, A → C}, and
    R₂(A, D, E ) with functional dependency set F₂ = {A → D, D → E}.

    Which of the following option is true with respect to the given decomposition?

    1. ADependency preservation property is followed
    2. BR₁ and R₂ are both in 2 NF
    3. CR₁ is in 2 NF and R₂ is in 3 NF
    4. DR₁ is in 3 NF and R₂ is in 2 NF

    Answer: (D) R₁ is in 3 NF and R₂ is in 2 NF

    Explanation

    Sign in to read the full explanation
  121. An organization needs to maintain database having five attributes A, B, C, D, E with functional dependency set F = {A → BC, D → E, BC → D, A → D }.

    Identify primary key of table R with functional dependency set F.

    1. ABC
    2. BAD
    3. CA
    4. DAB

    Answer: (C) A

    Explanation

    Sign in to read the full explanation
  122. An organization needs to maintain database having five attributes A, B, C, D, E with functional dependency set F = {A → BC, D → E, BC → D, A → D }. Consider relation R(A, B, C, D, E ) where all attributes are simple and atomic.

    Identify the normal form to which relation R belongs:

    1. A1 NF
    2. B2 NF
    3. C3 NF
    4. DBCNF

    Answer: (B) 2 NF

    Explanation

    Sign in to read the full explanation
  123. An organization needs to maintain database having five attributes A, B, C, D, E with functional dependency set F = {A → BC, D → E, BC → D, A → D }.

    Identify the redundant functional dependency in F.

    1. ABC → D
    2. BD → E
    3. CA → D
    4. DA → BC

    Answer: (C) A → D

    Explanation

    Sign in to read the full explanation
  124. Question 120

    UGC NET June 2019

    In relational database management, which of the following is/are property/properties of candidate key?

    P: Uniqueness
    Q: Irreducibility

    1. AP only
    2. BQ only
    3. CBoth P and Q
    4. DNeither P nor Q

    Answer: (C) Both P and Q

    Explanation

    Sign in to read the full explanation
  125. Question 121

    UGC NET June 2019

    A relation has two attributes Employee_id and Manager_id, where Employee_id is a primary key and manager_id is a foreign key referencing Employee_id with on-delete cascade:

    On deleting the tuple (20, 40), the set of other tuples that must be deleted to maintain the referential integrity of table is

    Employee_idManager_id
    2040
    2540
    3035
    3520
    4045
    4525
    1. A(30, 35) only
    2. B(30, 35) and (35, 20) only
    3. C(35, 20) only
    4. D(40, 45) and (25, 40) only

    Answer: (B) (30, 35) and (35, 20) only

    Explanation

    Sign in to read the full explanation
  126. Question 122

    UGC NET June 2019

    With respect to relational algebra, which of the following operations are included from mathematical set theory?
    (a) Join
    (b) Intersection
    (c) Cartisian product
    (d) Project

    1. A(a) and (d)
    2. B(b) and (c)
    3. C(c) and (d)
    4. D(b) and (d)

    Answer: (B) (b) and (c)

    Explanation

    Sign in to read the full explanation
  127. Question 123

    UGC NET June 2019

    Which of the following key constraints is required for functioning of foreign key in the context of relational databases?

    1. AUnique key
    2. BPrimary key
    3. CCandidate key
    4. DCheck key

    Answer: (B) Primary key

    Explanation

    Sign in to read the full explanation
  128. Question 124

    UGC NET June 2019

    Hadoop (a big data tool) works with number of related tools. Choose from the following, the common tools included into Hadoop:

    1. AMySQL, Google API and Map reduce
    2. BMap reduce, Scala and Hummer
    3. CMap reduce, H Base and Hive
    4. DMap reduce, Hummer and Heron

    Answer: (C) Map reduce, H Base and Hive

    Explanation

    Sign in to read the full explanation
  129. Question 125

    UGC NET June 2019

    In relational databases, if relation R is in BCNF, then which of the following is true about relation R?

    1. AR is in 4NF
    2. BR is not in 1NF
    3. CR is in 2NF and not in 3NF
    4. DR is in 2NF and 3NF

    Answer: (D) R is in 2NF and 3NF

    Explanation

    Sign in to read the full explanation
  130. Practise Database Management Systems in a timed set
  131. Question 126

    UGC NET June 2019

    Which of the following features is supported in the relational database model?

    1. AComplex data-types
    2. BMultivalued attributes
    3. CAssociations with multiplicities
    4. DGeneralization relationships

    Answer: (C) Associations with multiplicities

    Explanation

    Sign in to read the full explanation
  132. Question 127

    UGC NET June 2019

    Which of the following statements are DML statements?
    (a) Update [tablename]
    Set [columnname] = VALUE
    (b) Delete [tablename]
    (c) Select * from [tablename]

    1. A(a) and (b)
    2. B(a) and (d)
    3. C(a), (b) and (c)
    4. D(b) and (c)

    Answer: (C) (a), (b) and (c)

    Explanation

    Sign in to read the full explanation
  133. Question 128

    UGC NET June 2019

    Which of the following has same expressive power with regard to relational query language?
    (a) Relational algebra and domain relational calculus
    (b) Relational algebra and tuples relational calculus
    (c) Relational algebra and domain relational calculus restricted to safe expression
    (d) Relational algebra and tuples relational calculus restricted to safe expression

    1. A(a) and (b) only
    2. B(c) and (d) only
    3. C(a) and (c) only
    4. D(b) and (d) only

    Answer: (B) (c) and (d) only

    Explanation

    Sign in to read the full explanation
  134. Data scrubbings is

    1. AA process to upgrade the quality of data before it is moved into a data warehouse.
    2. BA process to load the data in the data warehouse and to create the necessary indexes.
    3. CA process to reject data from the data warehouse and to create the necessary indexes.
    4. DA process to upgrade the quality of data after it is moved into a data warehouse.

    Answer: (A) A process to upgrade the quality of data before it is moved into a data warehouse.

    Explanation

    Sign in to read the full explanation
  135. Consider the following tables (relations):

    Students

    Roll-NoName
    18CS101Ramesh
    18CS102Mukesh
    18CS103Ramesh

    Performance

    Roll-NoCourseMarks
    18CS101DBMS60
    18CS101Compiler Design65
    18CS102DBMS80
    18CS103DBMS85
    18CS102Compiler Design75
    18CS103Operating System70

    Primary keys in the tables are shown using underline. Now, consider the following query:

    SELECT S.Name, Sum(P.Marks)
    FROM Students S, Performance P
    WHERE S.Roll-No = P.Roll-No
    GROUP BY S.Name
    

    The number of rows returned by above query is

    1. A3
    2. B2
    3. C0
    4. D1

    Answer: (B) 2

    Explanation

    Sign in to read the full explanation
  136. Consider the following sequence of two transactions on bank account A with initial balance 20,000 that transfers 5,000 to another account B and then apply 10% interest.

    (i) T1 start
    (ii) T1 A old = 20,000 new 15,000
    (iii) T1 B old = 12,000 new = 17,000
    (iv) T1 commit
    (v) T2 start
    (vi) T2 A old = 15,000 new = 16,500
    (vii) T2 commit

    Suppose the database system crashes just before log record (vii) is written. When the system is restarted, which one statement is true of the recovery process ?

    1. AWe must redo log record (vi) to set A to 16,500 and then redo log records (ii) and (iii).
    2. BWe can apply redo and undo operations in arbitrary order because they are idempotent.
    3. CWe must redo log record (vi) to set A to 16,500.
    4. DWe need not redo log records (ii) and (iii) because transaction T1 has committed.

    Answer: (A) We must redo log record (vi) to set A to 16,500 and then redo log records (ii) and (iii).

    Explanation

    Sign in to read the full explanation
  137. Which of the following statement/s is/are true ?

    (i) Facebook has the world’s largest Hadoop Cluster.
    (ii) Hadoop 2·0 allows live stream processing of Real time data.

    Choose the correct answer from the code given below :
    Code :

    1. A(ii) only
    2. BNeither (i) nor (ii)
    3. C(i) only
    4. DBoth (i) and (ii)

    Answer: (D) Both (i) and (ii)

    Explanation

    Sign in to read the full explanation
  138. A clustering index is defined on the fields which are of type

    1. Akey and ordering
    2. Bnon-key and non-ordering
    3. Cnon-key and ordering
    4. Dkey and non-ordering

    Answer: (C) non-key and ordering

    Explanation

    Sign in to read the full explanation
  139. _________ command is used to remove a relation from an SQL database.

    1. AUpdate table
    2. BDrop table
    3. CRemove table
    4. DDelete table

    Answer: (B) Drop table

    Explanation

    Sign in to read the full explanation
  140. An attribute A of datatype varchar (20) has the value ‘xyz’, and the attribute B of datatype char(20) has the value “Imnop”, then the attribute A has ________ spaces and attribute B has ________ spaces.

    1. A20, 5
    2. B3, 5
    3. C20, 20
    4. D3, 20

    Answer: (D) 3, 20

    Explanation

    Sign in to read the full explanation
  141. Data warehouse contains __________ data that is never found in operational environment.

    1. AScripted
    2. BEncrypted
    3. CEncoded
    4. DSummary

    Answer: (D) Summary

    Explanation

    Sign in to read the full explanation
  142. Consider a relation schema R = (A, B, C, D, E, F) on which the following functional dependencies hold :

    A → B
    B, C → D
    E → C
    D → A

    What are the candidate keys of R ?

    1. AAE, BE and DE
    2. BAEF, BEF and BCF
    3. CAEF, BEF and DEF
    4. DAE and BE

    Answer: (C) AEF, BEF and DEF

    Explanation

    Sign in to read the full explanation

Frequently asked questions

How many Database Management Systems questions have been asked in UGC NET Computer Science?

137 Database Management Systems questions appear in the UGC NET Computer Science papers held between 2018–2026, and all of them are on this page with their answer key.

Are the answers on this page free?

Yes. Every question, its options, and the correct answer are free to read with no account. Signing in additionally unlocks the detailed explanation under each question.

Is Database Management Systems an important topic for UGC NET Computer Science?

Database Management Systems appears in every recent UGC NET Computer Science paper, across all 14 sittings covered here. Its share of the paper makes it worth revising thoroughly rather than sampling.

How should I practise Database Management Systems after reading these questions?

Attempt the Database Management Systems topic-wise sets, which put the same questions into a timed interface with instant scoring and weak-area analysis afterwards.

More Computer Science PYQs by topic

More Computer Science practice

Ready for a full paper?

Attempt Paper 1 + Paper 2 (Computer Science) together in a single timed session.

Full Mock Tests →