Relational DBMS

Comprehensive quiz covering fundamental concepts in Relational Database Management Systems including SQL, relational algebra, constraints, transactions, keys, and database structures.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following forms of SQL is designed for use within general purpose programming languages such as PL/I, COBOL, Pascal and C?

  1. Data definition language
  2. Data manipulation language
  3. Transactional control
  4. Embedded DML
  5. View definition
Question 2 Multiple Choice (Single Answer)

Which of the following entity constraints in DBMS requires that an entity belongs to no more than one lower level entity set?

  1. Overlapping
  2. Disjoint
  3. Key constraint
  4. Not null constraint
  5. Condition defined
Question 3 Multiple Choice (Single Answer)

Which of the following is a procedural query language that consists of a set of operations that takes one or two relations as input and produces a new relation as their result?

  1. Query language
  2. Relational algebra
  3. Tuple relational calculus
  4. DML precompiler
  5. DBA
Question 4 Multiple Choice (Single Answer)

The file organisation in DBMS in which any record can be placed anywhere in the file where there is space for the record is called _________ file organisation.

  1. sequential
  2. heap
  3. index
  4. clustering
  5. direct
Question 5 Multiple Choice (Single Answer)

Which of the following is a binary operation that allows us to combine certain selections and a cartesian product into one operation?

  1. Cartesian product
  2. Set difference
  3. Project
  4. Natural join
  5. Union
Question 6 Multiple Choice (Single Answer)

In _____________ mode/phase, the transaction only wants to read the data item.

  1. exclusive
  2. shared
  3. growing
  4. shrinking
  5. deadlock
Question 7 Multiple Choice (Single Answer)

Which of the following properties of transaction in distributed database guarantees that when the transaction is committed, the results of operations will never be lost, independent of subsequent failures?

  1. Atomicity
  2. Commit
  3. Isolation
  4. Durability
  5. Serialisability
Question 8 Multiple Choice (Single Answer)

Which of the following terms in database refers to the number of tuples or records that it contains in a relation?

  1. Attribute
  2. Cardinality
  3. Degree
  4. Relation
  5. Tuple
Question 9 Multiple Choice (Single Answer)

In a database relation, when one or more fields serve as primary key, then such a key is called

  1. alternate key
  2. foreign key
  3. composite key
  4. secondary key
  5. attribute key
Question 10 Multiple Choice (Single Answer)

Which of the following operations in relation algebra requires two relations having the same number of attributes?

  1. Cartesian product
  2. Intersection
  3. Union
  4. Set difference
  5. Select
Question 11 Multiple Choice (Single Answer)

In which of the following data models in DBMS, the relationship between records is represented by a relation that contains a key for each record involved in the relationship?

  1. Hierarchical data model
  2. Relational data model
  3. Network data model
  4. Relational algebra
  5. Project
Question 12 Multiple Choice (Single Answer)

Which of the following objects in SQL is a predicate expressing a condition that we wish the database always to satisfy?

  1. Triggers
  2. Cursor
  3. Assertion
  4. Alerts
  5. Primary key
Question 13 Multiple Choice (Single Answer)

Which of the following languages includes a query language based on both the relational algebra and the tuple relational calculus?

  1. Embedded DML
  2. DDL
  3. DML
  4. TCL
  5. Assembly language
Question 14 Multiple Choice (Single Answer)

______ is the time taken to find a particular data item or a set of items using the technique in a database query.

  1. Insertion time
  2. Deletion time
  3. Access time
  4. Space overhead
  5. Access types
Question 15 Multiple Choice (Single Answer)

Which of the following structures in oracle database consists of datafiles, redo log files and control files?

  1. Database blocks
  2. Schema
  3. Physical structure
  4. Extent
  5. Segment