Loading…
Loading…
Loading…
150 questions · 150 marks · 150 minutes · Estimated cutoff: 101.25/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 logical order of processing clauses in an SQL SELECT query?
Correct Answer: (B) FROM -> WHERE -> GROUP BY -> HAVING -> SELECT -> ORDER BY
Concept & Exam Tag
Topic: SQL Clause Execution Order | Asked in: Bihar STET 2024, DSSSB TGT CS 2021
Explanation
The SQL query engine processes clauses logically in the order: 1. FROM (identifies tables/joins) -> 2. WHERE (filters individual rows) -> 3. GROUP BY (aggregates rows) -> 4. HAVING (filters groups) -> 5. SELECT (evaluates projected expressions) -> 6. ORDER BY (sorts the final result set).
Exam Tip
Remember: FWGHSO (From, Where, Group By, Having, Select, Order By). That is why column aliases created in SELECT cannot be referenced in WHERE or GROUP BY!
Select the correct option.
In the ACID properties of database transactions, which property guarantees that once a transaction completes successfully, its changes survive system crashes?
Correct Answer: (D) Durability
ACID Properties
Durability ensures that committed transaction effects persist in non-volatile storage even after power loss or crashes, typically using write-ahead logs.
Select the correct option.
In relational database design, a minimal super key having no redundant attributes is formally termed as a:
Correct Answer: (B) Candidate Key
Concept & Exam Tag
Topic: Keys in Relational DBMS | Asked in: Bihar STET Paper 2 CS 2023 Shift 1, UP LT Grade 2018
Explanation
A super key is a set of attributes that uniquely identifies tuples in a relation. A minimal super key (a super key from which no attribute can be removed without losing uniqueness) is defined as a Candidate Key. The database designer selects one of the candidate keys as the Primary Key.
Exam Tip
Candidate Key = Minimal Super Key. Primary Key = Selected Candidate Key. Alternate Key = Candidate Keys not chosen as Primary Key.
Select the correct option.
Which concurrency control protocol guarantees conflict serializability by acquiring all locks before releasing any lock?
Correct Answer: (B) Two-Phase Locking (2PL)
Two-Phase Locking
2PL has a growing phase (locks acquired, none released) and a shrinking phase (locks released, none acquired). It guarantees conflict serializability.
Select the correct option.
In an SQL query, which clause must be used to filter groups produced by an aggregate function (such as COUNT, SUM, or AVG) after a GROUP BY operation?
Correct Answer: (B) HAVING
Concept & Exam Tag
Topic: SQL Aggregation Clauses | Asked in: Bihar STET Paper-2 2023, KVS PGT 2023, DSSSB TGT
Explanation
The HAVING clause was added to SQL specifically because the WHERE keyword cannot be used with aggregate functions. The WHERE clause filters individual rows before grouping, while the HAVING clause filters groups created by the GROUP BY clause.
Exam Tip
SQL Execution Order: FROM → WHERE → GROUP BY → HAVING → SELECT → DISTINCT → ORDER BY → LIMIT. WHERE cannot evaluate aggregate expressions like HAVING COUNT(*) > 5.