Skip to content

M.C.A. (Online Mode) Semester I Examination ​

Paper Code: OCA-504 MJ
Title: Persistent Data Management
Time: 3 Hours
Maximum Marks: 70

Q1) Multiple Choice Questions with reasoning — answer any 25 of 30 [25 × 2 = 50] ​

For every attempted question, select one option and give a brief reason.

No.QuestionABCD
1Which schema describes the overall logical database?ExternalConceptualInternalPhysical file
2A candidate key is:Any superkeyA minimal superkeyAll foreign keysA multivalued attribute
3A many-to-many relationship maps to a:Foreign key on one sideJunction tableList-valued columnMerged entity
4In X→Y, X is the:DependentDeterminantForeign keyDomain
5BCNF requires every nontrivial FD determinant to be a:Prime attributeSuperkeyForeign keyComposite key
6A non-key attribute depending transitively on another non-key attribute violates:1NF2NF3NFDomain integrity
7Relational division finds R-tuples related to:At least one S tupleEvery S tupleNo S tupleExactly two S tuples
8Which is not a primitive relational-algebra operator?SelectionProjectionCartesian productAggregation
9Pushing selection below a join is:Logical query rewritingSchema normalisationLockingRecovery
10Tuple relational calculus is:ProceduralDeclarativeImperativePhysical
11DRC variables range over:TuplesAttribute-domain valuesTablesFiles
12“No tuple satisfies P” is:∃xP(x)∀xP(x)¬∃xP(x)∃x¬P(x)
13In SQL logical processing, which follows GROUP BY?WHEREHAVINGSELECTFROM
14The correct NULL test is:col=NULLcol==NULLcol IS NULLcol<>NULL
15A LEFT JOIN preserves:Matching rows onlyEvery left rowEvery right row onlyNo unmatched rows
16In a B+ tree, data entries occur in:Internal nodes onlyRoot onlyLinked leavesParent pointers only
17A dense index normally has:One entry per pageOne per record/search-key occurrenceRoot entries onlyForeign keys only
18A hash index is best for:Range queriesPrefix orderEquality lookupSorted output
19The optimizer normally chooses the plan with:Most operatorsLowest estimated costFewest joins at any costLargest intermediates
20A hash join is well suited to:Inequality joinsLarge equality joinsPre-sorted range joinsCartesian products
21Early selection and projection reduce:Schema sizeIntermediate-result sizeLock compatibilityTable count
22Transaction properties are abbreviated:ACIDBASECAPRAID
23A schedule is conflict-serializable when its precedence graph has no:VerticesSourcesSinksCycles
24Dirty reads are permitted by:Read uncommittedRead committedRepeatable readSerializable
25During 2PL's growing phase a transaction may:Acquire but not release locksRelease but not acquireUse only S locksRelease all locks
26Two transactions may simultaneously hold which lock on one item?Two X locksTwo S locksOne S and one XNo locks
27A wait-for graph cycle indicates:SerializabilityDeadlockRecoveryReplication
28During a partition, CAP says a system must trade between:Consistency and availabilityDurability and atomicitySQL and XMLStorage and compute
29Two-phase commit coordinates:Distributed atomicityIndex selectionQuery parsingReplication format
30MapReduce groups intermediate key-value pairs during:MapShuffleReduce outputInput splitting

Q2) Answer any five in approximately two sentences [5 × 2 = 10] ​

  1. Distinguish a superkey from a candidate key.
  2. What is a lossless decomposition?
  3. Distinguish selection and projection in relational algebra.
  4. Explain the difference between WHERE and HAVING.
  5. Compare B+ tree and hash indexes for range and equality queries.
  6. Define conflict serializability.
  7. Distinguish shared and exclusive locks.

Q3) Answer any two in approximately ten lines [2 × 5 = 10] ​

  1. Explain the three-schema architecture and logical and physical data independence.
  2. For R(Student, Course, Instructor) with Student,Course→Instructor and Course→Instructor, identify the normal-form problem and produce a lossless decomposition.
  3. Write an SQL query that returns each department with more than five employees and its average salary, using Employee(emp_id, dept, salary).
  4. Explain ACID, write-ahead logging, and how recovery handles an uncommitted transaction after a crash.

Built from Markdown with VitePress.