Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
271 Which ACID property is violated if a transaction leaves a negative balance despite a CHECK (Balance >= 0) constraint?
Explanation
- Consistency is violated when a transaction leaves the database in an invalid state.
- Constraints must hold when the transaction ends.
Last verified on 27-11-2026
272 What does COALESCE(NULL, NULL, ‘Default’) return?
Explanation
- COALESCE scans left to right and returns 'Default', the first non-NULL value.
- If all arguments are NULL it returns NULL.
Last verified on 27-11-2026
273 What does WHERE Salary > 50000 do to rows where Salary is NULL?
Explanation
- NULL > 50000 is UNKNOWN, so WHERE excludes those rows.
- Use OR Salary IS NULL to include them explicitly.
Last verified on 27-11-2026
274 What is the result of NULL AND FALSE?
Explanation
- In three-valued logic, FALSE AND anything is FALSE, even with NULL.
- FALSE dominates AND because the result is false regardless of the unknown value.
Last verified on 27-11-2026
275 What is the result of NULL OR TRUE?
Explanation
- In three-valued logic, TRUE OR anything is TRUE, even with NULL.
- TRUE dominates OR because the result is true regardless of the unknown value.
Last verified on 27-11-2026
276 What is the result of NOT NULL in SQL?
Explanation
- NOT UNKNOWN is still UNKNOWN, represented as NULL.
- Negating an unknown value leaves it unknown.
Last verified on 27-11-2026
277 Why can a UNIQUE column contain a NULL in many database systems?
Explanation
- Most systems allow one or more NULLs in a UNIQUE column because NULLs are not considered equal to each other.
- Exact behaviour varies, so check the specific DBMS.
Last verified on 27-11-2026
278 Can a PRIMARY KEY column contain NULL?
Explanation
- A primary key must uniquely identify every row, so none of its columns may be NULL.
- This is the entity integrity rule.
Last verified on 27-11-2026
279 What is the difference between NULL and an empty string ”?
Explanation
- An empty string is a known value of length zero, while NULL means the value is absent.
- They behave differently in comparisons and counts.
Last verified on 27-11-2026
280 Which aggregate function ignores NULL values?
Explanation
- SUM ignores NULL values when adding.
- COUNT(*) is the exception that counts rows rather than values; SUM treats missing values as absent, not zero.
Last verified on 27-11-2026