Loading…
Loading…
Loading…
150 questions · 150 marks · 150 minutes · Estimated cutoff: 101/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.
What is the highest normal form always guaranteed when decomposing any relation schema into dependency-preserving relations?
Correct Answer: (C) 3NF
3NF vs BCNF Decomposition
Every relation can always be decomposed into 3NF such that the decomposition is both lossless-join and dependency-preserving. BCNF guarantees lossless join, but not always dependency preservation.
Select the correct option.
In an Entity-Relationship (ER) diagram, how is a weak entity set represented?
Correct Answer: (B) Double rectangle
ER Notation
A weak entity set lacks a primary key of its own and is drawn as a double rectangle; its identifying relationship is drawn as a double diamond.
Select the correct option.
In Entity-Relationship (ER) modeling, how is a Weak Entity Set represented graphically in an ER Diagram?
Correct Answer: (B) Double Rectangle
Concept & Exam Tag
Topic: ER Modeling Notations | Asked in: KVS PGT CS 2023, DSSSB TGT 2021, Bihar STET
Explanation
A weak entity set (an entity set that does not have a primary key of its own and depends on an identifying/owner entity set) is depicted using a Double Rectangle. The identifying relationship set is shown by a Double Diamond, and its partial discriminator is denoted by a dashed underline.
Exam Tip
ER Notations: Entity = Rectangle; Weak Entity = Double Rectangle; Attribute = Ellipse; Multivalued Attribute = Double Ellipse; Derived Attribute = Dashed Ellipse; Relationship = Diamond; Identifying Relationship = Double Diamond.
Select the correct option.
In a SQL query containing an aggregate function, which clause must be used to filter grouped results produced by the `GROUP BY` clause?
Correct Answer: (C) `HAVING`
Concept & Exam Tag
Topic: SQL Aggregate Group Filtering | Asked in: Bihar STET 2023, DSSSB TGT CS 2021, KVS PGT CS 2023
Explanation
The HAVING clause is specifically designed to filter records after aggregation has been performed by GROUP BY. In contrast, the WHERE clause filters individual rows before any grouping or aggregation takes place, and aggregate functions (like SUM, AVG, COUNT) cannot be used in WHERE.
Exam Tip
SQL Execution Order: FROM -> WHERE -> GROUP BY -> HAVING -> SELECT -> DISTINCT -> ORDER BY -> LIMIT. WHERE filters rows; HAVING filters aggregated groups.
Select the correct option.
Consider relation R(A, B, C, D) with candidate key (A, B). Which functional dependency violates Second Normal Form (2NF)?
Correct Answer: (B) A -> D
Partial Dependency
Since (A, B) is a candidate key, non-prime attribute D depending only on proper subset A (A -> D) is a partial dependency, violating 2NF.