Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
11 Which constraint combination best enforces that an email column is present, unique and well-formed?
A
Only a foreign key
B
Only a DEFAULT value
C
NOT NULL plus UNIQUE plus a CHECK for the email pattern
D
Only an index
Explanation
NOT NULL ensures presence, UNIQUE prevents duplicates, and CHECK enforces the email format.
Last verified on 27-11-2026
12 A hospital stores X-ray images, doctor notes as free text, and patient records in tables. Which statement is TRUE?
A
All hospital data is structured
B
Images are structured data
C
All hospital data is unstructured
D
The database holds structured, semi-structured and unstructured data together
Explanation
Tables are structured, notes are unstructured text, and images are unstructured, so mixed data is common.
Last verified on 27-11-2026
13 Which JSON value is used for a field that may be a number or missing, such as a middle name?
A
null when the value is absent
B
An XML tag
C
A string only
D
A CSV header
Explanation
JSON uses null to represent a missing or unknown value explicitly.
Last verified on 27-11-2026
14 What is the main risk of storing dates as free text in a CSV file?
A
CSV files cannot have headers
B
Different formats such as 01/02/2026 and 2026-02-01 can be misread
C
Text is always encrypted
D
Dates cannot be stored in CSV
Explanation
Free-text dates lack a fixed format, so day and month can be confused on import.
Last verified on 27-11-2026
15 A table is in 3NF but a determinant that is not a candidate key still causes redundancy. Which form addresses this?
A
No normal form
B
2NF
C
BCNF
D
1NF
Explanation
BCNF is stricter than 3NF and requires every determinant to be a candidate key.
Last verified on 27-11-2026
16 A transaction transfers stock between two warehouses and updates both stock rows. Which ACID property is most directly tested if the system crashes between the two updates?
A
Indexing
B
Backup speed
C
Isolation only
D
Atomicity
Explanation
Atomicity requires both stock updates to succeed together or both to be rolled back.
Last verified on 27-11-2026
17 Which normal form is violated if a table has a composite key (OrderID, ProductID) and ProductName depends only on ProductID?
A
2NF
B
3NF
C
1NF
D
BCNF
Explanation
ProductName depends on part of the composite key, a partial dependency violating 2NF.
Last verified on 27-11-2026
18 How would you fix the 2NF violation in the Order-Product example?
A
Remove the primary key
B
Move ProductName into a separate Product table keyed by ProductID
C
Add more duplicate ProductName values
D
Delete the OrderID column
Explanation
Splitting the table removes the partial dependency and stores ProductName once.
Last verified on 27-11-2026
19 Which scenario best illustrates a need for backup and recovery planning?
A
A user changes a password
B
A report is printed
C
A database server disk fails and the latest orders must be restored
D
A query runs slightly slowly
Explanation
Media failure is the classic case where backups and logs are needed to restore data.
Last verified on 27-11-2026
20 An online shop takes a full backup on Sunday and incremental backups daily. To restore to Wednesday, what is needed?
A
Only the Sunday full backup
B
Only the Wednesday incremental backup
C
Only the transaction log
D
Sunday full backup plus Monday, Tuesday and Wednesday incremental backups
Explanation
Incremental restore needs the full backup and every incremental since it, in order.
Last verified on 27-11-2026