MCQ
Paper - II (xi) — Database Management System MCQ - Practice Questions with Answers
Solve 44 Paper - II (xi) — Database Management System questions for RAS/RPSC preparation.
Practice questions
Q1For R(A, B, C) with F = {AB -> C, C -> B}, which statement about normal forms and decomposition is correct?
The candidate keys are AB and AC: AB determines C directly, and AC determines B through C -> B. Thus A, B, and C are all prime attributes. The dependency C -> B has a determinant that is not a superkey, so BCNF is violated, but its right-hand side B is prime, so 3NF is satisfied. A BCNF split into CB and AC is lossless on C, yet AB -> C is not derivable from the projected dependencies alone.
Q2A composite B-tree index is defined on (district_id, exam_date, candidate_id). Which predicate is expected to use the index most efficiently for ordered lookup under the usual left-prefix rule?
In a multicolumn B-tree, the leading column matters most for ordered search. Equality on district_id narrows the first segment of the index, and a range on exam_date can then be scanned within that segment; predicates that begin from the second or third column are weaker matches.
Q3Which statement about two-phase locking (2PL), strict 2PL, and transaction schedules is correct?
Under 2PL, each transaction has a growing phase for lock acquisition and a shrinking phase after it starts releasing locks; this guarantees conflict serializability. However, basic 2PL does not require write locks to be held until commit. Strict 2PL adds that discipline for exclusive locks, which prevents dirty reads and cascading aborts, but deadlocks still remain possible.
Q4Which tuple relational calculus expression is unsafe because its result can range over tuples outside the finite database instance?
A safe relational calculus query must produce a finite result determined by the active domain of the database. In {t | not Student(t)}, the free variable t is not positively range-restricted by any relation. It may denote arbitrary tuples that do not occur in Student, making the result unbounded and not equivalent to a finite relational algebra query.
Q5Two transactions run concurrently on accounts A and B, each reading both balances and then updating a different account so that a cross-row constraint is violated only when both commit. Which phenomenon is this, and which isolation level is intended to rule it out in the SQL standard model?
Write skew occurs when transactions read overlapping data, update different rows, and together break an invariant even though neither overwrites the other. Serializable isolation is the standard-level guarantee that concurrent execution has an equivalent serial order, so one transaction must be blocked or aborted in such a conflict pattern.
You've seen 5 of 44 sample questions
Unlimited practice on Paper - II (xi) — Database Management System comes with the RAS Test Series + Practice pack or Gate Pass.
More questions
6A table EMP(emp_id, manager_id, salary) must enforce the rule: an employee's salary must not exceed the salary of the employee referenced by manager_id, except when manager_id is NULL. Which implementation is the most appropriate in a typical SQL RDBMS?
7An ER diagram has entity set Employee with primary key emp_id and a weak entity set Dependent with partial key dep_name. Dependent has total participation in an identifying relationship with Employee. Which relational design best preserves the weak-entity semantics?
8For the schedule S: r1(X), r2(X), w1(X), r3(Y), w2(X), w3(Y), c1, c2, c3, which statement is correct under conflict-serializability analysis?
9A database trigger must validate each inserted row using the row's new values before the row is physically stored, and must be able to modify a derived column in that same row. Which trigger timing and granularity best match this requirement?
10Consider the schedule S: r1(X), r2(X), w1(X), w2(X), where ri and wi denote read and write by transaction Ti. Which conclusion is correct?
11In an E-R design for a university database, Section is identified by (course_id, semester, year, sec_id), and every Section must belong to exactly one Course. If sec_id is unique only within a given course offering period, which modelling choice is most appropriate before mapping to relations?
12A table Employee(emp_id, dept_id, salary, city) has a composite B-tree index on (dept_id, salary). Which query pattern is most directly supported by the leftmost-prefix property of this index?
13Consider the tuple relational calculus formula { t.A | R(t) OR NOT R(t) }. In a conventional database theory setting, why is this formula rejected as an unsafe query?
14Let Enrolled(student_id, course_id) and Required(course_id) be relations. Which relational algebra expression returns exactly those students who are enrolled in every required course?
15Which statement about strict two-phase locking (strict 2PL) is most accurate for transaction processing?
