Loading…
Loading…
Loading…
150 questions · 150 marks · 150 minutes · Estimated cutoff: 100.75/150
| Section | Questions | Marks | Time | Est. Cutoff |
|---|---|---|---|---|
| Computer Science Domain | 100 | 100 | Composite | — |
| Art of Teaching & General Skills | 50 | 50 | Composite | — |
Solve these 5 preview questions right here, then attempt all 150 questions timed.
Select the correct option.
Given relation R(A, B, C, D, E) with FDs {A -> BC, CD -> E, B -> D, E -> A}. Which of the following attribute sets is NOT a candidate key of R?
Correct Answer: (D) BD
Closure Calculation
A+ = ABCDE, E+ = EABCD, (BC)+ = BCDEA (via B->D then CD->E then E->A). However, (BD)+ = {B, D}, which cannot determine A, C, or E.
Select the correct option.
In relational database normalization, a relation is in Second Normal Form (2NF) if and only if it is in 1NF and satisfies which of the following conditions?
Correct Answer: (B) Every non-prime attribute is fully functionally dependent on every candidate key (no partial dependency)
Concept & Exam Tag
Topic: Database Normalization (2NF) | Asked in: DSSSB TGT CS 2021, HTET PGT CS 2022, Bihar STET 2023
Explanation
A relation is in 2NF if it is in 1NF and no non-prime attribute is partially dependent on any candidate key. That is, every non-prime attribute must depend on the whole candidate key, not just a proper subset of it. 3NF eliminates transitive dependencies; BCNF requires every determinant to be a super key; 4NF eliminates multivalued dependencies.
Exam Tip
1NF: Atomic values (no repeating groups/multivalued attributes). 2NF: 1NF + No partial dependency. 3NF: 2NF + No transitive dependency. BCNF: 3NF + Every determinant is a super key.
Select the correct option.
In Relational Algebra, which operator is formally used to select rows (tuples) that satisfy a given conditional predicate from a relation?
Correct Answer: (B) $\sigma$ (Sigma / Selection)
Concept & Exam Tag
Topic: Relational Algebra Operators | Asked in: Bihar STET 2023, Rajasthan Computer Teacher 2022, DSSSB TGT CS 2021
Explanation
In relational algebra, the Selection operator is denoted by the Greek letter $\sigma$ (Sigma). It is a unary operator that filters tuples (horizontal subset) based on a specified condition (e.g. $\sigma_{\text{age} > 25}(R)$). Conversely, Projection is denoted by $\pi$ (Pi) and filters columns (vertical subset).
Exam Tip
$\sigma$ (Sigma) = Selection = Selects Rows (WHERE condition). $\pi$ (Pi) = Projection = Selects Columns (SELECT column list). $\rho$ (Rho) = Rename.
Select the correct option.
In database concurrency control, the Strict Two-Phase Locking (Strict 2PL) protocol guarantees which property?
Correct Answer: (B) Conflict serializability and freedom from cascading rollbacks (cascadelessness)
Concept & Exam Tag
Topic: Concurrency Control & Strict 2PL | Asked in: UP LT Grade 2018, KVS PGT CS 2023
Explanation
Basic 2PL guarantees conflict serializability, but can suffer from cascading aborts. Strict 2PL requires that all exclusive (write) locks taken by a transaction be held until the transaction commits or aborts. This guarantees both conflict serializability and cascadeless schedules (freedom from cascading aborts).
Exam Tip
Basic 2PL: Serializability guaranteed, but cascading aborts possible, deadlocks possible. Strict 2PL: Serializability + Cascadeless schedules. Rigorous 2PL: Holds both Shared and Exclusive locks until commit.
Select the correct option.
A relation R(A, B, C, D) has candidate keys {AB, BC}. How many superkeys does R have in total?
Correct Answer: (C) 6
Counting Superkeys
Superkeys containing AB: 4 (AB, ABC, ABD, ABCD). Superkeys containing BC: 4 (BC, ABC, BCD, ABCD). Common (ABC, ABCD): 2. Total = 4 + 4 - 2 = 6.